示例#1
0
 public void ShowCollectorDetails(ICollector collector)
 {
     base.Show();
     BizTalkGroup = null;
     BizTalkGroup = ((BizTalkSuspendedCount)collector).BizTalkGroup;
     RefreshList();
 }
示例#2
0
文件: AddHost.cs 项目: utobe/QuickMon
        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("");
            }
        }
示例#3
0
 public void ShowCollectorDetails(ICollector collector)
 {
     base.Show();
     BizTalkGroup = null;
     BizTalkGroup = ((BizTalkPortAndOrchs)collector).BizTalkGroup;
     LoadLists();
     //ShowDetails_Resize(null, null);
 }
示例#4
0
 public void RefreshConfig(ICollector collector)
 {
     BizTalkGroup = ((BizTalkPortAndOrchs)collector).BizTalkGroup;
     LoadLists();
     if (this.WindowState == FormWindowState.Minimized)
     {
         this.WindowState = FormWindowState.Normal;
     }
     this.Show();
 }
示例#5
0
 public void RefreshConfig(ICollector collector)
 {
     BizTalkGroup = null;
     BizTalkGroup = ((BizTalkSuspendedCount)collector).BizTalkGroup;
     RefreshList();
     if (this.WindowState == FormWindowState.Minimized)
     {
         this.WindowState = FormWindowState.Normal;
     }
     this.Show();
 }
示例#6
0
        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);
            }
        }
示例#7
0
 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();
 }