学生成绩管理系统/frmCourse/frmCouseAdd.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 学生成绩管理系统.frmCourse
{
public partial class frmCouseAdd : Form
{
public frmCouseAdd()
{
InitializeComponent();
}
private void btnNext_Click(object sender, EventArgs e)
{
tabControl1.SelectedIndex = 1;
}
private void frmCouseAdd_Load(object sender, EventArgs e)
{
for (int i = 1; i <= 6; i++)
{
domXf.Items.Add(i.ToString ());
}
for (int j = 8; j <= 120; j += 2)
{
domXs.Items.Add(j.ToString ());
}
cobCourseName.Items.Add("C#程序设计");
cobCourseName.Items.Add("Java程序设计");
cobCourseName.Items.Add("C++程序设计");
cobCourseName.Items.Add(".net程序设计");
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
string courseName = cobCourseName.SelectedItem.ToString();
string courseType = cobCourseType.SelectedItem.ToString();
string xf = domXf.Text;
string xs = domXs.Text;
string info = string.Format("课程名称:{0}\n课程类型:{1}\n课程学分:{2}\n课程学时:{3}",courseName ,courseType ,xf ,xs );
richTextBox1.Text = info;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。