Beispiel #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();
     }
 }
Beispiel #2
0
 private void Select_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (methodList.SelectedItem != null)
     {
         if (prevItem != null && TextChanged())
         {
             MethodSaver(prevItem);
         }
         CommandLineClear();
         rtbhelper.SetString(SQLiteHelper.GetSqlHelper.GetMethod(methodList.SelectedItem.ToString()), methodCommandLine);
         prevItem = methodList.SelectedItem;
     }
 }