void OpenClientCerchTable(object a)
        {
            ClientSerchView      clientSerchView      = new ClientSerchView();
            ClientSerchViewModel clientSerchViewModel = new ClientSerchViewModel();

            clientSerchView.DataContext = clientSerchViewModel;
            clientSerchView.ShowDialog();
        }
예제 #2
0
        public void OpenSerchTable(object a)
        {
            MainViewModel.parametr1 = "FromNağdTablo";
            ClientSerchView      clientSerchView      = new ClientSerchView();
            ClientSerchViewModel clientSerchViewModel = new ClientSerchViewModel();

            clientSerchView.DataContext = clientSerchViewModel;
            clientSerchView.ShowDialog();
        }
예제 #3
0
        void OpenClientSerchTable(object a)
        {
            var param = a as string;

            MainViewModel.parametr2 = param;

            ClientSerchViewModel clientSerchViewModel = new ClientSerchViewModel();
            ClientSerchView      clientSerchView      = new ClientSerchView();

            clientSerchView.DataContext = clientSerchViewModel;
            clientSerchView.ShowDialog();
        }
        void CreateProcuring(object a)
        {
            switch (SelectedItem)
            {
            case "Zaminlik":
                MainViewModel.parametr1 = "Zaminlik";
                ClientSerchView      clientSerchView      = new ClientSerchView();
                ClientSerchViewModel clientSerchViewModel = new ClientSerchViewModel();
                clientSerchView.DataContext = clientSerchViewModel;
                clientSerchView.ShowDialog();
                break;

            case "Əşya girovu":
                MainViewModel.parametr1 = "Əşya girovu";
                CollateralTableView     collateralTableView     = new CollateralTableView();
                ColateralTableViewModel colateralTableViewModel = new ColateralTableViewModel();
                ColateralTableViewModel.Thing.Id = ++ID;
                collateralTableView.DataContext  = colateralTableViewModel;
                collateralTableView.ShowDialog();
                break;

            case "Avtomobil girovu":
                MainViewModel.parametr1 = "Avtomobil girovu";
                CarPledgeTableView      carPledgeTableView   = new CarPledgeTableView();
                CarPledgeTableViewModel pledgeTableViewModel = new CarPledgeTableViewModel();
                CarPledgeTableViewModel.Car.Id = ++ID;
                carPledgeTableView.DataContext = pledgeTableViewModel;
                carPledgeTableView.ShowDialog();
                break;

            case "Daşınmaz əmlak girovu":
                MainViewModel.parametr1 = "Daşınmaz əmlak girovu";
                HousePledgeView      housePledgeView      = new HousePledgeView();
                HousePledgeViewModel housePledgeViewModel = new HousePledgeViewModel();
                HousePledgeViewModel.House.Id = ++ID;
                housePledgeView.DataContext   = housePledgeViewModel;
                housePledgeView.ShowDialog();
                break;

            case "Zinyət əşyası":
                MainViewModel.parametr1 = "Zinyət əşyası";
                JewelryTableViewModel jewelryTableViewModel = new JewelryTableViewModel();
                JewelryTableView      jewelryTableView      = new JewelryTableView();
                JewelryTableViewModel.Jewelries.Id = ++ID;
                jewelryTableView.DataContext       = jewelryTableViewModel;
                jewelryTableView.ShowDialog();

                break;

            case "Nağd pul girovu":
                MainViewModel.parametr1 = "Nağd pul girovu";
                DepositTableView      depositTableView      = new DepositTableView();
                DepositTableViewModel depositTableViewModel = new DepositTableViewModel();
                depositTableView.DataContext = depositTableViewModel;
                depositTableView.ShowDialog();
                break;

            case "Dövriyyə vəsaiti":
                MainViewModel.parametr1 = "Dövriyyə vəsaiti";
                break;
            }
        }