示例#1
0
        private async void ImageButton_Click(object sender, EventArgs e)
        {
            //await Navigation.PushModalAsync(PreviewPage);
            //return;

            try
            {
                if (TurnOff)
                {
                    TurnOff = false;
                    fLamp.TurnOff();
                }
                else
                {
                    TurnOff = true;
                    fLamp.TurnOn();
                }
            }
            catch { }
        }
示例#2
0
 protected void TurnOnLamp(ILamp lamp)
 {
     lamp.TurnOn();
 }
示例#3
0
 public void TurnLampOn()
 {
     _lamp.TurnOn();
 }