Example #1
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            hTIPO.Text    = ((Button)sender).Tag.ToString();
            TXT_TIPO.Text = ((List <TB_TIPO>)LBX_TIPO.ItemsSource).Where(_ => _.ID_TIPO == Convert.ToInt32(hTIPO.Text)).First().TIPO;

            TXT_TIPO.Focus(FocusState.Pointer);
        }
Example #2
0
        private void resetaTipo()
        {
            TXT_TIPO.Text = string.Empty;
            hTIPO.Text    = "0";

            TXT_TIPO.Focus(FocusState.Pointer);
        }
Example #3
0
 private void BTN_NOVO_TIPO1_Click(object sender, RoutedEventArgs e)
 {
     this.PV1.SelectedIndex = 2;
     resetaTipo();
     TXT_TIPO.Focus(FocusState.Pointer);
 }