public void RestartProcess()
 {
     KillProcess();
     if (!CheckTargetExeOrSetError())
     {
         return;
     }
     if (string.IsNullOrEmpty(Xaml))
     {
         return;
     }
     if (Xaml != null)
     {
         _host.UpdateXaml(Xaml, SourceAssembly);
     }
     _host.Start(TargetExe, Xaml, SourceAssembly);
 }
Esempio n. 2
0
 private void OnXamlChanged()
 {
     if (!CheckTargetExeOrSetError())
     {
         return;
     }
     if (!_host.IsAlive)
     {
         _host.Start(TargetExe, Xaml);
     }
     else
     {
         _host.UpdateXaml(Xaml ?? "");
     }
 }