Sha256: 0b72489b55a5b29d77b91d3bdfd5051f2397a7fe164d94639c2e15e783611abb

Contents?: true

Size: 801 Bytes

Versions: 10

Compression:

Stored size: 801 Bytes

Contents

using System;
using System.Globalization;
using System.Windows.Forms;
using UIA.Extensions.AutomationProviders.Interfaces;

namespace WindowsForms
{
    public class ValueMonthCalendar : ValueControl
    {
        private readonly MonthCalendar _monthCalendar;

        public ValueMonthCalendar(MonthCalendar monthCalendar) : base(monthCalendar)
        {
            _monthCalendar = monthCalendar;
        }

        public override string Value
        {
            get { return _monthCalendar.SelectionStart.ToString("d", EnglishCulture); }
            set { _monthCalendar.SetDate(DateTime.Parse(value, EnglishCulture)); }
        }

        private static CultureInfo EnglishCulture
        {
            get { return new CultureInfo("en-US"); }
        }
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rautomation-1.1.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-1.0.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.17.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.16.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.15.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.14.1 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.14.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.13.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.12.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs
rautomation-0.11.0 ext/WindowsForms/WindowsForms/ValueMonthCalendar.cs