private void button2_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { Declare dec = (listView1.SelectedItems[0].Tag as Declare); FormDeclare frm = new FormDeclare(frmMain, dec); frm.ShowDialog(this); } }
private void button1_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { FormDeclare frm = new FormDeclare(fMain, listView1.SelectedItems[0].Tag as Declare); fMain.onDeclareModed += new FormMain.onDeclareModedDelegate(fMain_onDeclareModed); frm.ShowDialog(this); fMain.onDeclareModed -= fMain_onDeclareModed; } }
private void button1_Click(object sender, EventArgs e) { if(listView1.SelectedItems.Count > 0) { FormDeclare frm = new FormDeclare(fMain, listView1.SelectedItems[0].Tag as Declare); fMain.onDeclareModed += new FormMain.onDeclareModedDelegate(fMain_onDeclareModed); frm.ShowDialog(this); fMain.onDeclareModed -= fMain_onDeclareModed; } }
private void button2_Click(object sender, EventArgs e) { if(listView1.SelectedItems.Count > 0) { Declare dec = (listView1.SelectedItems[0].Tag as Declare); FormDeclare frm = new FormDeclare(frmMain, dec); frm.ShowDialog(this); } }