コード例 #1
0
 private void lnkChecker_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Forms.General.FrmStaffMaster frm = new Forms.General.FrmStaffMaster();
     frm.ForSelect = true;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Staff item = frm.SelectedItem as Staff;
         txtChecker.Text = item != null ? item.Name : string.Empty;
     }
 }
コード例 #2
0
 private void lnkSalesPerson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Forms.General.FrmStaffMaster frm = new Forms.General.FrmStaffMaster();
     frm.ForSelect = true;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Staff item = frm.SelectedItem as Staff;
         txtSalesPerson.Text = item.Name;
         txtSalesPerson.Tag  = item;
     }
 }