private void btnnew_Click(object sender, EventArgs e) { UIL.part f = new UIL.part(); f.FormClosed += new FormClosedEventHandler(f_FormClosed); f.mode = type_mode.mode.insert; f.MdiParent = this.ParentForm; f.Show(); }
private void button1_Click(object sender, EventArgs e) { //DAL DA = new DAL(); if (type == type_mode.type.parts) { } parts_Main PA = new parts_Main(); DataTable DT = new DataTable(); UIL.part f = new UIL.part(); f.MdiParent = this.ParentForm; this.Close(); f.Show(); }