Пример #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            payment.PaymentOID  = this.txtPaymentNum.Text;
            payment.PaymentDate = this.dtpPaymentDate.Value;
            payment.PaymentSum  = Convert.ToDecimal(this.txtPaymentSum.Text);

            ButtonOkClicked.Invoke(sender, e);
        }
Пример #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            sales.SalesNum      = this.txtSalesNum.Text;
            sales.SalesDate     = this.dtpSalesDate.Value;
            sales.VAT           = Convert.ToInt32(this.cmbVAT.Text);
            sales.SalesSum      = Convert.ToDecimal(this.txtSum.Text);
            sales.SalesBaseSum  = Convert.ToDecimal(this.txtBaseSum.Text);
            sales.SalesTrialSum = Convert.ToDecimal(this.txtTrialSum.Text);

            ButtonOkClicked.Invoke(sender, e);
        }
Пример #3
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            intID         = Convert.ToInt32(lblID.Text);
            strTIN        = txtTIN.Text;
            strContrName  = txtContrName.Text;
            strDealNumber = txtNumber.Text;
            dtDeal        = dtpDate.Value;
            strDealName   = txtDealName.Text;
            intDueDay     = Convert.ToInt32(upDueDay.Value);

            ButtonOkClicked.Invoke(sender, e);
        }
Пример #4
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            intCategoryFirst  = this.cmbCat1.SelectedIndex;
            intCategoryThird  = this.cmbCat3.SelectedIndex;
            intCategorySecond = this.cmbCat2.SelectedIndex;

            strCategoryFirst  = Convert.ToString(this.cmbCat1.SelectedItem);
            strCategoryThird  = Convert.ToString(this.cmbCat3.SelectedItem);
            strCategorySecond = Convert.ToString(this.cmbCat2.SelectedItem);

            strTIN  = this.txtTIN.Text;
            strName = this.txtContrName.Text;
            ButtonOkClicked.Invoke(sender, e);
        }
Пример #5
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            float.TryParse(Nota, out n);
            float.TryParse(Peso, out p);
            int cont = 0;

            if (ActivateFlag != null)
            {
                ActivateFlag(sender, e);
            }
            ButtonOkClicked.Invoke(sender, e);
            if (ButtonOkClicked != null && cont == 0)
            {
                ButtonOkClicked(sender, e);
                cont++;
            }
            ButtonOkClicked = null;
            this.Visible    = false;
        }