public frm_cashierMovies() { if (frm == null) { frm = this; } InitializeComponent(); gridView1.CustomUnboundColumnData += new DevExpress.XtraGrid.Views.Base.CustomColumnDataEventHandler(gridView1_CustomUnboundColumnData); }
//public bool checkopenedform(Form frm) //{ // foreach (BaseDocument item in frm_othermain.getmain.documentManager1.View.Documents) // { // if (item.Caption == frm.Text) // { // frm_othermain.getmain.documentManager1.View.ActivateDocument(item.Form); // return true; // } // } // return false; //}//check form open //public void openform(Form frm) //{ // if (checkopenedform(frm) == false) // { // frm.MdiParent = FRM_MAIN.getmain; // frm.Show(); // } //} static void form_closed(object sender, FormClosedEventArgs e) { frm = null; }