Exemplo n.º 1
0
 // let the user add a new goal but make sure everything is cleared first
 private void CreateGoalToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TbNameOfGoal.Clear();
     TbStep.Clear();
     MyLbItems.Clear();
     TcMain.SelectedIndex = 1;
 }
Exemplo n.º 2
0
 // Create a step and add it to our own list
 private void BtnAdd_Click(object sender, EventArgs e)
 {
     MyLbItems.Add(new MyListboxItem {
         Index = MyLbItems.Count, Caption = TbStep.Text
     });
     TbStep.Clear();
     TbStep.Focus();
     EnableBtnDone();
 }