示例#1
0
 public static void ShowClientDetails(object sender, EventArgs e)
 {
     foreach (ConnectionTable.ClientInformation clientInformation in _connectionTable.GetChecked())
     {
         TraceOps.Out("ClientInformation for " + clientInformation.GetName());
         try
         {
             ConnectionTable.ClientInformation information = clientInformation;
             var thread = new Thread(new ThreadStart(() =>
             {
                 var clientDetailForm = new ServerClientDetailForm(information)
                 {
                     TopLevel = false
                 };
                 var d = new PluginFormCallback(SetWindowToPanel);
                 _mainForm.Invoke(d, new object[] { clientDetailForm });
             }));
             thread.Start();
         }
         catch (Exception et)
         {
             TraceOps.Out(et.ToString());
         }
     }
 }
示例#2
0
        public static void ShowClientDetails(object sender, EventArgs e)
        {
            foreach (ConnectionTable.ClientInformation clientInformation in _connectionTable.GetChecked())
            {
                TraceOps.Out("ClientInformation for " + clientInformation.GetName());
                try
                {
                    ConnectionTable.ClientInformation information = clientInformation;
                    var thread = new Thread(new ThreadStart(() =>
                    {
                        var clientDetailForm = new ServerClientDetailForm(information) { TopLevel = false };
                        var d = new PluginFormCallback(SetWindowToPanel);
                        _mainForm.Invoke(d, new object[] { clientDetailForm });
                    }));
                    thread.Start();
                }
                catch (Exception et)
                {
                    TraceOps.Out(et.ToString());
                }

            }
        }