AC.AvalonControlsLibrary.Controls.IsCurrentMonthConverter.Convert C# (CSharp) 메소드

Convert() 공개 메소드

Compares 2 months together
public Convert ( object values, Type targetType, object parameter, System culture ) : object
values object The currently view month and the other month to check
targetType System.Type Target type
parameter object The parameter to use
culture System The current culture in use
리턴 object
        public override object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (values[0] == null)
                return false;

            int currentlyViewedMonth = (int)values[0];
            int otherMonth = (int)values[1];

            return currentlyViewedMonth == otherMonth;
        }
    }
IsCurrentMonthConverter