Пример #1
0
        public ChangeClient(Client cli)
        {
            client = cli;
            p      = new PresenterAddClient(this);
            InitializeComponent();

            this.Loaded                += (s, e) => p.Loader();
            Cb_Status.ItemsSource       = p.clStat.Li;
            NumPassport.PreviewKeyDown += (s, e) => p.Validinput(e, s);
            NumPassport.LostFocus      += (s, e) => p.Check();
            AllCash.PreviewKeyDown     += (s, e) => p.Validinput(e, s);
            Bt_Rating.KeyDown          += (s, e) => p.Validinput(e, s);
            AllCash.KeyDown            += (s, e) => p.Validinput(e, s);
            //Tb_Adres.GotFocus += (s, e) => Tb_Adres.Text = "";
            //Tbk_Work.GotFocus += (s, e) => Tbk_Work.Text = "";
            Change.Click += (s, e) => { p.Change(); this.Close(); };
        }
Пример #2
0
 public AddClient()
 {
     p = new PresenterAddClient(this);
     InitializeComponent();
     Cb_Status.ItemsSource       = p.clStat.Li;
     NumPassport.PreviewKeyDown += (s, e) => p.Validinput(e, s);
     NumPassport.LostFocus      += (s, e) => p.Check();
     //AllCash.PreviewKeyDown += (s, e) => p.Validinput(e, s);
     Bt_Rating.KeyDown     += (s, e) => p.Validinput(e, s);
     AllCash.KeyDown       += (s, e) => p.Validinput(e, s);
     Tb_Adres.GotFocus     += (s, e) => p.AdressLostFocus();
     NumPassport.GotFocus  += (s, e) => p.NumDocLostFocus();
     Tbk_Work.GotFocus     += (s, e) => p.WorkPlaceLostFocus();
     Tb_Adres.LostFocus    += (s, e) => p.AdressLostFocus();
     NumPassport.LostFocus += (s, e) => p.NumDocLostFocus();
     Tbk_Work.LostFocus    += (s, e) => p.WorkPlaceLostFocus();
     Add.Click             += (s, e) => p.AddClient();
     //Bt_deposit.ItemsSource = list;
 }