Exemplo n.º 1
0
        public MainWindow()
        {
            dbManager = new DBManager();

            //Create the component info control
            componentInfoControl = new componentInfoUserControl(this, dbManager);
            componentInfoControl.Location = new System.Drawing.Point(9, 428);

            //Create the component tree control
            treeControl = new componentTreeUserControl(this, componentInfoControl, dbManager);
            treeControl.Location = new System.Drawing.Point(9, 6);

            //Set the info panel to use the TreeUserControl being used by the Main Window
            componentInfoControl.setTreeControl(treeControl);

            //Create a default aircraft layout and add it to the middle panel
            aircraftControl = new SinglePropellerLayout(this, treeControl);
            aircraftControl.Location = new Point(10, 10);

            InitializeComponent();

            //Add controls to their appropriate containers
            splitContainer1.Panel1.Controls.Add(treeControl);
            splitContainer1.Panel1.Controls.Add(componentInfoControl);
            splitContainer1.Panel2.Controls.Add(aircraftControl);


        }
        public componentTreeUserControl(MainWindow mainWindow, componentInfoUserControl infoControl, DBManager dbManager)
        {
            this.mainWindow = mainWindow;
            this.infoControl = infoControl;

            this.dbManager = dbManager;

            InitializeComponent();
            initializeComponentTree(); 
        }
Exemplo n.º 3
0
 public BatteryInfo(componentInfoUserControl infoControl, DBManager dbManager) : base(infoControl, dbManager)
 {
     InitializeComponent();
 }
 public PropellerInfo(componentInfoUserControl infoControl, DBManager dbManager) : base(infoControl, dbManager)
 {
     InitializeComponent();
 }
Exemplo n.º 5
0
 public InfoPanel(componentInfoUserControl infoControl, DBManager dbManager)
 {
     this.dbManager = dbManager;
     this.infoControl = infoControl;
     InitializeComponent();            
 }