Form1.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Experiment3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (domainUpDown1.Text != "" && comboBox1.Text != "")
{
string str = domainUpDown1.Text;
double x = double.Parse(str);
if (x > 0)
{
double a, b, c, d;
if (comboBox1.Text == "作业员")
{
a = x * 0.9;
label5.Text = a.ToString();
}
else if (comboBox1.Text == "技术员")
{
b = x * 1.0;
label5.Text = b.ToString();
}
else if (comboBox1.Text == "工程师")
{
c = x * 1.5;
label5.Text = c.ToString();
}
else if (comboBox1.Text == "部门经理")
{
d = x * 2;
label5.Text = d.ToString();
}
else
{
MessageBox.Show("不存在此岗位!");
}
}
else
{
MessageBox.Show("月薪基数必须大于0!");
}
}
else
{
后面还有 30 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。