示例#1
0
        private void Sbtractbtn_Click(object sender, EventArgs e)
        {
            IAccounts m_Accounts;

            m_Accounts = new AccountsClass();

            Sublbl.Visible = false;

            string strShpBal;

            double num;

            strShpBal = SubtractTxt.Text;

            bool isnum = double.TryParse(strShpBal, out num);

            if (!isnum)
            {
                Sublbl.Visible = true;
            }

            else if (strShpBal == "")
            {
                Sublbl.Visible = true;
            }
            else
            {
                m_Accounts.SubstractFromShopBalance(double.Parse(strShpBal));

                MessageBox.Show("Subtracted from the shop balance");
            }
        }
示例#2
0
        private void Adbtn_Click(object sender, EventArgs e)
        {
            IAccounts m_Accounts;

            m_Accounts = new AccountsClass();

            Adlbl.Visible = false;

            string strShpBal;

            double num;

            strShpBal = AdTxt.Text;

            bool isnum = double.TryParse(strShpBal, out num);

            if (!isnum)
            {
                Adlbl.Visible = true;
            }

            else if (strShpBal == "")
            {
                Adlbl.Visible = true;
            }
            else
            {
                m_Accounts.AddToShopBalance(double.Parse(strShpBal));

                MessageBox.Show("Added to the shop balance");
            }
        }
示例#3
0
        private void AcceptPaymentbtn_Click(object sender, EventArgs e)
        {
            IAccounts m_Accounts;

            m_Accounts = new AccountsClass();

            object VarCusId = 0;

            m_Accounts.InvokeAcceptPaymentDialog(VarCusId);
        }
示例#4
0
        private void RefundToCustomerbtn_Click(object sender, EventArgs e)
        {
            IAccounts m_Accounts;

            m_Accounts = new AccountsClass();

            object VarCusId = 0;

            m_Accounts.InvokeRefundToCustomerDlg(VarCusId);
        }