Exemplo n.º 1
0
        public FormEdit()
        {
            InitializeComponent();

            comboTitle.Items.AddRange(ListenerTitles.getAllTitles().ToArray());

            // Restrict input to month and day
            birthdayDate.MinDate      = new DateTime(DateTime.UtcNow.Year, 01, 01);
            birthdayDate.MaxDate      = new DateTime(DateTime.UtcNow.Year, 12, 31);
            birthdayDate.Format       = DateTimePickerFormat.Custom;
            birthdayDate.CustomFormat = "dd MMMM";
        }
Exemplo n.º 2
0
 private void formAddMini_Load(object sender, EventArgs e)
 {
     comboTitle.Items.AddRange(ListenerTitles.getAllTitles().ToArray());
 }