public MainForm()
 {
     InitializeComponent();
     grid.MouseClick += new MouseEventHandler(grid_MouseClick);
     grid.CellValueChanged += new DataGridViewCellEventHandler(grid_CellValueChanged);
     DateTime now = DateTime.Today;
     Calendar cal = CultureInfo.CurrentCulture.Calendar;
     mWeek = cal.GetWeekOfYear(now, CalendarWeekRule.FirstDay, DayOfWeek.Monday);
     mYear = now.Year - 2000;
     addWeek(mWeek - 1, mYear);
     addWeek(mWeek, mYear);
     addWeek(mWeek + 1, mYear);
     mStorage = new Storage(this);
     mStorage.initialize();
 }
Example #2
0
 public Users(Storage storage)
 {
     InitializeComponent();
     mStorage = storage;
 }