Ejemplo n.º 1
0
        private void Invoice_Details_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            Amount_Low.Text = Subtotal.SubtotalCount(Invoice_Details);
            UperConvert conv = new UperConvert();

            Amount_Upper.Text = conv.Uper(Subtotal.SubtotalCount(Invoice_Details));
        }
        //Darg drop
        private void MainFormDragEnter(object sender, System.Windows.Forms.DragEventArgs e)
        {
            string temp = "";

            Common.dt.Rows.Clear();
            // retrive label.Text for path
            Invoice_Title.Text = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString();

            TextHandler tx = new TextHandler();

            tx.TextHandler_line(Invoice_Title.Text);
            //populate
            Company_Name.Text   = Common.CompanyName;
            Tax_Payer_Iden.Text = Common.TaxerID;
            Address_Tele.Text   = Common.AddressPhone;
            Bank_Account.Text   = Common.AccountDetails;
            // Contract_serial.Text = Common.ContractNum;
            //  IssueerName.Text = Common.Issuer;

            temp = Common.Notes;
            temp = temp.Replace("\\n", "\r\n");
            //Trace.WriteLine(Common.Notes);
            // Trace.WriteLine(temp);
            InvoiceNote.Text = temp;

            Amount_Low.Text = Subtotal.SubtotalCount(Invoice_Details);
            UperConvert conv = new UperConvert();

            Amount_Upper.Text = conv.Uper(Subtotal.SubtotalCount(Invoice_Details));
        }