コード例 #1
0
 private void ClearExpendPopUp()
 {
     PaymentType.SelectedIndex     = 0;
     PaymentMethodCB.SelectedIndex = 0;
     PaymentTX.Number = 0;
     CommentTX.Clear();
 }
コード例 #2
0
        //PopUp Exit
        private async void Button_Click_1(object sender, RoutedEventArgs e)
        {
            //Enable controls
            InventoryInPopUp.IsOpen  = false;
            InventoryDock.IsEnabled  = true;
            PaginationGrid.IsEnabled = true;

            await Task.Delay(200);

            //Clear container
            ErrorMessage.Visibility = Visibility.Collapsed;
            InventoryInBT.IsEnabled = false;
            CommentTX.Clear();

            //Clear offset values
            InventoryInPopUp.HorizontalOffset = 0;
            InventoryInPopUp.VerticalOffset   = 0;
        }
コード例 #3
0
        private void SetFinishBillContent()
        {
            PaymentType.SelectedIndex = 0;

            PaymentType.IsEnabled = CLientCredit;

            PaymentMethodCB.SelectedIndex = 0;
            PaymentTX.Number            = 0;
            BillDatePicker.SelectedDate = DateTime.Now.AddDays(30);

            CommentTX.Clear();
            if (PaymentType.IsEnabled)
            {
                PaymentType.Focus();
            }
            else
            {
                PaymentTX.Focus();
            }
        }