コード例 #1
0
        private void btnVoidDetails_Click(object sender, RoutedEventArgs e)
        {
            popupgrid.IsOpen = true;
            if (string.IsNullOrEmpty(StartDate) || string.IsNullOrEmpty(EndDate))
            {

                BMC.Presentation.CashDeskManager.MessageBox.showBox("Not a valid Date Range");
            }

            CVoidAutoCancelledTickets objVoidCancelled = new CVoidAutoCancelledTickets("0", StartDate, EndDate,
            StartTime, EndTime);


            exceptiongrid.Children.Add(objVoidCancelled);
            objVoidCancelled.Margin = new Thickness(0);
        }
コード例 #2
0
        private void btnVoidDetails_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                CVoidAutoCancelledTickets objVoidCancelled = null;
                objVoidCancelled = new CVoidAutoCancelledTickets("0", StartDate, EndDate, 0);


                objVoidCancelled.Owner = MessageBox.parentOwner;
                objVoidCancelled.ShowDialogEx(this);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }