示例#1
0
 private void buttonBplanEdit_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedIndex >= 0)
     {
         New_BPLan form = new New_BPLan(Data.getActiveAccount().planList.ElementAt(comboBox1.SelectedIndex));
         form.ShowDialog();
         comboBox1.Items.Clear();
         comboBox1.Items.AddRange(Data.getActiveAccount().planList.ToArray());
     }
     Save.Saveall();
 }
示例#2
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     //Check if account is selected
     if (Data.activeAccount > -1)
     {
         New_BPLan myForm = new New_BPLan();
         myForm.ShowDialog();
         comboBox1.Items.Clear();
         comboBox1.Items.AddRange(Data.getActiveAccount().planList.ToArray());
     }
     Save.Saveall();
 }