public Program() { wf = WF.Instance; wf.program = this; new Settings(); new MainForm(); if (CloseMainForm) { List <Control> controls = new List <Control>(); foreach (Control control in wf.mainForm.Controls) { controls.Add(control); } foreach (Control control in controls) { wf.mainForm.Controls.Remove(control); } wf.mainForm.Closed += new EventHandler(this.OnFormClosed); wf.mainForm.Show(); return; } new BackupData(); wf.logs.Add("foo1"); wf.logs.Add("foo2"); wf.mainForm.Closed += new EventHandler(this.OnFormClosed); wf.mainForm.Show(); //wf.mainForm.appMsgLabel.Text = "Testing single and \"double\" quotes."; }
public MainForm() { wf = WF.Instance; wf.mainForm = this; if (wf.program.CloseMainForm) { return; } InitializeComponent(); SettingsResultLabel.Text = ""; BrowseTreeCurrentNodeLabel.Text = ""; BackupDirTextBox.Text = Properties.Settings.Default.BackupDir; SetAllFonts(); if (Properties.Settings.Default.AllCaps == "Yes") { AllCapsYes.Checked = true; } else { AllCapsNo.Checked = true; } richTextBox1.BackColor = Color.White; richTextBox1.Rtf = Properties.Resources.GettingStarted; AllCapsToolTip.SetToolTip(AllCapsLabel, "Determines whether or not setlists, songs, and rigs are displayed in all caps."); RigSearchResultsListView.Columns.Add("rig", "Rig", 200); RigSearchResultsListView.Columns.Add("ir", "IR", 300); RigDataNameLabel2.Text = ""; RigDataIRLabel2.Text = ""; BackupFolderErrorLabel.Text = ""; }
public static void Main() { WF wf = WF.Instance; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); new Program(); Application.Run(wf.program); }