static void KillProcess(object sender, EventArgs e) { if (AutoApp.Application.DocumentManager.MdiActiveDocument == null) { SimulateHelper.KillProcess(Process.GetCurrentProcess()); } }
public static void CustomSaveAs() { if (_doc != null) { SetActive(_doc); AutoApp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("tsaveas ", true, false, true); SimulateHelper helper = new SimulateHelper(); helper.Excute(); Quit(); } }
public static void KillProgress() { SimulateHelper.KillProcess(Process.GetCurrentProcess()); }