private void menuProvice_Add_Click(object sender, EventArgs e) { FrmEditProvince dlg = new FrmEditProvince(); dlg.OnDataSaved += new EventHandler(dlgProvince_OnDataSaved); dlg.ShowDialog(); }
private void menuProvice_Edit_Click(object sender, EventArgs e) { TreeNode selectedNode = this.treeProvince.SelectedNode; if (selectedNode != null && selectedNode.Tag != null) { FrmEditProvince dlg = new FrmEditProvince(); dlg.ID = selectedNode.Tag.ToString(); dlg.OnDataSaved += new EventHandler(dlgProvince_OnDataSaved); dlg.ShowDialog(); } }