//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(); } }
//képernyő törlés public void Clear(Turtle turtle) { turtle.Clean(); }
//új private void NewClick(object sender, ExecutedRoutedEventArgs e) { NewProject np = new NewProject(); np.ShowDialog(); if (np.IsSuccess) { SetMain(); turtle = new Turtle(canvas); turtle.Clean(); } }