Beispiel #1
0
 private void scBrowser_ServerClicked(object sender, ServerClickedEventArgs args)
 {
     try
     {
         pnlContent.Controls.Clear();
         ServerControl control = new ServerControl();
         control.Server       = args.Server;
         control.PluginLoader = args.Root.GetPluginLoader();
         control.Location     = new Point(0, 0);
         control.Name         = "control";
         pnlContent.Controls.Add(control);
         control.Show();
     }
     catch (Exception e)
     {
         SC.GUI.Utility.ErrorForm.ShowErrorForm(e);
     }
 }
Beispiel #2
0
 private void scBrowser_ServerClicked(object sender, ServerClickedEventArgs args)
 {
     try
     {
         pnlContent.Controls.Clear();
         ServerControl control = new ServerControl();
         control.Server = args.Server;
         control.PluginLoader = args.Root.GetPluginLoader();
         control.Location = new Point(0, 0);
         control.Name = "control";
         pnlContent.Controls.Add(control);
         control.Show();
     }
     catch (Exception e)
     {
         SC.GUI.Utility.ErrorForm.ShowErrorForm(e);
     }
 }