Exemple #1
0
        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);
            }
        }
Exemple #2
0
 private void ExecuteSaveCommand()
 {
     MainViewModel.SaveData();
 }