Esempio n. 1
0
 /// <summary>
 /// This method clears all user input from the GUI and makes all necesseery configuration.
 /// </summary>
 private void InitializeGUI()
 {
     this.Text   = "To Do Reminder Yurdaer";
     taskManager = new Files.TaskManager();
     comboBox.Items.Clear();
     string[] priority = Enum.GetNames(typeof(Files.PriorityType));
     foreach (var item in priority)
     {
         comboBox.Items.Add(item.Replace("_", " "));
     }
     comboBox.SelectedItem = Files.PriorityType.Normal.ToString().Replace("_", " ");
     toolTip.SetToolTip(dateTimePicker, "Click to open calender for date, write in time here");
     dateTimePicker.Format       = DateTimePickerFormat.Custom;
     dateTimePicker.CustomFormat = "yyyy-MM-dd    HH:mm";
     menuFileOpen.Enabled        = false;
     menuFileSave.Enabled        = false;
     textBox.Text = "";
     listBox.Items.Clear();
 }
Esempio n. 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public MainForm()
 {
     InitializeComponent();
     InitializeGUI();
     taskManager = new Files.TaskManager();
 }