private void pictureBox3_Click(object sender, EventArgs e) { try { Home.Home_pnl.Visible = false; ListInventory _ListInventory = new ListInventory(); _ListInventory.MdiParent = this; _ListInventory.WindowState = FormWindowState.Maximized; _ListInventory.Show(); _ListInventory.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);; } }
private void listInventoryToolStripMenuItem_Click_1(object sender, EventArgs e) { try { if (_ListInventory.IsDisposed) { _ListInventory = new ListInventory(); } Home.Home_pnl.Visible = false; _ListInventory.MdiParent = this; _ListInventory.WindowState = FormWindowState.Maximized; _ListInventory.Show(); _ListInventory.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);; } }