示例#1
0
        private void RunLast(object sender, RoutedEventArgs e)
        {
            var proc           = new ProgramHelper("cmd");
            var lastWorkingDir = Properties.Settings.Default.lastWorkingDir.ToString();
            var lastCommand    = Properties.Settings.Default.lastCommand.ToString();

            proc.StartProgram(String.Format("/k {0}", lastCommand), lastWorkingDir);
        }
示例#2
0
        private void StartCommand()
        {
            var proc = new ProgramHelper("cmd");

            Properties.Settings.Default.lastWorkingDir = this.ViewModel.WorkingDir;
            Properties.Settings.Default.lastCommand    = this.ViewModel.mppCommand;
            Properties.Settings.Default.Save();
            proc.StartProgram(String.Format("/k {0}", this.ViewModel.mppCommand), this.ViewModel.WorkingDir);
        }