public fCalendar(Form f, int officerId) : base(f) { InitializeComponent(); myOfficerId = officerId; myFMCal = AtMng.GetBFFile(myOfficerId); myFMCal.GetAppointment().LoadByContactId(myOfficerId); // myFMCal.GetAttendee().LoadByContactId(myOfficerId); ucCalendar1.OfficerId = myOfficerId; ucCalendar1.FM = myFMCal; ucCalendar1.IsOfficerCal = true; ucCalendar1.BindData(myFMCal.DB.Appointment); uiCommandManager1.MergeCommandManager(ucCalendar1.CommandManager()); timer1.Interval = AtMng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.BFTimerInterval, AtMng.GetSetting(atriumBE.AppIntSetting.DefaultBFTimerInterval)); //set OfficerPrefBE OfficerPref = AtMng.OfficeMng.GetOfficerPrefs(); }