Beispiel #1
0
        private void ChangeDisplay(object sender, EventArgs e)
        {
            RotationStates state;
            var            button = sender as Button;

            if (button != null && Enum.TryParse(button.Tag.ToString(), out state))
            {
                this.displayclient.SetRotationMode((int)state);
                this.ModeText.Text = button.Text;
                ScreenRotator.Rotate(state);
                RotateMainBtn.Enabled = RotateRemoteBtn.Enabled = state == RotationStates.MODE_LAYFLAT;
            }
        }
Beispiel #2
0
 private void RotateRemoteBtn_Click(object sender, EventArgs e)
 {
     ScreenRotator.RotateRemote();
 }
Beispiel #3
0
 private void RotateMainBtn_Click(object sender, EventArgs e)
 {
     ScreenRotator.RotateMain();
 }