예제 #1
0
        private void Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            Invoice invoice = (Invoice)sender;

            if (invoice.DialogResult == DialogResult.OK)
            {
                dataGridViewSecond.DataSource = Table.DtInvoice;
                Calculation();
                Processing processing = new Processing();
                processing.Processing_Invoice(dataGridViewSecond);/// Печать Накладной и за период
                Disp_data();
            }
            StatusChange statusChange = (StatusChange)sender;

            if (statusChange.DialogResult == DialogResult.OK)
            {
                Disp_data();
            }
            Editing editing = (Editing)sender;

            if (editing.DialogResult == DialogResult.OK)
            {
                Disp_data();
            }
            ListOfAccepted listOfAccepted = (ListOfAccepted)sender;

            if (listOfAccepted.DialogResult == DialogResult.OK)
            {
                textBoxSumm.Text    = Sum.SumPrice;
                textBoxService.Text = Sum.SumService;
                textBoxReturn.Text  = Sum.SumReturn;
                textBoxAmount.Text  = Sum.Amount;
                Disp_data();
            }
        }
예제 #2
0
        private void списокПринятыхToolStripMenuItem_Click(object sender, EventArgs e)// Список принятых
        {
            ListOfAccepted form = new ListOfAccepted((DataTable)dataGridViewMain.DataSource);

            form.FormClosed += Form_FormClosed;
            form.Show();
            dataGridViewList.Visible   = true;
            dataGridViewSecond.Visible = false;
            dataGridViewMain.Visible   = false;
        }