private void btnReload_Click(object sender, EventArgs e) { FrmConfigXPath frm = new FrmConfigXPath(); frm.IsNew = true; frm.MdiParent = this; frm.Show(); }
private void gridControl1_DoubleClick(object sender, EventArgs e) { int rowFocus = this.gridView1.FocusedRowHandle; if (rowFocus >= 0) { FrmConfigXPath frmConfig = new FrmConfigXPath(); int website_id = Convert.ToInt32((this.gridView1.GetRow(rowFocus) as DataRowView)["Id"]); frmConfig.Text = string.Format("ConfigID:{0}", website_id); frmConfig.FormClosed += new FormClosedEventHandler(delegate(object obj01, FormClosedEventArgs args) { dicConfigXPath.Remove(website_id); }); frmConfig.Dock = DockStyle.Fill; frmConfig.MdiParent = this; frmConfig.LoadConfigByWebsite(website_id); frmConfig.Show(); } }