Exemple #1
0
 private void button7_Click(object sender, EventArgs e)
 {
     try
     {
         ItemHistoryView _ItemHistoryReport = new ItemHistoryView();
         Home.Home_pnl.Visible        = false;
         _ItemHistoryReport.MdiParent = this.MdiParent;
         _ItemHistoryReport.Show();
         _ItemHistoryReport.WindowState = FormWindowState.Maximized;
     }
     catch (Exception ex)
     {
         Variables.NotificationMessageText  = ex.Message;
         Variables.NotificationMessageTitle = this.Name;
         Variables.NotificationStatus       = true;
     }
 }
        private void itemHistoryReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                if (_ItemHistoryReport.IsDisposed == true)
                    _ItemHistoryReport = new ItemHistoryView();
                Home.Home_pnl.Visible = false;
                _ItemHistoryReport.MdiParent = this;
                _ItemHistoryReport.WindowState = FormWindowState.Maximized;
                _ItemHistoryReport.Show();
                _ItemHistoryReport.Focus();
            }
            catch (Exception ex)
            {
                notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info); ;
            }

        }
 private void button7_Click(object sender, EventArgs e)
 {
     try
     {
         ItemHistoryView _ItemHistoryReport = new ItemHistoryView();
         Home.Home_pnl.Visible = false;
         _ItemHistoryReport.MdiParent = this.MdiParent;
         _ItemHistoryReport.Show();
         _ItemHistoryReport.WindowState = FormWindowState.Maximized;
     }
     catch (Exception ex)
     {
         Variables.NotificationMessageText = ex.Message;
         Variables.NotificationMessageTitle = this.Name;
         Variables.NotificationStatus = true;
     }
 }