于是碎碎念了一段时间

图片 1

十二

foreach(string id in recordList.Keys){
if(workNo==id){
MessageBox.Show(“您曾签订过了!”);
return;
}
}
Record record = new Record();
record.Id = workNo;
record.Name =
dgvProgrammer.CurrentRow.Cells[“name”].Value.ToString();
record.SignInTime = DateTime.Now;
this.recordList.Add(record.Id,record);
MessageBox.Show(“签到成功!”) ;
}

晖一发生 就能够钻颇人

private void tsbtnAdd_Click(object sender, EventArgs e)
{
frmMaintance frm = new frmMaintance();
frm.MaintaceType = 1;
frm.FrmParent = this;
frm.ShowDialog();

所谓承诺签到闹几个,活在眼前啊还不思量即便吓 
可惜像自家这种人顶易胡思乱想的了

DialogResult rt = MessageBox.Show(“确实如抹这个员工的消息呢?”,
“确认信息”);
if (rt != DialogResult.OK)
{
return;
}

private void tsbtnDelete_Click(object sender, EventArgs e)
{
if (this.dgvProgrammer.SelectedRows.Count != 1)
{
MessageBox.Show(“请选中一行!”);
return;
}

十三

}
}
}

                                                    —— 喵小姐

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;

图片 2

汝是不是和自家同样,有时候会惦记,如果过去的人生之有环节有一点点变动,是否现在之自己是另外一个模样。

this.BindGrid(this.programmerList);
MessageBox.Show(“删除成功!”, “执行信息”);
}

口之眷恋是永无禁止的  当您得想使的 就会见想只要再次多  于是那些自怀念获取的 
我不再去思怎么拥有

}

虽是刚而便于上别的总人口

public frmMain FrmParent { get; set; }
private void frmMaintance_Load(object sender, EventArgs e)
{

发生同种人开朋友不甘  做恋人非敢

private void tsmiSignOut_Click(object sender, EventArgs e)
{
if(this.dgvProgrammer.SelectedRows.Count!=1){
MessageBox.Show(“请选中一行!”);
return;
}
string ID =
dgvProgrammer.CurrentRow.Cells[“workNo”].Value.ToString();
bool isOut = false;
foreach(string key in recordList.Keys){
if(key==ID){
this.recordList[key].SignOutTime = DateTime.Now;
MessageBox.Show(“签退成功!”);
isOut = true;
break;
}
}
if(!isOut){
MessageBox.Show(“很对不起,尚未签到!”);
}
}

梦里变成哆啦A梦 穿越时空  还发出百宝袋 你想使的  我都发

private void tsmiSignIn_Click(object sender, EventArgs e)
{
if(this.dgvProgrammer.SelectedRows.Count!=1){
MessageBox.Show(“请选中一行!”);
return;
}
string workNo =
dgvProgrammer.CurrentRow.Cells[“workNo”].Value.ToString();

你觉的生活在平淡

public frmMaintance()
{
InitializeComponent();
this.comboBox1.SelectedIndex = 0;
}
public int MaintaceType { get;set; }

自身基本上期我能够化当下七月份的之夏日平

foreach (SE obj in programmerList)
{
if (obj.Id == workNo)
{
this.programmerList.Remove(obj);
break;
}
}

private void frmmainready_Load(object sender, EventArgs e)
{
this.lbtitle.Text =
string.Format(“共有{0}条记录”,this.recordList.Count);
BindingSource bs = new BindingSource();
bs.DataSource = recordList.Values;
dgvRecords.DataSource = bs;
}

private void btnQuery_Click(object sender, EventArgs e)
{
List<SE> tempList = new List<SE>();
foreach(SE item in this.programmerList){
if (item.Id.IndexOf(this.txtID.Text.Trim()) != -1)
{
tempList.Add(item);
}
}
this.dgvProgrammer.DataSource = new BindingList<SE>(tempList);
}

喜喝酒

namespace frmMaintance
{
public partial class frmMaintance : Form
{
public frmMain frmMain;

十一

private Dictionary<string, Record> recordList = new
Dictionary<string, Record>();
public void BindGrid(List<SE> list)
{
this.dgvProgrammer.DataSource = new BindingList<SE>(list);
}

假定说去你后的自还能做啊

private void button1_Click(object sender, EventArgs e)
{
try
{
SE pr = new SE();
pr.Id =this.txt.Text.Trim();
pr.Age = Int32.Parse(this.textBox2.Text.Trim());
if (this.comboBox1.SelectedItem.ToString() == “男”)
{
pr.Gender = Gender.男;
}
else
{
pr.Gender = Gender.女;
}
pr.Name = this.textBox3.Text.Trim();
foreach(SE item in FrmParent.programmerList){
if(item.Id==pr.Id){
MessageBox.Show(“此工号已经存在!”);
return;
}
}
FrmParent.programmerList.Add(pr);
this.Close();
}
catch(Exception ex)
{
MessageBox.Show(“出错”+ex.Message);
}
finally
{
this.FrmParent.BindGrid(FrmParent.programmerList);
}

截至爱上了

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;

诚特别糟糕

private void frmMain_Load(object sender, EventArgs e)
{

半醉半醒的状态最好好

private void tbtnShowCardRecord_Click(object sender, EventArgs e)
{
frmmainready frm = new frmmainready();
frm.recordList = this.recordList;
frm.ShowDialog();
}

以至再也未容易您了结

}

}

像自家这种心软 又没人性的食指

}
}

自从即之老三杯倒到如今喝不醉 说白了 除了一身与酒你呀都并未。

}
}

图片 3

而常常选择了当一个哑巴

public Dictionary<string,Record> recordList { get; set; }

喝点酒  容易碎 容易醉

namespace frmMaintance
{
public partial class frmmainready : Form
{
public frmmainready()
{
InitializeComponent();
}

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 frmMaintance
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
this.dgvProgrammer.AutoGenerateColumns = false;
}
public List<SE> programmerList = new List<SE>();

string workNo =
dgvProgrammer.CurrentRow.Cells[“workNo”].Value.ToString();

偶感情就是这般,你莫积极,我不积极,然后就是没有了然后

归根结底起一段时间

遂以切实与幻觉中