public void IncrementModifier() { switch (Modifier) { case ScoreModifier.None: Modifier = ScoreModifier.DL; break; case ScoreModifier.DL: Modifier = ScoreModifier.TL; break; case ScoreModifier.TL: Modifier = ScoreModifier.DW; break; case ScoreModifier.DW: Modifier = ScoreModifier.TW; break; case ScoreModifier.TW: Modifier = ScoreModifier.MI; break; case ScoreModifier.MI: Modifier = ScoreModifier.None; break; } RefreshModifier(); }
public CustomTextBox() { SetStyle(ControlStyles.Selectable, true); this.Modifier = ScoreModifier.None; this.ShortcutsEnabled = false; subCtrl = new Label(); subCtrl.Font = new System.Drawing.Font(this.Font.FontFamily, 6); subCtrl.ForeColor = Color.White; subCtrl.Visible = false; subCtrl.Size = new Size(10, 20); subCtrl.Padding = new Padding(0); subCtrl.Margin = new Padding(0); subCtrl.MouseDown += SubCtrl_MouseDown; Controls.Add(subCtrl); }