예제 #1
0
        public ChangeComp(Company cli)
        {
            client = cli;
            p      = new PresenterAddCompany(this);
            InitializeComponent();
            this.Loaded            += (s, e) => p.Loader();
            Cb_Status.ItemsSource   = p.clStat.LiCom;
            NumInn.PreviewKeyDown  += (s, e) => p.Validinput(e, s);
            NumInn.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);


            Change.Click += (s, e) => { p.Change(); this.Close(); };
        }
예제 #2
0
        public AddClompanyWin()
        {
            InitializeComponent();
            p = new PresenterAddCompany(this);

            Cb_Status.ItemsSource   = p.clStat.LiCom;
            NumInn.PreviewKeyDown  += (s, e) => p.Validinput(e, s);
            NumInn.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();
            NumInn.GotFocus        += (s, e) => p.NumDocLostFocus();
            Tb_Adres.LostFocus     += (s, e) => p.AdressLostFocus();
            NumInn.LostFocus       += (s, e) => p.NumDocLostFocus();


            Add.Click += (s, e) => p.AddClient();
        }