Skip to content

Clearing DateTimePicker #105

@navaneeth

Description

@navaneeth

DateTimePicker.cs has the following code.

private void ClearDate()
{

}

public virtual void SetDate(DateTime? dateTime, DateFormat dateFormat)
{
    if (dateTime == null)
    {
        ClearDate();
        return;
    }

    keyboard.Send(dateFormat.DisplayValue(dateTime.Value, 0).ToString(), actionListener);
    keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.RIGHT, actionListener);
    keyboard.Send(dateFormat.DisplayValue(dateTime.Value, 1).ToString(), actionListener);
    keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.RIGHT, actionListener);
    keyboard.Send(dateFormat.DisplayValue(dateTime.Value, 2).ToString(), actionListener);
    keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.RIGHT, actionListener);
}

Here ClearDate() is empty. This looks incorrect to me. ClearDate() should be implemented right?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions