예제 #1
0
        private View GoalsView()
        {
            var goalsView = new GoalsView();

            goalsView.SetBinding(BindingContextProperty, nameof(HomeViewModel.GoalsViewModel));
            Utils.Accessibility.Unused(goalsView);
            return(goalsView);
        }
예제 #2
0
 private void RunOpenGoals(Type obj)
 {
     GoalsView      = new GoalsView(_eventAggregator, _myMessageDialog);
     SelectedView   = GoalsView;
     IsHomeSelected = false;
 }
예제 #3
0
        public void Init(GoalsView view)
        {
            View = view;
            Core = View.Core;
            Plans = view.Plans;
            Trust = Core.Trust;

            GoalTree.NodeExpanding += new EventHandler(GoalTree_NodeExpanding);
            GoalTree.NodeCollapsed += new EventHandler(GoalTree_NodeCollapsed);

            GoalTree.ControlPadding = 3;

            GoalTree.SmallImageList = new List<Image>();
            GoalTree.SmallImageList.Add(new Bitmap(16, 16));
            GoalTree.SmallImageList.Add(PlanRes.star);
            GoalTree.SmallImageList.Add(PlanRes.high_goal);
            GoalTree.SmallImageList.Add(PlanRes.low_goal);

            DelegateLink.Hide();
            AddItemLink.Hide();
        }
예제 #4
0
파일: BlockRow.cs 프로젝트: RoelofSol/DeOps
        private void RClickGoal(object sender, EventArgs e)
        {
            BlockMenuItem menu = sender as BlockMenuItem;

            if (menu == null)
                return;

            if (View.External != null && View.UI.GuiMain.GetType() == typeof(MainForm))
                foreach (ExternalView ext in ((MainForm)View.UI.GuiMain).ExternalViews)
                    if(ext.Shell.GetType() == typeof(GoalsView))
                        if (((GoalsView)ext.Shell).UserID == View.UserID && ((GoalsView)ext.Shell).ProjectID == View.ProjectID)
                        {
                            ext.BringToFront();
                            return;
                        }

            // switch to goal view
            GoalsView view = new GoalsView(View.UI, View.Plans, View.UserID, View.ProjectID);
            view.LoadIdent = menu.Goal.Ident;
            view.LoadBranch = menu.Goal.BranchUp;

            view.UI.ShowView(view, view.External != null);
        }