Beispiel #1
0
 public LimeProductivity()
 {
     if (System.IO.File.Exists("config.bin"))
     {
         var result = new PasswordForm().ShowDialog();
         while (result != DialogResult.OK)
         {
             if (result == DialogResult.Cancel)
             {
                 this.Close();
                 return;
             }
             result = new PasswordForm().ShowDialog();
         }
     }
     InitializeComponent();
     _calendar.MaxSelectionCount          = 1;
     _dateNotesList.ItemSelectionChanged += _dateNotesList_ItemSelectionChanged;
     _dateNotesList.KeyDown += _dateNotesList_KeyDown;
     this.Resize            += LimeProductivity_Resize;
     _manager = new ProductivityManager();
     _showOnDateList(_manager.GetDateNotes(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0)));
     _showBold();
     _showPlanGroupBox(false);
 }
 public LimeProductivity()
 {
     if (System.IO.File.Exists("config.bin"))
     {
         var result=new PasswordForm().ShowDialog();
         while (result != DialogResult.OK)
         {
             if (result == DialogResult.Cancel)
             {
                 this.Close();
                 return;
             }
             result = new PasswordForm().ShowDialog();
         }
     }
     InitializeComponent();
     _calendar.MaxSelectionCount = 1;
     _dateNotesList.ItemSelectionChanged+=_dateNotesList_ItemSelectionChanged;
     _dateNotesList.KeyDown += _dateNotesList_KeyDown;
     this.Resize += LimeProductivity_Resize;
     _manager = new ProductivityManager();
     _showOnDateList(_manager.GetDateNotes(new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day,0,0,0)));
     _showBold();
     _showPlanGroupBox(false);
 }