示例#1
0
 private void Clear()
 {
     TxtFullName.Clear();
     TxtPhone.Clear();
     TxtUserEmail.Clear();
     TxtPassword.Clear();
 }
示例#2
0
 //Clear all the fiels
 private void clearfields()
 {
     TxtName.Clear();
     TxtPhone.Clear();
     TxtAdd.Clear();
     TxtCity.Clear();
     TxtSuburb.Clear();
 }
 private void BtnNewCustomer_Click(object sender, RoutedEventArgs e)
 {
     AddCustomer();        // anropar metoden
     TxtFirstname.Clear(); //ska rensa kundinfon
     TxtLastname.Clear();
     TxtPhone.Clear();
     UpdateCustomer(); //anropa metod för att uppdatera så att comboboxen känner av att ny kund skapats
 }
 private void BtnClear_Click(object sender, RoutedEventArgs e)
 {
     TxtFirstName.Clear();
     TxtLastName.Clear();
     TxtMiddleName.Clear();
     TxtEmail.Clear();
     TxtPhone.Clear();
     DpDateOfBirth.SelectedDate  = null;
     CmbGender.SelectedItem      = null;
     CmbNationality.SelectedItem = null;
 }
示例#5
0
 public void ClearEmployeeView()
 {
     TxtName.Clear();
     TxtEmail.Clear();
     TxtPhone.Clear();
     TxtNoOfHours.Clear();
     ChkIsAdmin.IsChecked  = false;
     ChkIsActive.IsChecked = true;
     TxtUsername.Clear();
     TxtPassword.Clear();
 }
示例#6
0
 //reset method
 private void Reset()
 {
     TxtName.Clear();
     TxtSurname.Clear();
     TxtPhone.Clear();
     TxtEmail.Clear();
     TxtIdCard.Clear();
     BtnUpdate.Visibility = Visibility.Hidden;
     BtnDelete.Visibility = Visibility.Hidden;
     BtnRead.Visibility   = Visibility.Hidden;
 }
        private void ClearData()
        {
            TxtName.Clear();
            TxtLastName.Clear();
            TxtPhone.Clear();

            CbxTipoContacto.SelectedIndex = 0;

            _filename = "";

            PbFotoPerfil.ImageLocation = "";
        }
 private void BtnNew_Click(object sender, EventArgs e)
 {
     dateTimePicker1.Value = System.DateTime.Today;
     TxtOrder.Clear();
     TxtCustomer.Clear();
     TxtPhone.Clear();
     ComboItem.SelectedIndex = -1;
     TxtPrice.Clear();
     TxtQty.Clear();
     TxtTotal.Clear();
     TxtOrder.Focus();
 }
示例#9
0
        private void Reset()
        {
            TxtName.Clear();
            TxtSurname.Clear();
            TxtPhone.Clear();

            BtnCreate.Visibility = Visibility.Visible;
            BtnUpdate.Visibility = Visibility.Hidden;
            BtnDelete.Visibility = Visibility.Hidden;

            FillClients();
        }
        //Textbox Value Reset
        private void Reset()
        {
            TxtName.Clear();
            TxtSurname.Clear();
            TxtPhone.Clear();
            TxtEmail.Clear();
            TxtPassword.Clear();

            BtnCreate.Visibility = Visibility.Visible;
            BtnUpdate.Visibility = Visibility.Hidden;
            BtnDelete.Visibility = Visibility.Hidden;

            FillCustomerData();
        }
示例#11
0
        /// <summary>
        /// Skapa ny kund
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnNewCustomer_Click(object sender, RoutedEventArgs e)
        {
            newCustomer = new Customer() // Skapar en ny kund
            {
                Firstnamne = TxtFirstname.Text,
                Lastnamne  = TxtLastname.Text,
                Cellphone  = TxtPhone.Text,
            };
            listOfCustomers.Add(newCustomer); // lägger till kunden i min lista av kunder

            TxtFirstname.Clear();             // rensar alla textboxar
            TxtLastname.Clear();
            TxtPhone.Clear();

            CboCustomer.ItemsSource   = null; // lägger in kunden i listan av valbara kunder
            CboCustomer.ItemsSource   = listOfCustomers;
            CboCustomer.SelectedIndex = 0;
        }