Пример #1
0
 public Window()
 {
     InitializeComponent();
     //set colours from config file for user's chosen panel colours
     Recolor();
     Panel_Management.BringToFront();
     Console.WriteLine(this.Size); // static instance of instance has a size here but not but not in project
     //for constructor
     DisplayProjectsForm();        // cant call the object in its constructor
 }
Пример #2
0
        public void Recolor()
        {
            label1.Text = Convert.ToString(Panel_Management.Visible);
            //string color = ConfigurationManager.AppSettings["managementPanel_Color"];
            Color color = Properties.Settings.Default.managementPanel_Color;

            Panel_Management.BackColor = color;
            Panel_Management.BringToFront();
            Panel_Management.Show();

            label1.Text = Convert.ToString(Panel_Management.Visible);
            label2.Text = Panel_Management.BackColor.Name;
        }