コード例 #1
0
ファイル: Main.xaml.cs プロジェクト: JokerKS/ReminderService
        private void LoadDetails()
        {
            lblMainTitle.Text = "Szczegóły przypomnienie";

            var rem = Reminders.FirstOrDefault(x => x.Id == SelectedReminderId);

            if (rem.NotNull())
            {
                txtName.Text              = rem.Name;
                txtDescriptions.Text      = rem.Description;
                cmbType.SelectedIndex     = (int)rem.ReminderType - 1;
                calendarDate.SelectedDate = rem.DateAndTime.Date;
                txtTime.Text              = $"{rem.DateAndTime.Hour}:{rem.DateAndTime.Minute}";
            }

            spAddReminder.Visibility = Visibility.Visible;
        }