예제 #1
0
        void gadg_grph_Disposed(object sender, EventArgs e)
        {
            pnl_drw1.Invalidate();
            try
            {
                dgv_temp.Dispose();
            }
            catch (Exception ertyt) { }
            try
            {
                dtp.Clear();
                dtp.Dispose();
            }
            catch (Exception erty) { }
            try
            {
                dtp_.Clear();
                dtp_.Dispose();
            }
            catch (Exception erty) { }
            try
            {
                Text_FONT.Dispose();
            }
            catch (Exception erty) { }
            al_Data.Clear();
            try
            {
                bmp_genr.Dispose();
            }
            catch (Exception erty) { }
            VAL.Clear(); VAL_Sort.Clear();

            this.clse.Click -= this.clse_Click;
            this.toolStripButton10.Click -= this.toolStripButton10_Click;
            this.tv.NodeMouseClick       -= this.tv_NodeMouseClick;
            this.sfd.FileOk -= this.sfd_FileOk;
            this.Load       -= this.gadg_grph_Load;

            foreach (Control C in this.Controls)
            {
                C.Dispose();
            }

            this.components.Dispose();
            this.BindingContext = null;

            this.Dispose(true);
            GC.Collect();
        }
예제 #2
0
 private void initialize_grapher()
 {
     VAL.Clear();
     if (e.Node.Parent.Text == "General Journal")
     {
         if (e.Node.Text == "Debit Comparison Per Month")
         {
             Node_ = "General Journal Debit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("General Journal", "Debit");
         }
         else if (e.Node.Text == "Credit Comparison Per Month")
         {
             Node_ = "General Journal Credit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("General Journal", "Credit");
         }
         else if (e.Node.Text == "Debit And Credit Totaled Comparison Per Month")
         {
             Node_ = "General Journal Debit And Credit Totaled Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("General Journal", "Final");
         }
     }
     else if (e.Node.Parent.Text == "Cash Book")
     {
         if (e.Node.Text == "Debit Comparison Per Month")
         {
             Node_ = "Cash Book Debit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Cash Book", "Debit");
         }
         else if (e.Node.Text == "Credit Comparison Per Month")
         {
             Node_ = "Cash Book Credit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Cash Book", "Credit");
         }
         else if (e.Node.Text == "Debit And Credit Totaled Comparison Per Month")
         {
             Node_ = "Cash Book Debit And Credit Totaled Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Cash Book", "Final");
         }
     }
     else if (e.Node.Parent.Text == "Purchase Book")
     {
         if (e.Node.Text == "Debit Comparison Per Month")
         {
             Node_ = "Purchase Book Debit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Purchase Book", "Debit");
         }
         else if (e.Node.Text == "Credit Comparison Per Month")
         {
             Node_ = "Purchase Book Credit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Purchase Book", "Credit");
         }
         else if (e.Node.Text == "Debit And Credit Totaled Comparison Per Month")
         {
             Node_ = "Purchase Book Debit And Credit Totaled Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Purchase Book", "Final");
         }
     }
     else if (e.Node.Parent.Text == "Sales Book")
     {
         if (e.Node.Text == "Credit Comparison Per Month")
         {
             Node_ = "Sales Book Credit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Sales Book", "Credit");
         }
     }
     //invoices
     else if (e.Node.Parent.Text == "Invoices")
     {
         if (e.Node.Text == "Debit Comparison Per Month")
         {
             Node_ = "Invoices Debit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Invoices", "Debit");
         }
         else if (e.Node.Text == "Credit Comparison Per Month")
         {
             Node_ = "Invoices Credit Comparison Per Month For (" + DateTime.Now.Year.ToString() + ")";
             Process("Invoices", "Credit");
         }
     }
 }