Exemplo n.º 1
0
 void myAction_Execute(object sender, DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs e)
 {
     var f = new NKD.Module.Win.Controllers.UpdateConfig();
     if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         //System.Windows.Forms.Application.Restart();
         System.Diagnostics.Process.Start(System.Windows.Forms.Application.ExecutablePath);
         Process.GetCurrentProcess().Kill();
     }
 }
Exemplo n.º 2
0
        void myAction_Execute(object sender, DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs e)
        {
            var f = new NKD.Module.Win.Controllers.UpdateConfig();

            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //System.Windows.Forms.Application.Restart();
                System.Diagnostics.Process.Start(System.Windows.Forms.Application.ExecutablePath);
                Process.GetCurrentProcess().Kill();
            }
        }