Example #1
0
 private void ConnectionsCountLabel_Click(object sender, EventArgs e)
 {
     try
     {
         //hidden egg to show the connections.  Just click on the connections count label to show and update the list
         List <BindingElement> list = new List <BindingElement>();
         foreach (FavoriteConfigurationElement elm in this.DiscoFavs)
         {
             BindingElement be = new BindingElement();
             be.Element = string.Format("{0}:{1}", elm.ServerName, elm.Protocol);
             list.Add(be);
         }
         this.dataGridView1.DataSource = list;
         this.dataGridView1.Visible    = true;
         Application.DoEvents();
     }
     catch (Exception exc) { Terminals.Logging.Log.Info("", exc); }
 }
        /// <summary>
        /// hidden egg to show the connections.  Just click on the connections count label to show and update the list
        /// </summary>
        private void ConnectionsCountLabel_Click(object sender, EventArgs e)
        {
            try
            {
                List <BindingElement> list = new List <BindingElement>();
                foreach (FavoriteConfigurationElement elm in this.DiscoveredConnections)
                {
                    BindingElement be = new BindingElement();
                    be.Element = string.Format("{0}:{1}", elm.ServerName, elm.Protocol);
                    list.Add(be);
                }

                this.dataGridView1.DataSource = list;
                this.dataGridView1.Visible    = true;
                Application.DoEvents();
            }
            catch (Exception exc)
            {
                Logging.Info("Connections Count Label", exc);
            }
        }
        /// <summary>
        /// hidden egg to show the connections.  Just click on the connections count label to show and update the list
        /// </summary>
        private void ConnectionsCountLabel_Click(object sender, EventArgs e)
        {
            try
            {
                List<BindingElement> list = new List<BindingElement>();
                foreach (FavoriteConfigurationElement elm in this.DiscoveredConnections)
                {
                    BindingElement be = new BindingElement();
                    be.Element = string.Format("{0}:{1}", elm.ServerName, elm.Protocol);
                    list.Add(be);
                }

                this.dataGridView1.DataSource = list;
                this.dataGridView1.Visible = true;
                Application.DoEvents();
            }
            catch (Exception exc)
            {
                Logging.Info("Connections Count Label", exc);
            }
        }
        private void ConnectionsCountLabel_Click(object sender, EventArgs e)
        {
            try
            {

                //hidden egg to show the connections.  Just click on the connections count label to show and update the list
                List<BindingElement> list = new List<BindingElement>();
                foreach(FavoriteConfigurationElement elm in this.DiscoFavs)
                {
                    BindingElement be = new BindingElement();
                    be.Element = string.Format("{0}:{1}", elm.ServerName, elm.Protocol);
                    list.Add(be);
                }
                this.dataGridView1.DataSource = list;
                this.dataGridView1.Visible = true;
                Application.DoEvents();
            }
            catch (Exception exc) { Terminals.Logging.Log.Info("", exc); }
        }