예제 #1
0
        private void btnReply_Click(object sender, RoutedEventArgs e)
        {
            ShowDoc sd = new ShowDoc();

            sd.Show();
            Details ReplyDoc = task.GetReplyDocument(RepliedNumber);

            sd.OpenWindow(ReplyDoc);
        }
 private void listdoc_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (listdoc.SelectedIndex == -1)
     {
         return;
     }
     else
     {
         Details doc = listdoc.SelectedItem as Details;
         ShowDoc sd  = new ShowDoc();
         sd.Id = doc.Id;
         sd.Show();
     }
 }
 private void cmDetails_Click(object sender, RoutedEventArgs e)
 {
     if (listdoc.SelectedIndex == -1)
     {
         return;
     }
     else
     {
         Details doc = listdoc.SelectedItem as Details;
         ShowDoc sd  = new ShowDoc();
         sd.Id = doc.Id;
         sd.Show();
         sd.Closed += doc_Closed;
     }
 }