public void Invoke() { DeleteProcess deleteProcess = new DeleteProcess(); deleteProcess.Process = this.m_Process; deleteProcess.Delete(); }
public static void Main(string[] args) { switch (args[0]) { case "install": InstallArgs installArgs = new InstallArgs(args); InstallProcess installProcess = new InstallProcess(); installProcess.Execute(installArgs); break; case "delete": DeleteArgs deleteArgs = new DeleteArgs(args); DeleteProcess deleteProcess = new DeleteProcess(); deleteProcess.Execute(deleteArgs); break; case "export": var exportArgs = new ExportArgs(args); var exportProcess = new ExportProcess(); exportProcess.Execute(exportArgs); break; case "import": var importArgs = new ImportArgs(args); var importProcess = new ImportProcess(); importProcess.Execute(importArgs); break; } }
public TaskManagerViewModel(Action <ProcessPriorityClass?> selectRadio) { _selectRadio = selectRadio; ProcessList = new ObservableCollection <ProcessListItem>(Process.GetProcesses().Select(p => new ProcessListItem(p))); SelectedProcess = ProcessList[0]; PriorityChanged = new PriorityChanged(this); RefreshList = new RefreshList(this); DeleteProcess = new DeleteProcess(); RunProcess = new RunProcess(); UpdateSpeedChanged = new UpdateSpeedChanged(async(r) => { _refreshRate = r; await StartRefresh(); }); }
public static void Main(string[] args) { switch (args[0]) { case "install": InstallArgs installArgs = new InstallArgs(args); InstallProcess installProcess = new InstallProcess(); installProcess.Execute(installArgs); break; case "delete": DeleteArgs deleteArgs = new DeleteArgs(args); DeleteProcess deleteProcess = new DeleteProcess(); deleteProcess.Execute(deleteArgs); break; case "export": var exportArgs = new ExportArgs(args); var exportProcess = new ExportProcess(); exportProcess.Execute(exportArgs); break; } }