示例#1
0
 private static void clickToolStripMenuItem_Click(object sender, System.EventArgs e)
 {
     FrmDataGridViewSetting frmDataGridViewSetting = new FrmDataGridViewSetting();
     frmDataGridViewSetting.TargetDataGridView = (sender as ToolStripMenuItem).Tag as DataGridView;
     frmDataGridViewSetting.TargetForm = (sender as ToolStripMenuItem).Owner.Tag as Form;
     frmDataGridViewSetting.ShowDialog();
 }
示例#2
0
 private void picSetting_Click(object sender, EventArgs e)
 {
     FrmDataGridViewSetting frmDataGridViewSetting = new FrmDataGridViewSetting();
     frmDataGridViewSetting.TargetForm = this;
     frmDataGridViewSetting.TargetDataGridView = this.grdStaff;
     frmDataGridViewSetting.ShowDialog();
 }