Esempio n. 1
0
        private void AddPredefinedOptionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PredefinedOptions add = new PredefinedOptions();

            add.MdiParent = this;
            add.Show();
        }
 private void ExpenseType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (expenseType.Text.Equals("Other"))
     {
         PredefinedOptions predefinedOptions = new PredefinedOptions(2);
         DialogResult      dr = predefinedOptions.ShowDialog(this);
         if (dr == DialogResult.Cancel)
         {
             predefinedOptions.Close();
             getExpenseTypes();
             expenseType.SelectedIndex = expenseType.Items.Count - 2;
         }
         else if (dr == DialogResult.OK)
         {
             predefinedOptions.Close();
         }
     }
 }
Esempio n. 3
0
 private void Services_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (((CheckedListBox)sender).Text.Equals("Other"))
     {
         PredefinedOptions predefinedOptions = new PredefinedOptions(7);
         DialogResult      dr = predefinedOptions.ShowDialog(this);
         if (dr == DialogResult.Cancel)
         {
             predefinedOptions.Close();
             getServices();
             services.SelectedIndex = services.Items.Count - 2;
         }
         else if (dr == DialogResult.OK)
         {
             predefinedOptions.Close();
         }
     }
 }
Esempio n. 4
0
 private void PaymentMethod_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (paymentMethod.Text.Equals("Other"))
     {
         PredefinedOptions predefinedOptions = new PredefinedOptions(3);
         DialogResult      dr = predefinedOptions.ShowDialog(this);
         if (dr == DialogResult.Cancel)
         {
             predefinedOptions.Close();
             getPaymentMethods();
             paymentMethod.SelectedIndex = paymentMethod.Items.Count - 2;
         }
         else if (dr == DialogResult.OK)
         {
             predefinedOptions.Close();
         }
     }
 }
 private void Bank_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (bank.Text.Equals("Other"))
     {
         PredefinedOptions predefinedOptions = new PredefinedOptions(0);
         DialogResult      dr = predefinedOptions.ShowDialog(this);
         if (dr == DialogResult.Cancel)
         {
             predefinedOptions.Close();
             getBanks();
             bank.SelectedIndex = bank.Items.Count - 2;
         }
         else if (dr == DialogResult.OK)
         {
             //predefinedOptions.Close();
         }
     }
 }