Ejemplo n.º 1
0
 private void SaveButtonClick(object sender, RoutedEventArgs e)
 {
     App.ViewModel.CodeEditorViewModel.SaveName = SaveNameTextBox.Text;
     var saver = new CodeSaver();
     saver.SaveLocal();
     NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
 }
Ejemplo n.º 2
0
 private void SaveMenuItemClick(object sender, EventArgs e)
 {
     App.ViewModel.CodeEditorViewModel.Code = CodeTextBox.Text;
     if (string.IsNullOrEmpty(App.ViewModel.CodeEditorViewModel.SaveName))
     {
         SaveAsMenuItemClick(sender, e);
     }
     else
     {
         var saver = new CodeSaver();
         saver.SaveLocal();
         //saver.SaveAsync();
     }
 }