Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 private void RotateRemoteBtn_Click(object sender, EventArgs e)
 {
     ScreenRotator.RotateRemote();
 }
Exemplo n.º 3
0
 private void RotateMainBtn_Click(object sender, EventArgs e)
 {
     ScreenRotator.RotateMain();
 }