Ejemplo n.º 1
0
        private void debitsmetka_KeyDown(object sender, KeyEventArgs e)
        {
            vm.WorkValuta = null;
            if (e.Key == Key.Enter)
            {
                string text = (sender as TextBox).Text;
                if (vm != null)
                {
                    (sender as TextBox).Text = vm.LoadAnaliticDetailsDebit(text);
                }

                skiplostfokusdebit = true;
            }
            if (e.Key == Key.F6)
            {
                TreeManagerViewDialog sf = new TreeManagerViewDialog();
                sf.ShowDialog();
                if (sf.DialogResult.HasValue && sf.DialogResult.Value)
                {
                    if (sf.CurrentAcc != null)
                    {
                        vm.DAccountsModel = sf.CurrentAcc;
                    }
                }
                e.Handled = true;
            }
        }
Ejemplo n.º 2
0
        private void Button_Click1(object sender, RoutedEventArgs e)
        {
            TreeManagerViewDialog sf = new TreeManagerViewDialog();

            sf.ShowDialog();
            if (sf.DialogResult.HasValue && sf.DialogResult.Value)
            {
                if (sf.CurrentAcc != null)
                {
                    vm.CAccountsModel = sf.CurrentAcc;
                }
                vm.RefreshAcc();
            }
        }