public CalendarForm(User user)
 {
     InitializeComponent();
     trainingsMutex           = new Semaphore(1, 1);
     users                    = new List <User>();
     localTrainings           = new List <Training>();
     this.user                = user;
     calendar.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single;
     date       = DateTime.Today.AddDays(-DayOfWeekToNumber(DateTime.Today.DayOfWeek));
     oldestDate = date;
     UpdateCurMonthLabel();
     GenCalendar();
     trainingsDatabase = new TrainingsDatabase();
     loginDatabase     = new LoginDatabase();
 }
예제 #2
0
 public SignupForm(LoginDatabase db)
 {
     InitializeComponent();
     this.db = db;
 }
예제 #3
0
 public LoginForm(User user)
 {
     InitializeComponent();
     this.user = user;
     db        = new LoginDatabase();
 }