private void SetShortcutsAndSideButtons(GcTimeSpanCell gcTimeSpanCell1)
{
//In edit mode, hit the CTR+0 to set value to 0.
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Control | Keys.D0, "SetZero");
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Control | Keys.NumPad0, "SetZero");
//In edit mode, hit the Alt+Subtract to switch the sign.
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Alt | Keys.Subtract, "SwitchSign");
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Alt | Keys.OemMinus, "SwitchSign");
gcTimeSpanCell1.SideButtons.Clear();
gcTimeSpanCell1.SideButtons.Add(new SpinButton());
}
Private Sub SetShortcutsAndSideButtons(ByVal gcTimeSpanCell1 As GcTimeSpanCell)
'In edit mode, hit the CTR+0 to set value to 0.
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Control Or Keys.D0, "SetZero")
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Control Or Keys.NumPad0, "SetZero")
'In edit mode, hit the Alt+Subtract to switch the sign.
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Alt Or Keys.Subtract, "SwitchSign")
gcTimeSpanCell1.ShortcutKeys.Add(Keys.Alt Or Keys.OemMinus, "SwitchSign")
gcTimeSpanCell1.SideButtons.Clear()
gcTimeSpanCell1.SideButtons.Add(New SpinButton())
End Sub