Пример #1
0
        /// <summary> Show the Coding Controls in a separate window </summary>
        private void ControlsInSeparateWindow()
        {
            // this.controlsTray.Children.Clear();
            this.controlsTray.Children.Remove(this.myControls);

            controlWindow = new ControlWindow(state);    // Handles to the control window and to the controls
            controlWindow.Owner = this;             // Keeps this window atop its parent no matter what
            controlWindow.Closed += controlWindow_Closing;
            controlWindow.AddControls(this.myControls);
            controlWindow.RestorePreviousSize();
            controlWindow.Show();
            this.MenuItemControlsInSeparateWindow.IsChecked = true;
        }
Пример #2
0
 /// <summary>
 /// Show the Coding Controls in the main timelapse window
 /// </summary>
 private void ControlsInMainWindow()
 {
     if (null != this.controlWindow)
     {
         this.controlWindow.ChildRemove(myControls);
         this.controlWindow.Close();
         this.controlWindow = null;
     }
     else
     {
         this.controlsTray.Children.Remove(this.myControls);
         this.controlsTray.Children.Add(myControls);
         this.MenuItemControlsInSeparateWindow.IsChecked = false;
     }
 }