Exemplo n.º 1
0
 private void Settings_Load(object sender, EventArgs e)
 {
     label17.Text            = Application.ProductVersion;
     numericUpDown1.Value    = LineCount;
     trackBar1.Value         = Opacity;
     comboBox1.SelectedIndex = (int)VerticalAlign;
     numericUpDown2.Value    = Math.Abs(VerticalOffset);
     comboBox2.SelectedIndex = (int)HorizontalAlign;
     numericUpDown3.Value    = Math.Abs(HorizontalOffset);
     __Font               = new Font(FontFamily, FontSize, (FontStyle)FontStyle, GraphicsUnit.Point);
     __FontColor          = FontColor;
     numericUpDown4.Value = BorderWidth;
     __BorderColor        = BorderColor;
     numericUpDown5.Value = RefreshRate;
     textBox1.Text        = KeyBackward.ToString();
     textBox1.Tag         = KeyBackward;
     textBox2.Text        = KeyForward.ToString();
     textBox2.Tag         = KeyForward;
     textBox3.Text        = KeyToggle.ToString();
     textBox3.Tag         = KeyToggle;
     checkBox1.Checked    = BlockSyncOnHide;
     checkBox2.Checked    = SuppressKey;
     checkBox3.Checked    = ShowWhileOsuTop;
     Loaded               = true;
 }
Exemplo n.º 2
0
 public IEnumerable<ICommand> this[KeyInputMode mode, KeyToggle toggle, Key key]
 {
     get
     {
         if (_map.ContainsKey(toggle))
             if (_map[toggle].ContainsKey(mode))
                 if (_map[toggle][mode].ContainsKey(key))
                     return _map[toggle][mode][key];
         return null;
     }
     set
     {
         var modeLookup = _map.GetOrNew(toggle);
         var keyLookup = modeLookup.GetOrNew(mode);
         keyLookup[key] = value;
     }
 }