private View GoalsView() { var goalsView = new GoalsView(); goalsView.SetBinding(BindingContextProperty, nameof(HomeViewModel.GoalsViewModel)); Utils.Accessibility.Unused(goalsView); return(goalsView); }
private void RunOpenGoals(Type obj) { GoalsView = new GoalsView(_eventAggregator, _myMessageDialog); SelectedView = GoalsView; IsHomeSelected = false; }
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(); }
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); }