Exemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     this.mDisplay = new VerseDisplay();
     this.mDisplay.ShowActivated = false;
     this.mDisplay.Hide();
     PropertyStore.LoadMetrics((Window)this);
     LoadNames(BibleStore.BibleStore.ChiBible);
 }
Exemplo n.º 2
0
 private void ShowDisplay()
 {
     try {
         if (!this.mDisplay.IsVisible)
         {
             if (!this.mInitDisplay)
             {
                 PropertyStore.LoadMetrics((Window)this.mDisplay);
                 this.mInitDisplay = true;
                 if (this.mDisplay.WindowState == WindowState.Maximized)
                 {
                     this.mDisplay.mMaximize   = true;
                     this.mDisplay.WindowState = WindowState.Normal;
                 }
                 this.mDisplay.ShowActivated = true;
                 this.mDisplay.Show();
                 if (this.mDisplay.mMaximize)
                 {
                     this.mDisplay.WindowState = WindowState.Maximized;
                 }
             }
             else
             {
                 this.mDisplay.ShowActivated = true;
                 this.mDisplay.Show();
             }
         }
         else
         {
             if (this.mDisplay.WindowState != WindowState.Minimized)
             {
                 return;
             }
             if (this.mDisplay.mMaximize)
             {
                 this.mDisplay.WindowState = WindowState.Maximized;
             }
         }
         TraceLogger.Send("Show Display Self Adjust");
         this.mDisplay.SelfAdjust();
     } catch (System.Exception ex) {
         TraceLogger.Send(ex, "Unable to activate");
     }
 }