private void button1_Click(object sender, System.EventArgs e) { m_mb = new MessageBalloon(); m_mb.Parent = groupBox1; m_mb.Title = "Traders corp. Inc"; m_mb.TitleIcon = TooltipIcon.Info; m_mb.Text = "This control helps group all inventory items."; BalloonAlignment ba = (BalloonAlignment)Enum.Parse(typeof(BalloonAlignment), (string)comboBox1.SelectedItem); m_mb.Align = ba; m_mb.CenterStem = checkBox1.Checked ? true : false; m_mb.UseAbsolutePositioning = checkBox2.Checked ? true : false; m_mb.Show(); }
public GSMDemo() { InitializeComponent(); cReceiver = new AAsyncEventArgs(); cConnectForm = Globals.ThisAddIn.cConnectForm; upConnectButton.Enabled = true; upGenerateDataButton.Enabled = false; upLoadButton.Enabled = true; upSplitButton.Enabled = true; upRunButton.Enabled = false; upSaveButton.Enabled = true; upCloseButton.Enabled = true; BalloonAlignment ba = BalloonAlignment.RightMiddle; cConnectHelp.Parent = upConnectButton; cConnectHelp.Title = "Connect to AIS"; cConnectHelp.TitleIcon = TooltipIcon.Info; cConnectHelp.Text = "You must connect to an Analytic Information Server(AIS) running the GSM Demo server application" + "to enable the Generate Test button and the Run GSM Test button."; cConnectHelp.Align = ba; cConnectHelp.CenterStem = false; cConnectHelp.UseAbsolutePositioning = false; cRunHelp.Parent = upRunButton; cRunHelp.Title = "Run GSM Test"; cRunHelp.TitleIcon = TooltipIcon.Info; cRunHelp.Text = "After the above worksheets have been filled and modified as necessary, select Run GSM Test to" + " conduct a regression. This test may take a very long time for large data sets."; cRunHelp.Align = ba; cRunHelp.CenterStem = false; cRunHelp.UseAbsolutePositioning = false; cGenerateHelp.Parent = upGenerateDataButton; cGenerateHelp.Title = "Generate Test Set"; cGenerateHelp.TitleIcon = TooltipIcon.Info; cGenerateHelp.Text = "GSM requires data obtained by generating data or loading data from a local file. Click" + " on Generate Test to select one of 26 sets of test data. Three worksheets are addedto your workboolk, " + " Parameters, Testing Data, Training Data. Be sure to add the corresponding file names for each of these" + " worksheets to the parameters worksheet if you wish to export these sheets to files."; cGenerateHelp.Align = ba; cGenerateHelp.CenterStem = false; cGenerateHelp.UseAbsolutePositioning = false; cLoadHelp.Parent = upLoadButton; cLoadHelp.Title = "Load Test Set"; cLoadHelp.TitleIcon = TooltipIcon.Info; cLoadHelp.Text = "If you have previously saved a test set consisting of these three files on your local file" + " system, you can select Load Test button as an alternate way to obtain a test set."; cLoadHelp.Align = ba; cLoadHelp.CenterStem = false; cLoadHelp.UseAbsolutePositioning = false; cSplitHelp.Parent = upSplitButton; cSplitHelp.Title = "Split Test Data"; cSplitHelp.TitleIcon = TooltipIcon.Info; cSplitHelp.Text = "Split divides a data set into a Training set and a Testing set. Import these sets into a" + " Training worksheet and a Testing worksheet."; cSplitHelp.Align = ba; cSplitHelp.CenterStem = false; cSplitHelp.UseAbsolutePositioning = false; cWelcomeHelp.Parent = upShowWelcomeText; cWelcomeHelp.Title = "Toggle Welcome Text Pane"; cWelcomeHelp.TitleIcon = TooltipIcon.Info; cWelcomeHelp.Text = "Expand/collapse the Welcome Text Pane. Expand to view the Welcome Text. Collapse to save space."; cWelcomeHelp.Align = ba; cWelcomeHelp.CenterStem = false; cWelcomeHelp.UseAbsolutePositioning = false; cAisMsgHelp.Parent = upShowAISMessages; cAisMsgHelp.Title = "Toggle AIS Messages Pane"; cAisMsgHelp.TitleIcon = TooltipIcon.Info; cAisMsgHelp.Text = "Expand/collapse the Ais Messages Pane. Expand to view Ais Messages & to enter AIS commands. Collapse" + " to save space."; cAisMsgHelp.Align = ba; cAisMsgHelp.CenterStem = false; cAisMsgHelp.UseAbsolutePositioning = false; cSaveHelp.Parent = upSaveButton; cSaveHelp.Title = "Save Test Set"; cSaveHelp.TitleIcon = TooltipIcon.Info; cSaveHelp.Text = "Select Save Test to save these three worksheets as a test set (three files) in your local file" + " system. The TestDir parameter selects the folder in your file system where the test set is saved. "; cSaveHelp.Align = ba; cSaveHelp.CenterStem = false; cSaveHelp.UseAbsolutePositioning = false; cCloseHelp.Parent = upCloseButton; cCloseHelp.Title = "Close"; cCloseHelp.TitleIcon = TooltipIcon.Info; cCloseHelp.Text = "Select Close to dismiss this dialog. Close does \r\nnot disconnect you from the se" + "rver or terminate \r\nan ongoing test. You can reopen this dialog from \r\nthe Smil" + "ey Face icon in the custom toolbar."; cCloseHelp.Align = ba; cCloseHelp.CenterStem = false; cCloseHelp.UseAbsolutePositioning = false; cHelpHelp.Parent = upHelpButton; cHelpHelp.Title = "Help on Help"; cHelpHelp.TitleIcon = TooltipIcon.Info; cHelpHelp.Text = "Click on Help to send an email usiing your local email client, if any. " + "Please include a very detailed description of the exact steps required " + "to reproduce the problem. If an email client is not available, just " + "send email to [email protected]. Thanks!"; cHelpHelp.Align = ba; cHelpHelp.CenterStem = false; cHelpHelp.UseAbsolutePositioning = false; }