Пример #1
0
 //megnyitás
 private void OpenClick(object sender, ExecutedRoutedEventArgs e)
 {
     if (menu.Open() == true)
     {
         sqlitehelper.SetCanvasSize();
         SetMain();
         rtbhelper.SetString(sqlitehelper.GetSourceCode(), commandLine);
         turtle = new Turtle(canvas);
         turtle.Clean();
     }
 }
Пример #2
0
 //képernyő törlés
 public void Clear(Turtle turtle)
 {
     turtle.Clean();
 }
Пример #3
0
 //képernyő törlés
 public void Clear(Turtle turtle)
 {
     turtle.Clean();
 }
Пример #4
0
 //új
 private void NewClick(object sender, ExecutedRoutedEventArgs e)
 {
     NewProject np = new NewProject();
     np.ShowDialog();
     if (np.IsSuccess)
     {
         SetMain();
         turtle = new Turtle(canvas);
         turtle.Clean();
     }
 }