public virtual void InitializeWithWindow(MainWindow window)
 {
   this.WindowInstance = window;
   this.TuneWindowProperties();
   LifecycleObserver.OnConfigChanged +=
     (sender, args) => LifeManager.UISynchronizationContext.Send(this.ReInitializeInContext, null);
   this.Initialized = true;
 }
        public MainWindow()
        {
            this.InitializeComponent();

              using (new ProfileSection("Main window ctor", typeof(MainWindow)))
              {
            Instance = this;
            this.Title = string.Format(this.Title, ApplicationManager.AppShortVersion, ApplicationManager.AppLabel);

            this.timer =
              new System.Threading.Timer(
            obj => this.Dispatcher.Invoke(new Action(() => this.Search(null, null)), DispatcherPriority.Render));
              }
        }
    public MainWindow()
    {
      this.InitializeComponent();

      using (new ProfileSection("Main window ctor"))
      {
        Instance = this;
        if (WindowsSettings.AppUiMainWindowWidth.Value <= 0)
        {
          this.MaxWidth = this.MinWidth;
        }

        this.Title = string.Format(this.Title, ApplicationManager.AppShortVersion, ApplicationManager.AppVersion, ApplicationManager.AppLabel);

        this.timer =
          new System.Threading.Timer(
            obj => this.Dispatcher.Invoke(new Action(() => this.Search(null, null)), DispatcherPriority.Render));
      }
    }
 public OnVisibleEventArgs(MainWindow mainWindow)
 {
   this.MainWindow = mainWindow;
 }
 private void InitInstance(MainWindow mainWindow)
 {
     this.WindowReference = mainWindow;
       this.MakeStartupHiddenIfNeeded();
 }
 public static void Init(MainWindow mainWindow)
 {
     ActualManager.InitInstance(mainWindow);
 }
 public static void InitializeWithWindow(MainWindow window)
 {
   CreatePrincipalIfNeed();
   ActualPrincipal.InitializeWithWindow(window);
   SubscribeToPopupEvent();
 }