Exemple #1
0
 private void ATMLAllocatorToolWindow_Activated(object sender, System.EventArgs e)
 {
     if (availableTestStations.DockState != DockState.Float)
     {
         availableTestStations.Show();
     }
     //if (availableTestStations.DockState != DockState.Float)
     //    availableTestAdapters.Show();
     if (availableInstruments.DockState != DockState.Float)
     {
         availableInstruments.Show();
     }
     if (requiredSignals.DockState != DockState.Float)
     {
         requiredSignals.Show();
     }
     if (requiredInstruments.DockState != DockState.Float)
     {
         requiredInstruments.Show();
     }
     if (requiredAdapters.DockState != DockState.Float)
     {
         requiredAdapters.Show();
     }
 }
        public void InitWindows( DockPane navigatorPane, DockPane outputPane )
        {
            availableTestStations = new AvailableTestStationsWindow();
            availableTestStations.Show(DockPanel, DockState.DockRight);
            availableTestStations.Hide();

            //availableTestAdapters = new AvailableTestAdaptersWindow();
            //availableTestAdapters.Show(navigatorPane, DockAlignment.Bottom, .60);
            //availableTestAdapters.Hide();

            availableInstruments = new AvailableInstrumentsWindow();
            availableInstruments.Show(navigatorPane, DockAlignment.Bottom, .50);
            availableInstruments.Hide();

            requiredSignals = new RequiredSignalsWindow();
            requiredSignals.Show(outputPane, DockAlignment.Right, .50 );
            requiredSignals.Hide();
            requiredSignals.SignalRequirementSelected += new ATMLManagerLibrary.delegates.ItemSelectionDeligate<ATMLModelLibrary.model.SignalRequirementsSignalRequirement>(requiredSignals_SignalRequirementSelected);

            requiredInstruments = new RequiredInstrumentsWindow();
            requiredInstruments.Show( requiredSignals.Pane, DockAlignment.Bottom, 0 );
            requiredInstruments.DockTo(requiredSignals.Pane, DockStyle.Fill, 0 );
            requiredInstruments.Hide();

            requiredAdapters = new RequiredAdaptersWindow();
            requiredAdapters.Show(requiredSignals.Pane, DockAlignment.Bottom, 0);
            requiredAdapters.DockTo(requiredSignals.Pane, DockStyle.Fill, 0);
            requiredAdapters.Hide();
        }
Exemple #3
0
        public void InitWindows(DockPane navigatorPane, DockPane outputPane)
        {
            availableTestStations = new AvailableTestStationsWindow();
            availableTestStations.Show(DockPanel, DockState.DockRight);
            availableTestStations.Hide();

            //availableTestAdapters = new AvailableTestAdaptersWindow();
            //availableTestAdapters.Show(navigatorPane, DockAlignment.Bottom, .60);
            //availableTestAdapters.Hide();

            availableInstruments = new AvailableInstrumentsWindow();
            availableInstruments.Show(navigatorPane, DockAlignment.Bottom, .50);
            availableInstruments.Hide();

            requiredSignals = new RequiredSignalsWindow();
            requiredSignals.Show(outputPane, DockAlignment.Right, .50);
            requiredSignals.Hide();
            requiredSignals.SignalRequirementSelected += new ATMLManagerLibrary.delegates.ItemSelectionDeligate <ATMLModelLibrary.model.SignalRequirementsSignalRequirement>(requiredSignals_SignalRequirementSelected);

            requiredInstruments = new RequiredInstrumentsWindow();
            requiredInstruments.Show(requiredSignals.Pane, DockAlignment.Bottom, 0);
            requiredInstruments.DockTo(requiredSignals.Pane, DockStyle.Fill, 0);
            requiredInstruments.Hide();

            requiredAdapters = new RequiredAdaptersWindow();
            requiredAdapters.Show(requiredSignals.Pane, DockAlignment.Bottom, 0);
            requiredAdapters.DockTo(requiredSignals.Pane, DockStyle.Fill, 0);
            requiredAdapters.Hide();
        }