Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            #region SetValuesAfterRestart

            TextOne.Text   = Settings.Default.Value1;
            TextTwo.Text   = Settings.Default.Value2;
            TextThree.Text = Settings.Default.Value3;
            TextFour.Text  = Settings.Default.Value4;
            TextFive.Text  = Settings.Default.Value5;
            TextSix.Text   = Settings.Default.Value6;
            TextSeven.Text = Settings.Default.Value7;
            TextEight.Text = Settings.Default.Value8;
            TextNine.Text  = Settings.Default.Value9;
            TextTen.Text   = Settings.Default.Value10;

            #endregion SetValuesAfterRestart

            #region Bind hotkeys

            SupportModule.hkF1.Pressed += delegate { SupportModule.CopyMe(TextOne); SendKeys.Send("^{v}"); };
            SupportModule.hkF1.Register(this);
            SupportModule.hkF2.Pressed += delegate { SupportModule.CopyMe(TextTwo); SendKeys.Send("^{v}"); };
            SupportModule.hkF2.Register(this);
            SupportModule.hkF3.Pressed += delegate { SupportModule.CopyMe(TextThree); SendKeys.Send("^{v}"); };
            SupportModule.hkF3.Register(this);
            SupportModule.hkF4.Pressed += delegate { SupportModule.CopyMe(TextFour); SendKeys.Send("^{v}"); };
            SupportModule.hkF4.Register(this);
            SupportModule.hkF5.Pressed += delegate { SupportModule.CopyMe(TextFive); SendKeys.Send("^{v}"); };
            SupportModule.hkF5.Register(this);
            SupportModule.hkF6.Pressed += delegate { SupportModule.CopyMe(TextSix); SendKeys.Send("^{v}"); };
            SupportModule.hkF6.Register(this);
            SupportModule.hkF7.Pressed += delegate { SupportModule.CopyMe(TextSeven); SendKeys.Send("^{v}"); };
            SupportModule.hkF7.Register(this);
            SupportModule.hkF8.Pressed += delegate { SupportModule.CopyMe(TextEight); SendKeys.Send("^{v}"); };
            SupportModule.hkF8.Register(this);
            SupportModule.hkF9.Pressed += delegate { SupportModule.CopyMe(TextNine); SendKeys.Send("^{v}"); };
            SupportModule.hkF9.Register(this);
            SupportModule.hkF10.Pressed += delegate { SupportModule.CopyMe(TextTen); SendKeys.Send("^{v}"); };
            SupportModule.hkF10.Register(this);

            #endregion Bind hotkeys

            #region Theme

            CloseButton.BackColor    = SupportModule.ColorOne;
            CloseButton.ForeColor    = SupportModule.ColorTwo;
            CloseButton.Font         = SupportModule.AppFont;
            CopyOne.BackColor        = SupportModule.ColorOne;
            CopyOne.ForeColor        = SupportModule.ColorTwo;
            CopyOne.Font             = SupportModule.AppFont;
            CopyTwo.BackColor        = SupportModule.ColorOne;
            CopyTwo.ForeColor        = SupportModule.ColorTwo;
            CopyTwo.Font             = SupportModule.AppFont;
            CopyThree.BackColor      = SupportModule.ColorOne;
            CopyThree.ForeColor      = SupportModule.ColorTwo;
            CopyThree.Font           = SupportModule.AppFont;
            CopyFour.BackColor       = SupportModule.ColorOne;
            CopyFour.ForeColor       = SupportModule.ColorTwo;
            CopyFour.Font            = SupportModule.AppFont;
            CopyFive.BackColor       = SupportModule.ColorOne;
            CopyFive.ForeColor       = SupportModule.ColorTwo;
            CopyFive.Font            = SupportModule.AppFont;
            CopySix.BackColor        = SupportModule.ColorOne;
            CopySix.ForeColor        = SupportModule.ColorTwo;
            CopySix.Font             = SupportModule.AppFont;
            CopySeven.BackColor      = SupportModule.ColorOne;
            CopySeven.ForeColor      = SupportModule.ColorTwo;
            CopySeven.Font           = SupportModule.AppFont;
            CopyEight.BackColor      = SupportModule.ColorOne;
            CopyEight.ForeColor      = SupportModule.ColorTwo;
            CopyEight.Font           = SupportModule.AppFont;
            CopyNine.ForeColor       = SupportModule.ColorTwo;
            CopyNine.BackColor       = SupportModule.ColorOne;
            CopyNine.Font            = SupportModule.AppFont;
            CopyTen.ForeColor        = SupportModule.ColorTwo;
            CopyTen.BackColor        = SupportModule.ColorOne;
            CopyTen.Font             = SupportModule.AppFont;
            NameLabel.BackColor      = SupportModule.ColorOne;
            NameLabel.ForeColor      = SupportModule.ColorTwo;
            NameLabel.Font           = SupportModule.AppFont;
            TextOne.BackColor        = SupportModule.ColorOne;
            TextOne.ForeColor        = SupportModule.ColorTwo;
            TextOne.Font             = SupportModule.AppFont;
            TextTwo.BackColor        = SupportModule.ColorOne;
            TextTwo.ForeColor        = SupportModule.ColorTwo;
            TextTwo.Font             = SupportModule.AppFont;
            TextThree.BackColor      = SupportModule.ColorOne;
            TextThree.ForeColor      = SupportModule.ColorTwo;
            TextThree.Font           = SupportModule.AppFont;
            TextFour.BackColor       = SupportModule.ColorOne;
            TextFour.ForeColor       = SupportModule.ColorTwo;
            TextFour.Font            = TextThree.Font = SupportModule.AppFont;
            TextFive.BackColor       = SupportModule.ColorOne;
            TextFive.ForeColor       = SupportModule.ColorTwo;
            TextFive.Font            = TextThree.Font = SupportModule.AppFont;
            TextSix.BackColor        = SupportModule.ColorOne;
            TextSix.ForeColor        = SupportModule.ColorTwo;
            TextSix.Font             = TextThree.Font = SupportModule.AppFont;
            TextSeven.BackColor      = SupportModule.ColorOne;
            TextSeven.ForeColor      = SupportModule.ColorTwo;
            TextSeven.Font           = TextThree.Font = SupportModule.AppFont;
            TextEight.BackColor      = SupportModule.ColorOne;
            TextEight.ForeColor      = SupportModule.ColorTwo;
            TextEight.Font           = TextThree.Font = SupportModule.AppFont;
            TextNine.BackColor       = SupportModule.ColorOne;
            TextNine.ForeColor       = SupportModule.ColorTwo;
            TextNine.Font            = TextThree.Font = SupportModule.AppFont;
            TextTen.BackColor        = SupportModule.ColorOne;
            TextTen.ForeColor        = SupportModule.ColorTwo;
            TextTen.Font             = SupportModule.AppFont;
            HideButton.BackColor     = SupportModule.ColorOne;
            HideButton.ForeColor     = SupportModule.ColorTwo;
            HideButton.Font          = SupportModule.AppFont;
            SettingsButton.BackColor = SupportModule.ColorOne;
            SettingsButton.ForeColor = SupportModule.ColorTwo;
            SettingsButton.Font      = SupportModule.AppFont;
            BackColor = SupportModule.ColorOne;
            ForeColor = SupportModule.ColorTwo;
            Font      = SupportModule.AppFont;

            #endregion Theme
        }
