private void StartAnalystButton_Click(object sender, EventArgs e) { if (Api != null) { return; } SpotfireApiClient.UseAnalystClient = true; StatusTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((( System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); int newHeight = StatusTextBox.Bottom - WebBrowserContainerPanel.Top; // make status box bigger StatusTextBox.Top = WebBrowserContainerPanel.Top; StatusTextBox.Height = newHeight; WebBrowserContainerPanel.Visible = false; StatusTextBox.Text += "Waiting for TIBCO Spotfire to start...\r\n"; Api = new SpotfireApiClient(); Api.StartDxpProcess(); StatusTextBox.Text += "Spotfire started\r\n"; CommandPanel.Enabled = true; StartAnalystButton.Text = "Using Analyst"; StartWebPlayerButton.Visible = false; return; }
private void StartWebPlayerButton_Click(object sender, EventArgs e) { if (Api != null) { return; } SpotfireApiClient.UseWebPlayerClient = true; Api = new SpotfireApiClient(); Api.InitializeWebBrowserControl(WebBrowser, this, StatusTextBox); CommandPanel.Enabled = true; StartWebPlayerButton.Text = "Using WebPlayer"; StartAnalystButton.Visible = false; return; }