Exemplo n.º 1
0
 //Desc: Sets side panel buttons to match top panel color
 //Pre: array of buttons
 private void setSidePaneltoTopPanelColor(Button[] btn)
 {
     for(int i = 0; i<btn.Count(); i++)
     {
         if(sidepanelclosedon == "round")
         {
             btn[i].Background = getRoundTopPanelSolidColor();
         }
         else if(sidepanelclosedon == "course")
         {
             btn[i].Background = getCourseTopPanelSolidColor();
         }
         else if(sidepanelclosedon == "disc")
         {
             btn[i].Background = getDiscTopPanelSolidColor();
         }
         else if(sidepanelclosedon == "stats")
         {
             btn[i].Background = getStatsTopPanelSolidColor();
         }
         else
         {
             return;
         }
     }
 }
Exemplo n.º 2
0
 //Desc: sets side panel buttons to visible coresponding to top panel button pressed
 //Pre: array of buttons
 private void setSidePanelButtonsVisible(Button[] btns)
 {
     for(int i = 0; i<btns.Count(); i++)
     {
         btns[i].Visibility = Visibility.Visible;
     }
 }
Exemplo n.º 3
0
 //Desc: sets non clicked side panel buttons dark, sets pushed panel button light, sets page color to light, sets foregrounds
 //Pre: array of buttons, button
 private void setSidePanelButtons(Button[] darkBtns, Button lightBtn)
 {
     //sets pages to light backgroud color
     pageload3_f.Background = getCurrentTopPanelButtonSolidColor();
     for (int i = 0; i < darkBtns.Count(); i++)
     {
         darkBtns[i].Background = getWindowButtonDarkColor();
         darkBtns[i].Foreground = Brushes.Black;
     }
     lightBtn.Background = getCurrentTopPanelButtonSolidColor();
     lightBtn.Foreground = Brushes.White;
 }
Exemplo n.º 4
0
 //Sets array of buttons generic
 //Pre: array of buttons
 private void setSidePanelButtonsGenericColor(Button[] btns)
 {
     for(int i = 0; i<btns.Count(); i++)
     {
         btns[i].Background = getWindowButtonGenericColor();
     }
 }
Exemplo n.º 5
0
 //Descs: sets forground black
 //Pre: array of buttons
 private void setSidePanelButtonForegroundBlack(Button[] black)
 {
     for(int i = 0; i<black.Count(); i++)
     {
         black[i].Foreground = Brushes.Black;
     }
 }