public void UnLoad()
 {
     if (window == null)
         return;
     window.Close();
     window = null;
 }
 public void Load()
 {
     if (window != null)
         return;
     window = new MainWindow();
     window.Title = Title;
     window.Icon = Icon;
     window.Flows = WorkFlows;
     window.Background = Background;
     window.Show();
 }