Ejemplo n.º 1
0
        private void scBrowser_RootClicked(object sender, RootClickedEventArgs args)
        {
            try
            {
                pnlContent.Controls.Clear();

                RootControl control = new RootControl();
                control.Root = args.Root;
                control.Location = new Point(0, 0);
                control.Name = "control";
                pnlContent.Controls.Add(control);
                control.Show();
            }
            catch (Exception e)
            {
                SC.GUI.Utility.ErrorForm.ShowErrorForm(e);
            }
        }