public void ShowCollectorDetails(ICollector collector) { base.Show(); BizTalkGroup = null; BizTalkGroup = ((BizTalkSuspendedCount)collector).BizTalkGroup; RefreshList(); }
public string GetHostName(string sqlServer, string database) { try { BizTalkGroup bizTalkGroup = new BizTalkGroup(); bizTalkGroup.SqlServer = sqlServer; bizTalkGroup.MgmtDBName = database; foreach (string host in bizTalkGroup.GetHostList()) { lstHosts.Items.Add(host); } } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } if (ShowDialog() == DialogResult.OK) { return(txtHost.Text); } else { return(""); } }
public void ShowCollectorDetails(ICollector collector) { base.Show(); BizTalkGroup = null; BizTalkGroup = ((BizTalkPortAndOrchs)collector).BizTalkGroup; LoadLists(); //ShowDetails_Resize(null, null); }
public void RefreshConfig(ICollector collector) { BizTalkGroup = ((BizTalkPortAndOrchs)collector).BizTalkGroup; LoadLists(); if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; } this.Show(); }
public void RefreshConfig(ICollector collector) { BizTalkGroup = null; BizTalkGroup = ((BizTalkSuspendedCount)collector).BizTalkGroup; RefreshList(); if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; } this.Show(); }
private void cmdTestDB_Click(object sender, EventArgs e) { BizTalkGroup bizTalkGroup = new BizTalkGroup(); bizTalkGroup.SqlServer = txtSQLServer.Text; bizTalkGroup.MgmtDBName = txtDatabase.Text; if (!bizTalkGroup.TestConnection()) { MessageBox.Show(bizTalkGroup.LastError, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show("Success", "Connection test", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void EditConfig_Shown(object sender, EventArgs e) { if (BizTalkGroup == null) { BizTalkGroup = new BizTalkGroup(); } txtSQLServer.Text = BizTalkGroup.SqlServer; txtDatabase.Text = BizTalkGroup.MgmtDBName; chkAllReceiveLocations.Checked = BizTalkGroup.AllReceiveLocations; chkAllSendPorts.Checked = BizTalkGroup.AllSendPorts; chkAllOrchestrations.Checked = BizTalkGroup.AllOrchestrations; LoadReceiveLocations(); LoadSendPorts(); LoadOrchestrations(); }