internal WeeklyReport(Report actWeekReport, ExtendedCalendar DayPicker, Dictionary <string, string> BaseData)
 {
     InitializeComponent();
     _daypicker                = DayPicker;
     _actWeekReport            = actWeekReport;
     _daypicker.onDaySelected += new EventHandler <DaySelectedEventArgs>(_daypicker_DaySelected);
     _baseData  = BaseData;
     _ActiveRTB = tbxCompanyWork;
     tabControl1.TabIndexChanged += new EventHandler(tabControl1_TabIndexChanged);
     tbxCompanyWork.KeyPress     += new KeyPressEventHandler(tbx_KeyPress);
     tbxSchoolWork.KeyPress      += new KeyPressEventHandler(tbx_KeyPress);
     tbxTalkWork.KeyPress        += new KeyPressEventHandler(tbx_KeyPress);
     try
     {
         ext = new NHunspellExtender.NHunspellTextBoxExtender();
         ext.UpdateLanguageFiles("Deutsch", DataManager.GetWorkingDirectory() + "SpellCheck\\de_DE.aff", DataManager.GetWorkingDirectory() + "SpellCheck\\de_DE.dic", false, false);
         ext.EnableTextBoxBase(new TextBoxBase[] { tbxCompanyWork, tbxSchoolWork, tbxTalkWork });
         ext.SpellAsYouType = false;
     }
     catch { }
     _daypicker.SelectedDate = DateTime.Now;
     _actWeekReport          = DataManager.GetReportOfWeek(DateTimeTools.GetActAppWeek(DateTime.Parse(DataManager.LoadBaseData()["beginn"]), DateTime.Now));
     if (_actWeekReport == null)
     {
         _actWeekReport = new Report(null, DateTimeTools.GetActAppWeek(DateTime.Parse(_baseData["beginn"]), DateTime.Now).ToString(), DateTimeTools.GetWeekOfYear(DateTime.Now).ToString(), DateTime.Now.Year.ToString(), "", "", "", "0");
     }
     fillReport();
 }
Beispiel #2
0
 internal DaylyReport(ExtendedCalendar DayPicker)
 {
     InitializeComponent();
     _ActiveRTB = tbxReport;
     _daypicker = DayPicker;
     _daypicker.onDaySelected += new EventHandler <DaySelectedEventArgs>(_daypicker_onDaySelected);
     LoadReport(DateTime.Now);
     try
     {
         ext = new NHunspellExtender.NHunspellTextBoxExtender();
         ext.UpdateLanguageFiles("Deutsch", DataManager.GetWorkingDirectory() + "SpellCheck\\de_DE.aff", DataManager.GetWorkingDirectory() + "SpellCheck\\de_DE.dic", false, false);
         ext.EnableTextBoxBase(new TextBoxBase[] { tbxReport });
         ext.SpellAsYouType = false;
     }
     catch { }
 }