private void MenuItemDelay_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewPendingTests.SelectedItem != null)
            {
                YellowstonePathology.Business.Monitor.Model.PendingTest pendingTest = (YellowstonePathology.Business.Monitor.Model.PendingTest)this.ListViewPendingTests.SelectedItem;
                PendingTestDelayDialog pendingTestDelayDialog = new PendingTestDelayDialog(pendingTest.ReportNo);
                pendingTestDelayDialog.ShowDialog();

                this.Refresh();
            }
        }
예제 #2
0
        private void MenuItemDelay_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewPendingTests.SelectedItem != null)
            {
                YellowstonePathology.Business.Monitor.Model.PendingTest pendingTest = (YellowstonePathology.Business.Monitor.Model.PendingTest) this.ListViewPendingTests.SelectedItem;
                PendingTestDelayDialog pendingTestDelayDialog = new PendingTestDelayDialog(pendingTest.ReportNo);
                pendingTestDelayDialog.ShowDialog();

                this.Refresh();
            }
        }
예제 #3
0
        private void MenuItemDelay_Click(object sender, RoutedEventArgs e)
        {
            MenuItem item = sender as MenuItem;
            ListView view = ((ContextMenu)item.Parent).PlacementTarget as ListView;

            if (view.SelectedItem != null)
            {
                YellowstonePathology.Business.Monitor.Model.PendingTest pendingTest = (YellowstonePathology.Business.Monitor.Model.PendingTest)view.SelectedItem;
                PendingTestDelayDialog pendingTestDelayDialog = new PendingTestDelayDialog(pendingTest.ReportNo);
                pendingTestDelayDialog.ShowDialog();

                this.Refresh();
            }
        }