private void btnLost_Click(object sender, EventArgs e) { frmLostProperty frm = new frmLostProperty(); frm.ShowDialog(); frm.Dispose(); }
void ShowForm(long id) { frmLostProperty frm = new frmLostProperty(); frm.OnDisplayRecord(id); //DockWindow doc = UI.MainMenuForm.MainMenuFrm.GetDockByName("frmLoseProperty1"); //if (doc != null) //{ // doc.Close(); //} //MainMenuForm.MainMenuFrm.ShowForm(frm); frm.ShowDialog(); frm.Dispose(); }