private void Remap(object sender, MouseEventArgs e) { SplitButton c = sender as SplitButton; switch (e.Button) { case MouseButtons.Left: c.Text = "..."; curAssignment = c; break; case MouseButtons.Middle: Config.SetValue((string)c.Tag, Config.GetDefaultValue((string)c.Tag)); GetPrettyName(c); break; case MouseButtons.Right: break; } }