Exemplo n.º 1
0
        private void DgCases_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
            RPT_Detail rptDetail = new RPT_Detail(); // initialise form

            RPT.RPT_Data rpt = new RPT.RPT_Data();   // initialise data
            // get data for selected UTR
            double dUTR = Convert.ToDouble((dgCases.Columns[1].GetCellContent(dgCases.CurrentCell.Item) as TextBlock).Text);

            rpt.GetRPDData(dUTR);
            rptDetail.DataContext = rpt;
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;
            rptDetail.Show();
        }
Exemplo n.º 2
0
        private void MnuNewCase_Click(object sender, RoutedEventArgs e)
        {
            RPT_Detail rPT_Detail = new RPT_Detail();

            rPT_Detail.Show();
        }