예제 #1
0
        public static void PollInformation(EBook toModify)
        {
            ModifyEBook win = new ModifyEBook()
            {
                Book = toModify
            };

            win.iptName.Text           = toModify.Name;
            win.iptRedemptionCode.Text = toModify.RedemptionCode;
            win.dteEBookRenewal.Text   = toModify.ExpiresOn.ToShortDateString();

            win.ShowDialog();
        }
예제 #2
0
 private void btnModify_Click(object sender, RoutedEventArgs e)
 {
     ModifyEBook.PollInformation(Book);
     Close();
 }