curriculum_design/MembersMain.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/********************************************
 *			 Made by MeiZhaoRui				*
 *			 2014年05月04日 更新				*
 *******************************************/

using System;
using System.Data;
using System.Windows.Forms;
using System.Collections;
using System.Threading;
using System.ComponentModel;

namespace curriculum_design
{
	public partial class MembersMain : Form
	{
		public MembersMain()
		{
			InitializeComponent();
		}

		private void Find_Press(object sender, EventArgs e)
		{
			UpdateViewByKeyPress();
		}
		DataSet ds;
		private void Find_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == (char)13)
			{
				string str = GetFSelectStr();
				new Thread(() =>
				{
					ds = Program.sqlManage.GetDataSet(str);			
					Invoke(new Action(updateDataGridView));
				}).Start();
			}
		}

		private void Add_Click(object sender, EventArgs e)
		{
			new MembersManip().ShowDialog();
		}

		private void Alter_Click(object sender, EventArgs e)
		{
			if (SelectedCount >= 1)
			{
				string Email = SelectedValue(0, 0);
				new MembersManip(Email).ShowDialog();
				UpdateViewByKeyPress();
			}
		}
		private void Del_Click(object sender, EventArgs e)
		{
			DialogResult dr = MsgBox.ShowChioces("你确定是否真的要删除?该操作无法恢复!");
			if (dataGridView1.SelectedRows.Count >= 1 && dr == DialogResult.OK)
			{
				string delstr = "delete from {0} where {1} in ( ";
				for (int i = 0; i < SelectedCount; ++i)
后面还有 52 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。