Beispiel #1
0
 /// <summary>
 /// Stop playing Video
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tb_stop_Click(object sender, EventArgs e)
 {
     if (videoPid.Value != 0)
     {
         KillProcess killproc = new KillProcess(videoPid.Value);
         core.currentUAV.SendCommand(killproc);
         //TODO kill local Video Player too
     }
 }
        public ProcessManagerWindow(RequestListProcess requestListProcess, KillProcess killProcess)
        {
            InitializeComponent();
            this.requestListProcess = requestListProcess;
            this.killProcess        = killProcess;

            lstProcess.ItemsSource = list;

            requestListProcess();
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmStart_Load(object sender, EventArgs e)
        {
            KillProcess.DelProcess(GlobalVar.RIMAGE_CONFIG_SETTING);
            KillProcess.DelProcess(GlobalVar.RIMAGE_MEDICAL_CLIENT);
            KillProcess.DelProcess(GlobalVar.RMDS_PROG);

            this.ServerListFile = Path.Combine(Application.StartupPath, "ServerList.xml");

            this.timer1.Enabled = true;
        }
Beispiel #4
0
        private static void CloseAllInstances(string exePath)
        {
            var exeNme = Path.GetFileName(exePath);
            var messge = $"All running instances of “{exeNme}” will be closed."
                         + L.F + "You may lose unsaved changes."
                         + L.F + "Are you sure you want to proceed?";

            Alert.Confirm($"Closing ALL instances of “{exeNme}” ...", messge, ()
                          => KillProcess.ByName(exeNme, true));
        }
Beispiel #5
0
        public override async void Execute(object parameter)
        {
            var splash = new LoadingSplash();

            KillProcess.ByName(ExeName, true);

            if (await CopyOrigToTemp())
            {
                StartExeProcess(TempExePath);
            }

            UpdateVersionInfo();
            splash.Close();
        }
Beispiel #6
0
        public override async void Execute(object parameter)
        {
            var splash = new SplashScreen(Assembly.GetAssembly(typeof(TempExeLauncherCommand)), "loading.png");

            splash.Show(false, true);

            KillProcess.ByName(ExeName, true);

            if (await CopyOrigToTemp())
            {
                StartExeProcess(TempExePath);
            }

            UpdateVersionInfo();
            splash.Close(TimeSpan.FromSeconds(3));
        }