private void pictureBox6_Click(object sender, EventArgs e) { try { Home.Home_pnl.Visible = false; LedgerStatement _LedgerStatement = new LedgerStatement(); _LedgerStatement.MdiParent = this; _LedgerStatement.WindowState = FormWindowState.Maximized; _LedgerStatement.Show(); _LedgerStatement.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info); ; } }
private void statementToolStripMenuItem_Click(object sender, EventArgs e) { try { _AddBill.Dispose(); _AddBill.Close(); } catch (Exception ex) { } try { if (_LedgerStatement.IsDisposed) _LedgerStatement = new LedgerStatement(); Home.Home_pnl.Visible = false; _LedgerStatement.MdiParent = this; _LedgerStatement.WindowState = FormWindowState.Maximized; _LedgerStatement.Show(); _LedgerStatement.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info); ; } }