private void btn_Whatis_Click(object sender, EventArgs e) { Explain show = new Explain(); show.setMessage("This is a form used as a custom message box" + Environment.NewLine + " -When you click the 'What is going on' button..." + Environment.NewLine + " -new Explain() / showDialog()" + Environment.NewLine + " -Loop for *groupBox.Visible == true" + Environment.NewLine + " -Explain.cs -> setMessage(string message);" + Environment.NewLine + " -Dispose() on button event ok"); show.ShowDialog(); show.Dispose(); }
private void cycleExplain() { //cycle groupBoxes if (pnl_Welcome.Visible == true) { Explain show = new Explain(); show.setMessage(" -pnl_Welcome.vis true" + Environment.NewLine + " -Environment.NewLine" + Environment.NewLine + " -pnl_Start.vis false"); show.ShowDialog(); } for (int i = 0; i < groupVisBox.Length; i++) { //groupVisBox[0] = gBox_Welcome; //groupVisBox[1] = gBox_Objective; //groupVisBox[2] = gBox_AboutMe; //groupVisBox[3] = gBox_Education; //groupVisBox[4] = gBox_Skills; //groupVisBox[5] = gBox_WorkHistory; if (groupVisBox[i].Visible == true) { if (i == 0) // gb Welcome { Explain show = new Explain(); show.setMessage("pnl_welcome.Visible = false" + Environment.NewLine + "Components used: " + Environment.NewLine + " -ComboBox" + Environment.NewLine + " -btn_Select > Event > if index selected == x > display" + Environment.NewLine + " -LinkedLabel & Labels"); show.ShowDialog(); } if (i == 1) // gb Objective { Explain show = new Explain(); show.setMessage("Simple labels and groupboxes, nothing fancy"); show.ShowDialog(); } if (i == 2) // gb About Me { Explain show = new Explain(); show.setMessage("Components: " + Environment.NewLine + " -Listbox" + Environment.NewLine + " -Richtext box -> The text displayed is read from a .txt file that has been embedded into resources" + Environment.NewLine + " -PictureBox -> embedded bitmap" + Environment.NewLine + "View button triggers an if() statement that finds selected item.ToString() == 'text'" + Environment.NewLine + ""); show.ShowDialog(); } if (i == 3) // gb Education { Explain show = new Explain(); show.setMessage("Simple labels and groupbox, nothing fancy"); show.ShowDialog(); } if (i == 4) // gb Skills { Explain show = new Explain(); show.setMessage("Components: " + Environment.NewLine + " -This section uses the WebBrowser component, which is linked to my wordpress blog (created for this project)" + Environment.NewLine + " -This is a live view of the site."); show.ShowDialog(); } if (i == 5) // gb Work History { Explain show = new Explain(); show.setMessage("Components: " + Environment.NewLine + " -Richtext box- agian reading .txt from embedded resource" + Environment.NewLine + " -Radio Buttons- Simple, no tricks. View button event finds the .Checked == true then reads file"); show.ShowDialog(); } } } }