示例#1
0
        private void ShowDpSelectDialog(OperatingPost selectedRow)
        {
            DepartmentSelectDialog dlg = new DepartmentSelectDialog();

            if (dlg.ShowDialog())
            {
                selectedRow.Department = dlg.SelectedDpvm.Model;
            }
        }
        private void SelectDp_Click(object sender, RoutedEventArgs e)
        {
            DepartmentSelectDialog dlg = new DepartmentSelectDialog();

            if (dlg.ShowDialog())
            {
                DpFilter = dlg.SelectedDpvm.Model;
            }
        }
示例#3
0
        private void SelectDp()
        {
            DepartmentSelectDialog dlg = new DepartmentSelectDialog();

            if (dlg.ShowDialog())
            {
                FilterDepartmentName = dlg.SelectedDpvm.Model.DepartName;
            }
        }
示例#4
0
        private void SelectDepartmentExecute()
        {
            //sent a request to mainview
            //or just a static call
            DepartmentSelectDialog dlg = new DepartmentSelectDialog();

            if (dlg.ShowDialog())
            {
                BelongDepartment = dlg.SelectedDpvm.Model;
            }
        }
示例#5
0
        private void ShowDpSelectDialog()
        {
            if (SelectedPlan == null)
            {
                return;
            }
            DepartmentSelectDialog dlg = new DepartmentSelectDialog();

            if (dlg.ShowDialog())
            {
                SelectedPlan.Department = dlg.SelectedDpvm.Model;
            }
        }
        public void ShowDpSelectDialog(OperatingPost selectedRow)
        {
            //Console.WriteLine(@"ShowDpSelectDialog Clicked!");
            //var selectDpVm = StatusConsole.ShowFlyout() as DpSelectVM;
            //Console.WriteLine("Flyout SHown");
            //if (selectDpVm != null)
            //    selectDpVm.SelectFinished += dp =>
            //    {
            //        selectedRow.Department = selectDpVm.SelectedDpvm.Model;
            //Console.WriteLine("selected");
            //        StatusConsole.CloseFlyout();
            //    };

            //Console.WriteLine(@"ShowDpSelectDialog Done!");

            DepartmentSelectDialog dlg = new DepartmentSelectDialog();

            Console.WriteLine(@"DepartmentSelectDialog Initialized.");
            if (dlg.ShowDialog())
            {
                Console.WriteLine(@"Dlg Shown.");
                selectedRow.Department = dlg.SelectedDpvm.Model;
            }
        }