static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); byte[] lbKey = Common.CreateKey(); Config lcConfig = Config.LoadConfig(lbKey); if (lcConfig == null) { Wizard lwWizard = new Wizard(); Application.Run(lwWizard); if (lwWizard.DialogResult == DialogResult.OK) lcConfig = lwWizard.Config; else return; } Application.Run(new SendForm(lcConfig)); }
private void ToolStripMenuItemConfigWizard_Click(object sender, EventArgs e) { ConfigWizard.Wizard lwWizard = new ConfigWizard.Wizard(); if (lwWizard.ShowDialog() == System.Windows.Forms.DialogResult.OK) mcConfig = lwWizard.Config; }
public ConfigWizardPanel(Wizard pwOwner) { InitializeComponent(); mwOwner = pwOwner; }