Example #1
0
 private void _btnOk_Click(object sender, EventArgs e)
 {
     _batesDateTime = new AnnBatesDateTime();
     _batesDateTime.CurrentDateTime = DateTime.Now;
     _batesDateTime.Format          = _comboDateFormat.SelectedItem.ToString();
     _batesDateTime.Kind            = (AnnDateTimeKind)_comboDateKind.SelectedIndex;
 }
Example #2
0
        public BatesDateDialog()
        {
            InitializeComponent();

            //Get Default Properties
            AnnBatesDateTime batesDateTime = new AnnBatesDateTime();

            _comboDateFormat.SelectedIndex = 0;
            _comboDateKind.SelectedIndex   = (int)batesDateTime.Kind;
        }