Ejemplo n.º 1
0
 private void PaymentDealer_Click(object sender, EventArgs e)
 {
     label11.Text = "Total Amount Paid = " + p1.GetDealer.TotalAMountPaid;
     label12.Text = "Remainig Amount to pay = " + p1.GetDealer.RemainingAmount;
     AmountPaymentMaskedTextBox.Clear();
     AmountPayment.Show();
     AmountPayment.BringToFront();
 }
Ejemplo n.º 2
0
        private void SearchButton_Click(object sender, EventArgs e)
        {
            //Container.BringToFront();
            if (Customer.Checked)
            {
                if (!string.IsNullOrWhiteSpace(SearchTextBox.Text))
                {
                    if (p1.SearchCustomer(SearchTextBox.Text))
                    {
                        CustomerContainer.BringToFront();
                        SearchPanel.Hide();
                        Registration.Hide();

                        AmountPayment.Hide();
                        amountpaymentcu.Hide();
                    }
                    else
                    {
                        MessageBox.Show("Wrong ID");
                    }
                }
            }
            else if (Dealer.Checked)
            {
                if (p1.SearchDealer(SearchTextBox.Text))
                {
                    DealerContainer.BringToFront();
                    SearchPanel.Hide();
                    Registration.Hide();

                    AmountPayment.Hide();
                    amountpaymentcu.Hide();
                }
                else
                {
                    MessageBox.Show("Wrong ID");
                }
            }
            Registration.Hide();
        }
Ejemplo n.º 3
0
        private void CloseDealerProfile_Click(object sender, EventArgs e)
        {
            dashboardpanel.Hide();
            BillViewContainer.Hide();
            AmountPayment.Hide();

            SearchPanel.Visible = true;
            SearchPanel.BringToFront();
            if (f1 != null && !f1.IsDisposed)
            {
                f1.Close();
                f1.Hide();
                f1.Dispose();
                f1 = null;
            }

            if (f2 != null && !f2.IsDisposed)
            {
                f2.Close();
                f2.Hide();
                f2.Dispose();
                f2 = null;
            }
            if (f3 != null && !f3.IsDisposed)
            {
                f3.Close();
                f3.Hide();
                f3.Dispose();
                f3 = null;
            }
            if (f4 != null && !f4.IsDisposed)
            {
                f4.Close();
                f4.Hide();
                f4.Dispose();
                f4 = null;
            }
        }