public void InitPage() { InitializeComponent(); base.Size = this.Size; this.ParentWizardForm.DiscoverPagePanelSize(this.Size); // add a handler to let us know when the wizard form has been "started" this.ParentWizardForm.WizardFormStartedEvent += new WizardFormStartedHandler(ParentWizardForm_WizardFormStartedEvent); pesaPal = new PesaPal(false);//true); // MySQLConnection1 = new MySQLConnection(); }
private void FormMain_Load(object sender, EventArgs e) { MySQLConnection MySQLConnection1 = new MySQLConnection(); if (CheckNetStatus()) { MySQLConnection1.GetPrintingPrices(); lablStdCost.Text = clsGlobalVariables.StandardPhotoPrice.ToString(); lablPPCost.Text = clsGlobalVariables.PassportPhoroPrice.ToString(); } else { lablStdCost.Text = "Not Available"; lablPPCost.Text = "Not Available"; } }