public AgendaItemWindow(AgendaItem agenda, string translationLanguage) { agendaManager = new AgendaManagerCSV(); uiMessagesService = new UiMessagesService(translationLanguage); agendaItem = new AgendaItem(); InitializeComponent(); agendaItem = agenda; lblAgendaItemTitle.Content = agenda.Title; lblAgendaItemDescription.Content = agenda.Description; TranslateWindowText(); }
public NewAgendaItem(string language) { windowName = WindowNamesEnum.AgendaWindow.ToString(); InitializeComponent(); createdAgendas = new List <AgendaItem>(); repeatingDates = new List <DateTime>(); selectedDates = new List <DateTime>(); timeObj = new TimeObject(); agendaItem = new AgendaItem(); agendaItem.StartDate = null; uiMessagesService = new UiMessagesService(language); agendaManager = new AgendaManagerCSV(); repeatingDates = GetDatesInMonthList(DateTime.UtcNow.Month); TranslateWindowText(); lstBoxStartingDayHours.ItemsSource = timeObj.Hours; lstBoxStartingDayMinutes.ItemsSource = timeObj.Minutes; lstBoxFinishDayHours.ItemsSource = timeObj.Hours; lstBoxFinishDayMinutes.ItemsSource = timeObj.Minutes; cmbBoxPriority.SelectedIndex = defaultIndex; }
private void InitializeLanguage() { selectedLanguage = "EN"; messagesService = new UiMessagesService(selectedLanguage); }