Exemplo n.º 1
0
        //static private GEForm _geForm;
        /// <summary>
        /// Initializes a new instance of the <see cref="MainForm"/> class.
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            _telemetryComms.InitializeComPort();
            _videoForm = new VideoForm(_telemetryComms.Data);
            _mapForm = new MapForm();
            _settingsForm = new SettingsForm();
            _outputForm = new OutputForm();
            _telemetryForm = new TelemetryForm(_telemetryComms.Data);
            //_geForm = new GEForm();

            _deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
        }
Exemplo n.º 2
0
        //static private GEForm _geForm;

        /// <summary>
        /// Initializes a new instance of the <see cref="MainForm"/> class.
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            _telemetryComms.InitializeComPort();
            _videoForm     = new VideoForm(_telemetryComms.Data);
            _mapForm       = new MapForm();
            _settingsForm  = new SettingsForm();
            _outputForm    = new OutputForm();
            _telemetryForm = new TelemetryForm(_telemetryComms.Data);
            //_geForm = new GEForm();

            _deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
        }
Exemplo n.º 3
0
        private void standardLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                DockingPanel.SuspendLayout(true);

                //check for null forms - Not working - figure out the disposal of forms.
                if (_videoForm.IsDisposed == true)
                {
                    _videoForm = new VideoForm(_telemetryComms.Data);
                }
                _videoForm.Show(DockingPanel, DockState.Document);
                if (_mapForm.IsDisposed == true)
                {
                    _mapForm = new MapForm();
                }
                _mapForm.Show(DockingPanel, DockState.DockRight);
                if (_settingsForm.IsDisposed == true)
                {
                    _settingsForm = new SettingsForm();
                }
                _settingsForm.Show(DockingPanel, DockState.DockLeft);
                if (_outputForm.IsDisposed == true)
                {
                    _outputForm = new OutputForm();
                }
                _outputForm.Show(DockingPanel, DockState.DockBottom);
                if (_telemetryForm.IsDisposed == true)
                {
                    _telemetryForm = new TelemetryForm(_telemetryComms.Data);
                }
                if (_telemetryForm.IsDisposed == true)
                {
                    _telemetryForm = new TelemetryForm(_telemetryComms.Data);
                }
                _telemetryForm.Show(DockingPanel, DockState.Float);
                //if (_geForm.IsDisposed == true)
                //    _geForm = new GEForm();
                //_geForm.Show(DockingPanel, DockState.Float);

                //save current layout
                _deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                DockingPanel.ResumeLayout(true, true);
            }
            catch (Exception ex)
            {
                TraceException.WriteLine(ex);
            }
        }
Exemplo n.º 4
0
        private void standardLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                DockingPanel.SuspendLayout(true);

                //check for null forms - Not working - figure out the disposal of forms.
                if (_videoForm.IsDisposed == true)
                    _videoForm = new VideoForm(_telemetryComms.Data);
                _videoForm.Show(DockingPanel, DockState.Document);
                if (_mapForm.IsDisposed == true)
                    _mapForm = new MapForm();
                _mapForm.Show(DockingPanel, DockState.DockRight);
                if (_settingsForm.IsDisposed == true)
                    _settingsForm = new SettingsForm();
                _settingsForm.Show(DockingPanel, DockState.DockLeft);
                if (_outputForm.IsDisposed == true)
                    _outputForm = new OutputForm();
                _outputForm.Show(DockingPanel, DockState.DockBottom);
                if (_telemetryForm.IsDisposed == true)
                    _telemetryForm = new TelemetryForm(_telemetryComms.Data);
                if (_telemetryForm.IsDisposed == true)
                    _telemetryForm = new TelemetryForm(_telemetryComms.Data);
                _telemetryForm.Show(DockingPanel, DockState.Float);
                //if (_geForm.IsDisposed == true)
                //    _geForm = new GEForm();
                //_geForm.Show(DockingPanel, DockState.Float);

                //save current layout
                _deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                DockingPanel.ResumeLayout(true, true);
            }
            catch (Exception ex)
            {
                TraceException.WriteLine(ex);
            }
        }