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(); }
public SignupForm(LoginDatabase db) { InitializeComponent(); this.db = db; }
public LoginForm(User user) { InitializeComponent(); this.user = user; db = new LoginDatabase(); }