public startDatabaseDlg(Database db) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // m_db=db; }
public PanelWizard(ComputerMgmt comp) { mgmt=comp; m_noOfConfiguredNodes=0; m_noOfConfiguredMgmt=0; m_noOfConfiguredNdb=0; m_noOfConfiguredApi=0; Size panelSize= new Size(350,300); Size s= new Size(355,360); Point cancel= new Point(8,310); Point back= new Point(96,310); Point next = new Point(184,310); Point finish= new Point(272,310); InitializeComponent(); this.Size=s; this.btnCancel.Location=cancel; this.btnback.Location=back; this.btnNext.Location=next; this.btnFinish.Location=finish; arrayPanel=new Panel[]{panel1,panel2,panel3,panel4,panel5,panel6};//,panel5, panel6}; panel1.Size=panelSize; comboNDB.SelectedIndex=0; comboAPI.SelectedIndex=0; comboMGM.SelectedIndex=0; m_bMgmt=false; m_bNdb=false; m_db = new Database(); if(listBoxComputers.Items.Count.Equals(0)) btnNext.Enabled=false; }