Exemplo n.º 2
0
 private void CopyNine_Click(object sender, EventArgs e) => SupportModule.CopyMe(TextNine);
Exemplo n.º 3
0
 private void CopyTen_Click(object sender, EventArgs e) => SupportModule.CopyMe(TextTen);
Exemplo n.º 4
0
 private void CopySix_Click(object sender, EventArgs e) => SupportModule.CopyMe(TextSix);
Exemplo n.º 5
0
 private void CopyEight_Click(object sender, EventArgs e) => SupportModule.CopyMe(TextEight);
Exemplo n.º 6
0
 private void TextTen_TextChanged(object sender, EventArgs e) => SupportModule.SetValue(10, TextTen.Text);
Exemplo n.º 7
0
 private void CopyFour_Click(object sender, EventArgs e) => SupportModule.CopyMe(TextFour);
Exemplo n.º 8
0
 private void TextEight_TextChanged(object sender, EventArgs e) => SupportModule.SetValue(8, TextEight.Text);
Exemplo n.º 9
0
 private void TextNine_TextChanged(object sender, EventArgs e) => SupportModule.SetValue(9, TextNine.Text);
Exemplo n.º 10
0
 private void TextFour_TextChanged(object sender, EventArgs e) => SupportModule.SetValue(4, TextFour.Text);
Exemplo n.º 11
0
 private void TextSix_TextChanged(object sender, EventArgs e) => SupportModule.SetValue(6, TextSix.Text);
Exemplo n.º 12
0
 private void MoveMe(object sender, MouseEventArgs e) => SupportModule.MoveForm(e, this);
Exemplo n.º 13
0
 public static int GetActiveSceneIndex() => SupportModule.GetActiveSceneIndex();
Exemplo n.º 14
0
 private void ComboHK10_SelectedIndexChanged(object sender, EventArgs e) => SupportModule.AutoSaveHK(ComboHK10, 10);
Exemplo n.º 15
0
 private void CheckAlt_CheckedChanged(object sender, EventArgs e) => SupportModule.AutoSaveHKMods(CheckAlt, 3);
Exemplo n.º 16
0
 private void ComboColorTwo_SelectedIndexChanged(object sender, EventArgs e)
 {
     Settings.Default.ColorTwo = SupportModule.ColorSelector(ComboColorTwo.SelectedItem.ToString());
     Settings.Default.Save();
 }