Ejemplo n.º 1
0
        void ValidateProposedDateValue(NSDatePickerCell aDatePickerCell, ref NSDate proposedDateValue, double proposedTimeInterval)
        {
            TestWindowController controller = (TestWindowController)aDatePickerCell.WeakDelegate;

            if (controller != null && controller == this && aDatePickerCell == datePickerControl.Cell)
            {
                // override code goes here.  You should ensure that the new values are within the appropriate range.
                if (overrideDateCheck.SelectedCell.State == NSCellStateValue.On)
                {
                    // override the date using the user specified date
                    proposedDateValue = overrideDate.DateValue;
                }

                // NOTE:  I think there is a problem setting the proposed Date value as it is a ref
            }
        }
Ejemplo n.º 2
0
 void ValidateProposedDateValue (NSDatePickerCell aDatePickerCell, ref NSDate proposedDateValue, double proposedTimeInterval)
 {
         TestWindowController controller = (TestWindowController)aDatePickerCell.WeakDelegate;
         if (controller != null && controller == this && aDatePickerCell == datePickerControl.Cell) {
                 // override code goes here.  You should ensure that the new values are within the appropriate range.
                 if (overrideDateCheck.SelectedCell.State == NSCellStateValue.On)
                         // override the date using the user specified date
                         proposedDateValue = overrideDate.DateValue;
                 
                 // NOTE:  I think there is a problem setting the proposed Date value as it is a ref
         }
 }