Ejemplo n.º 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FormEmployeeUI feu = new FormEmployeeUI();
            DialogResult   dr  = feu.ShowDialog();

            if (dr == DialogResult.OK)
            {
                this.FormEmployeeList_Load(null, null);
            }
        }
Ejemplo n.º 2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (DataGridView.SelectedRows.Count > 0)
     {
         string strId = DataGridView.SelectedRows[0].Cells[0].Value.ToString();
         if (string.IsNullOrEmpty(strId))
         {
             CommonHelper.FailedReply("请选择一个正确的行!");
         }
         else
         {
             Guid           id = Guid.Parse(strId);
             FormEmployeeUI fe = new FormEmployeeUI(id);
             if (fe.ShowDialog() == DialogResult.OK)
             {
                 this.FormEmployeeList_Load(null, null);
             }
         }
     }
 }