예제 #1
0
 private void RBTreeForm_Load(object sender, EventArgs e)
 {
     stepsForm = new RBTreeStepsForm();
     stepsForm.Show();
     rbTree         = new RBTree(stepsForm);
     addIntegers    = new List <int>();
     removeIntegers = new List <int>();
 }
예제 #2
0
 private void btnSteps_Click(object sender, EventArgs e)
 {
     if (!stepsFormShown)
     {
         stepsForm.Show();
         stepsFormShown = true;
     }
     else
     {
         stepsForm.Hide();
         stepsFormShown = false;
     }
 }