Example #1
0
 public void ShowCollectorDetails(ICollector collector)
 {
     base.Show();
     BizTalkGroup = null;
     BizTalkGroup = ((BizTalkSuspendedCount)collector).BizTalkGroup;
     RefreshList();
 }
Example #2
0
        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("");
            }
        }
Example #3
0
 public void ShowCollectorDetails(ICollector collector)
 {
     base.Show();
     BizTalkGroup = null;
     BizTalkGroup = ((BizTalkPortAndOrchs)collector).BizTalkGroup;
     LoadLists();
     //ShowDetails_Resize(null, null);
 }
Example #4
0
 public void RefreshConfig(ICollector collector)
 {
     BizTalkGroup = ((BizTalkPortAndOrchs)collector).BizTalkGroup;
     LoadLists();
     if (this.WindowState == FormWindowState.Minimized)
     {
         this.WindowState = FormWindowState.Normal;
     }
     this.Show();
 }
Example #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();
 }
Example #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);
            }
        }
Example #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();
 }