Example #1
0
 private void InfoProxy_LB_Click(object sender, EventArgs e)
 {
     SelectedMenuLabel();
     InfoProxy_LB.ForeColor = Color.White;
     InfoProxy_Panel.Show();
     Info_Panel.Hide();
     RegistryHacks_Panel.Hide();
     CustRegHacks_Panel.Hide();
     Settings_Panel.Hide();
     SelectedLabel_LB.Location = new Point(25, SelectedLabel_LB.Location.Y);
     SelectedLabel_LB.Size     = new Size(93, 3);
 }
Example #2
0
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    // General Options Start
    public void SwitchPanel(int choice)
    {
        Dashboard_Panel.SetActive(false);
        NewJob_Panel.SetActive(false);
        Reports_Panel.SetActive(false);
        Channels_Panel.SetActive(false);
        Users_Panel.SetActive(false);
        Settings_Panel.SetActive(false);



        //.GetComponent<Image>().color = blueColor;
        //NewJob_Button.GetComponent<Image>().color = blueColor;
        //Reports_Button.GetComponent<Image>().color = blueColor;
        //Company_Button.GetComponent<Image>().color = blueColor;
        //Settings_Button.GetComponent<Image>().color = blueColor;


        switch (choice)
        {
        case 1:
            Dashboard_Panel.SetActive(true);
            //Dashboard_Button.GetComponent<Image>().color = Color.green;
            break;

        case 2:
            NewJob_Panel.SetActive(true);
            //NewJob_Button.GetComponent<Image>().color = Color.green;
            break;

        case 3:
            Reports_Panel.SetActive(true);
            //Reports_Button.GetComponent<Image>().color = Color.green;
            break;

        case 4:
            Channels_Panel.SetActive(true);
            //Company_Button.GetComponent<Image>().color = Color.green;
            break;

        case 5:
            Users_Panel.SetActive(true);
            //Company_Button.GetComponent<Image>().color = Color.green;
            break;

        case 6:
            Settings_Panel.SetActive(true);
            //Settings_Button.GetComponent<Image>().color = Color.green;
            break;
        }
        UpdateScreen();
    }