Exemple #1
0
        //Client exit BT
        private void ClientExitBT_Click(object sender, RoutedEventArgs e)
        {
            //Clear controls values
            ClientNameTX.Clear();
            ClientIDTX.Clear();
            ClientIDType.SelectedIndex = 0;
            ClientPhoneTX.Clear();

            //Close popup
            SaveClientBT.IsEnabled = false;

            //Set controls
            BillDock.IsEnabled       = true;
            CreateClientPopUp.IsOpen = false;

            ClientFilterTX.Focus();
        }
Exemple #2
0
 //Clear all form data and selections
 private void ClearFormData()
 {
     if (FormGrid.Opacity != 0)
     {
         FormGrid.BeginStoryboard((Storyboard)Application.Current.TryFindResource("FadeInGrid"));
     }
     if (FilterGrid.Opacity != 0)
     {
         FilterGrid.BeginStoryboard((Storyboard)Application.Current.TryFindResource("FadeInGrid"));
     }
     FilterTX.Clear();
     ClientNameTX.Clear();
     ClientIDTX.Clear();
     ClientPhoneTX.Clear();
     ClientAddressTX.Clear();
     ClientMailTX.Clear();
     ClientCelphoneTX.Clear();
     ClientTypeCB.SelectedIndex = 0;
     ClientCreditCB.IsChecked   = true;
     SaveBT.IsEnabled           = false;
 }