Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public static String Delete ()
  2. {
  3. String matrix = matches[0].Groups[2].ToString();
  4. if (Calculatrice.listMatrix.ContainsKey(matrix))
  5. {
  6. Matrix m = Calculatrice.listMatrix[matrix];
  7.  
  8. int index = Calculatrice.mainWindow.ListBox_display.Items.IndexOf(m);
  9.  
  10. Calculatrice.mainWindow.ListBox_display.Items.RemoveAt(index);
  11.  
  12. Calculatrice.listMatrix.Remove(matrix);
  13.  
  14. return "Done!n";
  15. }
  16. throw new Exception("The matrix does not exist.n");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement