public ProjectManagement(IApplicationProgrammableInterface service) { InitializeComponent(); this.service = service; service.SubScribe(this); UpdateView(); }
public Management(IApplicationProgrammableInterface service) { InitializeComponent(); this.service = service; pManagement = new ProjectManagement(service); aManagement = new ActivityManagement(service); hManagement = new HourManagement(service); pManagement.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; aManagement.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; hManagement.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; service.SubScribe(pManagement); service.SubScribe(aManagement); service.SubScribe(hManagement); MainLayoutCount = MainLayout.Controls.Count; MenuSelectorView.ExpandAll(); }
public ProjectView(IApplicationProgrammableInterface service) { InitializeComponent(); this.service = service; var item = new ListViewItem(); ActivitiesView = ActivityListView; service.SubScribe(this); var welcomingText = new StringBuilder("Welcome "); var userName = service.CurrentUserLoggedIn().ModelIdentity; welcomingText.Append(userName); WelcomeLabel.Text = welcomingText.ToString(); UpdateView(); }