Esempio n. 1
0
 partial void DateChosen(AppKit.NSDatePicker sender)
 {
     if (((DateTime)this.ReportDatePicker.DateValue).Date != dtStartDateChosen)
     {
         dtStartDateChosen = ((DateTime)this.ReportDatePicker.DateValue).Date;
         DateTime testDate = (DateTime)this.ReportDatePicker.DateValue;
         testDate = testDate.Date.AddDays(1);
         testDate = testDate.AddMonths(3);
         testDate = testDate.AddDays(-1);
         this.ReportDatePicker2.DateValue = (NSDate)(((DateTime)this.ReportDatePicker.DateValue).Date.AddDays(1).AddMonths(3).AddDays(-1).ToUniversalTime());
     }
 }
Esempio n. 2
0
        public override IViewWrapper ConvertTo(FigmaNode currentNode, ProcessedNode parent)
        {
            var view = new AppKit.NSDatePicker();

            view.Configure(currentNode);

            var keyValues = GetKeyValues(currentNode);

            foreach (var key in keyValues)
            {
                if (key.Key == "type")
                {
                    continue;
                }
                if (key.Key == "size")
                {
                    view.ControlSize = ToEnum <NSControlSize> (key.Value);
                }
            }
            return(new ViewWrapper(view));
        }
 partial void RecordDateOverriden(AppKit.NSDatePicker sender)
 {
 }
Esempio n. 4
0
 partial void EndDatePicked(AppKit.NSDatePicker sender)
 {
     this.endDate = (DateTime)this.EndDatePicker.DateValue;
     this.RefreshTable();
 }