コード例 #1
0
 public virtual void InitializeWithWindow(MainWindow window)
 {
   this.WindowInstance = window;
   this.TuneWindowProperties();
   LifecycleObserver.OnConfigChanged +=
     (sender, args) => LifeManager.UISynchronizationContext.Send(this.ReInitializeInContext, null);
   this.Initialized = true;
 }
コード例 #2
0
        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));
              }
        }
コード例 #3
0
    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));
      }
    }
コード例 #4
0
 public OnVisibleEventArgs(MainWindow mainWindow)
 {
   this.MainWindow = mainWindow;
 }
コード例 #5
0
 private void InitInstance(MainWindow mainWindow)
 {
     this.WindowReference = mainWindow;
       this.MakeStartupHiddenIfNeeded();
 }
コード例 #6
0
 public static void Init(MainWindow mainWindow)
 {
     ActualManager.InitInstance(mainWindow);
 }
コード例 #7
0
 public static void InitializeWithWindow(MainWindow window)
 {
   CreatePrincipalIfNeed();
   ActualPrincipal.InitializeWithWindow(window);
   SubscribeToPopupEvent();
 }