Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing DateTimePicker #105

Closed
navaneeth opened this issue May 30, 2013 · 2 comments
Closed

Clearing DateTimePicker #105

navaneeth opened this issue May 30, 2013 · 2 comments

Comments

@navaneeth
Copy link
Contributor

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?

@JakeGinnivan
Copy link
Member

Yep it should be. Nice find

@ilya-murzinov
Copy link
Contributor

Pull request #194.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants