public Date1(long timeTickRecord, IsMouseOrKeyboard isMouseOrKeyboard, IsUpOrDown isUpOrDown, KeyEventArgs keyEventArgs)
 {
     this.timeTickRecord    = timeTickRecord;
     this.isMouseOrKeyboard = isMouseOrKeyboard;
     this.isUpOrDown        = isUpOrDown;
     this.keyEventArgs      = keyEventArgs;
 }
        public static Date1 create(long timeTickRecord, IsMouseOrKeyboard isMouseOrKeyboard, IsUpOrDown isUpOrDown, EventArgs eventArgs)
        {
            Date1 date1 = null;

            if (isMouseOrKeyboard == IsMouseOrKeyboard.Mouse)
            {
                date1 = new Date1(timeTickRecord, isMouseOrKeyboard, isUpOrDown, (MouseEventArgs)eventArgs);
            }
            if (isMouseOrKeyboard == IsMouseOrKeyboard.Keyboard)
            {
                date1 = new Date1(timeTickRecord, isMouseOrKeyboard, isUpOrDown, (KeyEventArgs)eventArgs);
            }
            return(date1);
        }
        public static Date1 create(
            long timeTickRecord,
            IsMouseOrKeyboard isMouseOrKeyboard,
            IsUpOrDown isUpOrDown,
            KeyEventArgs keyEventArgs,
            MouseButtons mouseButtons,
            int X,
            int Y,
            int MouseDelta)
        {
            Date1 date1 = null;

            if (isMouseOrKeyboard == IsMouseOrKeyboard.Mouse)
            {
                date1 = new Date1(timeTickRecord, isMouseOrKeyboard, isUpOrDown, new MouseEventArgs(mouseButtons, 0, X, Y, MouseDelta));
            }
            if (isMouseOrKeyboard == IsMouseOrKeyboard.Keyboard)
            {
                date1 = new Date1(timeTickRecord, isMouseOrKeyboard, isUpOrDown, keyEventArgs);
            }
            return(date1);
        }