Example #1
0
 private void ShowSheetWindow(object sender, MouseButtonEventArgs e)
 {
     SheetWindow w = new SheetWindow(_group_id, SelectedSubject.Id);
     DataContext = w;
     w.Show();
     DataContext = this;
 }
 public void SheetExecuted(object param)
 {
     try
     {
         SheetWindow sheetWindow = new SheetWindow();
         sheetWindow.DataContext = this.RvtSheetData;
         if ((bool)sheetWindow.ShowDialog())
         {
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Failed to open sheet items.\n" + ex.Message, "Open Sheet Info", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
Example #3
0
        private void btSheet_Click(object sender, RoutedEventArgs e)
        {
            SheetWindow sw = new SheetWindow();

            sw.ShowDialog();
        }