public VCControl(Picker bldgPicker, Picker roompicker, Classroom SelectedRoom, ControlsFrame controlsFrame)
 {
     InitializeComponent();
     ControlFrameReference = controlsFrame;
     vcButtonOn.Pressed   += VcButton_Pressed;
     vcButtonOff.Pressed  += VcButtonOff_Pressed;
 }
Esempio n. 2
0
        public CameraControls(Picker bldgPicker, Picker roompicker, Classroom SelectedRoom, ControlsFrame controlsFrame)
        {
            InitializeComponent();
            panUpButton.ImageSource    = ImageSource.FromResource("MobileGUCTechTool.Icons.arrowUp.png");
            panDownButton.ImageSource  = ImageSource.FromResource("MobileGUCTechTool.Icons.arrowDown.png");
            panLeftButton.ImageSource  = ImageSource.FromResource("MobileGUCTechTool.Icons.arrowLeft.png");
            panRightButton.ImageSource = ImageSource.FromResource("MobileGUCTechTool.Icons.arrowRight.png");

            ControlFrameReference = controlsFrame;

            // Need to support hold/release for pan buttons

            panUpButton.Pressed     += PanUpButton_Pressed;
            panLeftButton.Pressed   += PanLeftButton_Pressed;
            panRightButton.Pressed  += PanRightButton_Pressed;
            panDownButton.Pressed   += PanDownButton_Pressed;
            panUpButton.Released    += Pan_Release;
            panDownButton.Released  += Pan_Release;
            panLeftButton.Released  += Pan_Release;
            panRightButton.Released += Pan_Release;
            preset1Call.Clicked     += Preset1Call_Clicked;
            preset1Set.Clicked      += Preset1Set_Clicked;
            preset2Call.Clicked     += Preset2Call_Clicked;
            preset2Set.Clicked      += Preset2Set_Clicked;
            preset3Call.Clicked     += Preset3Call_Clicked;
            preset3Set.Clicked      += Preset3Set_Clicked;
            preset4Call.Clicked     += Preset4Call_Clicked;
            preset4Set.Clicked      += Preset4Set_Clicked;
            PowerOn.Clicked         += PowerOn_Clicked;
            PowerOff.Clicked        += PowerOff_Clicked;
        }
 public MainControl(Picker bldgPicker, Picker roomPicker, Classroom SelectedRoom, ControlsFrame controlsFrame)
 {
     InitializeComponent();
     projPwrOn.Clicked    += ProjPwrOn_Clicked;
     projPwrOff.Clicked   += ProjPwrOff_Clicked;
     projMute.Clicked     += ProjMute_Clicked;
     projUnmute.Clicked   += ProjUnmute_Clicked;
     projDown.Clicked     += ProjDown_Clicked;
     projUp.Clicked       += ProjUp_Clicked;
     ControlFrameReference = controlsFrame;
 }
 public LightControls(Picker bldgPicker, Picker roompicker, Classroom SelectedRoom, ControlsFrame controlsFrame)
 {
     InitializeComponent();
     ControlFrameReference       = controlsFrame;
     SolarShadesUp.Clicked      += SolarShadesUp_Clicked;
     SolarShadesDown.Clicked    += SolarShadesDown_Clicked;
     BlackoutShadesUp.Clicked   += BlackoutShadesUp_Clicked;
     BlackoutShadesDown.Clicked += BlackoutShadesDown_Clicked;
     LightBank1On.Clicked       += LightBank1On_Clicked;
     LightBank1Off.Clicked      += LightBank1Off_Clicked;
     LightBank2On.Clicked       += LightBank2On_Clicked;
     LightBank2Off.Clicked      += LightBank2Off_Clicked;
     LightBank3On.Clicked       += LightBank3On_Clicked;
     LightBank3Off.Clicked      += LightBank3Off_Clicked;
 }
Esempio n. 5
0
 public MediaControl(Picker bldgPicker, Picker roompicker, Classroom SelectedRoom, ControlsFrame controlsFrame)
 {
     InitializeComponent();
     VGAButton.ImageSource     = ImageSource.FromResource("MobileGUCTechTool.Icons.VGAWhite2x.png");
     HDMIButton.ImageSource    = ImageSource.FromResource("MobileGUCTechTool.Icons.HDMIWhite2x.png");
     LocalPCButton.ImageSource = ImageSource.FromResource("MobileGUCTechTool.Icons.LocalPCWhite2x.png");
     DocCamButton.ImageSource  = ImageSource.FromResource("MobileGUCTechTool.Icons.DocCamWhite2x.png");
     AVButton.ImageSource      = ImageSource.FromResource("MobileGUCTechTool.Icons.Comp2x.png");
     ControlFrameReference     = controlsFrame;
     VGAButton.Clicked        += VGAButton_Clicked;
     HDMIButton.Clicked       += HDMIButton_Clicked;
     LocalPCButton.Clicked    += LocalPCButton_Clicked;
     DocCamButton.Clicked     += DocCamButton_Clicked;
     AVButton.Clicked         += AVButton_Clicked;
 }
        private void InitializeTabs()
        {
            aliveTestFrame = new Pages.AliveTest.AliveTestFrame();
            controlFrame   = new Pages.Controls.ControlsFrame();
            dbFrame        = new Pages.EditDB.EditDBFrame();

            aliveTestNavPage       = new NavigationPage(aliveTestFrame);
            aliveTestNavPage.Title = "Alive test";
            //aliveTestNavPage.SetHasNavigationBar(aliveTestNavPage, false);
            aliveTestNavPage.SetValue(NavigationPage.HasNavigationBarProperty, false);
            controlNavPage       = new NavigationPage(controlFrame);
            controlNavPage.Title = "Classroom Controls";
            controlNavPage.SetValue(NavigationPage.HasNavigationBarProperty, false);
            editDBNavPage       = new NavigationPage(dbFrame);
            editDBNavPage.Title = "Edit Database";
            editDBNavPage.SetValue(NavigationPage.HasNavigationBarProperty, false);

            Children.Add(aliveTestNavPage);
            Children.Add(controlNavPage);
            Children.Add(editDBNavPage);
        }