private void nextButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            PaymentDetails form = new PaymentDetails();

            form.ShowDialog();
        }
Exemple #2
0
        private void reportsToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            PaymentDetails ledger = new PaymentDetails();

            this.Hide();
            ledger.ShowDialog();
            this.Close();
        }
Exemple #3
0
 public override void OpenPopWindow(object param)
 {
     if ((string)param == "Particular")
     {
         ParticularViewModel objv    = new ParticularViewModel("Invoice");
         ParticularDetails   objpart = new ParticularDetails(objv);
         objv.OnAddedItem += objv_OnAddedItem;
         objpart.ShowDialog();
     }
     else if ((string)param == "Payment")
     {
         PaymentDetailsViewModel objv    = new PaymentDetailsViewModel();
         PaymentDetails          objpart = new PaymentDetails(objv);
         objv.OnAddedItem += OnPaymentAddedItem;
         objpart.ShowDialog();
     }
     base.OpenPopWindow(param);
 }
Exemple #4
0
        private void organizerLoginButton_Click(object sender, EventArgs e)
        {
            Person value = new Person();

            value.Password = passwordtextBox.Text;
            if (!(Regex.IsMatch(IDtextBox.Text, pattern: "^[ 0-9]")))
            {
                MessageBox.Show(text: "Employee Id should contain only numbers from 0-9");
            }
            else if (!(Regex.IsMatch(value.Password, pattern: @"^[a-zA-Z0-9]*$")))
            {
                MessageBox.Show(text: "Enter valid password which contains a-zA-Z0-9");
            }
            else
            {
                value.EmployeeId = Convert.ToInt32(IDtextBox.Text);
                Operations Authentication = new Operations();
                Authentication.EmployeeLogin(value.EmployeeId, value.Password);
                this.Hide();
                PaymentDetails form = new PaymentDetails();
                form.ShowDialog();
            }
        }
Exemple #5
0
        private void radButtonElement4_Click(object sender, EventArgs e)
        {
            PaymentDetails paymentDetails = new PaymentDetails();

            paymentDetails.ShowDialog(this);
        }