Esempio n. 1
0
        private void OnUpdateServerAction(SyncStatus status)
        {
            UpdateServerForm form = new UpdateServerForm(GetConfigurator());

            if (this.SnapIn.Console.ShowDialog(form) == DialogResult.OK)
            {
                Process          currentProcess = Process.GetCurrentProcess();
                ProcessStartInfo processStart   = GetConfigurator().BuildUpdateCommandForServer(form.GetUpdateId(), currentProcess.Id);
                Process.Start(processStart);
                currentProcess.CloseMainWindow();
            }
        }
Esempio n. 2
0
        private void OnUpdateServerAction(SyncStatus status)
        {
            UpdateServerForm form = new UpdateServerForm(GetConfigurator());

            if (this.SnapIn.Console.ShowDialog(form) == DialogResult.OK)
            {
                Process currentProcess = Process.GetCurrentProcess();
                ProcessStartInfo processStart = GetConfigurator().BuildUpdateCommandForServer(form.GetUpdateId(), currentProcess.Id);
                Process.Start(processStart);
                currentProcess.CloseMainWindow();
            }
        }