private void button2_Click(object sender, EventArgs e) { AddItem _AddItem = new AddItem(SelectedItemCode); _AddItem.Size = new System.Drawing.Size(273, 514); _AddItem.MaximizeBox = false; _AddItem.MinimizeBox = false; _AddItem.ShowDialog(); }
private void toolStripMenuItem20_Click(object sender, EventArgs e) { try { if (_AddItems.IsDisposed) _AddItems = new AddItem(); Home.Home_pnl.Visible = false; _AddItems.MdiParent = this; _AddItems.WindowState = FormWindowState.Maximized; _AddItems.Show(); _AddItems.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info); ; } }