private void ExecuteSaveCommand() { Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog(); dlg.FileName = "config"; dlg.DefaultExt = ".ControllerConfig"; dlg.Filter = "Robot Configuration Files|*.ControllerConfig"; Nullable <bool> result = dlg.ShowDialog(); if (result == true) { MainViewModel.SaveData(dlg.FileName); } }
private void ExecuteSaveCommand() { MainViewModel.SaveData(); }