public void SelectVector(MathBox_Vector selected)
 {
     selected.select();
     if (selected_vectors.Contains(selected))
     {
         selected_vectors.Remove(selected);
     }
     else
     {
         selected_vectors.Add(selected);
     }
 }
示例#2
0
 void ToggleSelection(MathBox_Vector selected)
 {
     selected.select();
     if (selected_vectors.Contains(selected))
     {
         selected_vectors.Remove(selected);
     }
     else
     {
         selected_vectors.Add(selected);
     }
 }
 MathBox_Vector LastSelection()
 {
     if (selected_vectors.Count != 0)
     {
         MathBox_Vector last = selected_vectors[selected_vectors.Count - 1];
         selected_vectors.RemoveAt(selected_vectors.Count - 1);
         last.select();
         return(last);
     }
     else
     {
         return(null);
     }
 }