public AuthenticationVm(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; IsBrowserVisible = true; IsConfirmationVisible = false; HasError = false; }
public LayoutPaneVm(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; IssuePanes = new ListCollectionView(issuePanes_); issuePanes_.Add(new RecentIssuesPaneVm(jirnalCore, "Recent")); issuePanes_.Add(new SearchIssuesPaneVm(jirnalCore, "Search")); }
public IssuesPaneBaseVm(JirnalCore jirnalCore, string header) { Header = header; jirnalCore_ = jirnalCore; Issues = new ListCollectionView(issues_); Issues.Filter = IssueFilter; jirnalCore_.MessageBus.SelectedProjectChanged += OnSelectedProjectChanged; }
public MainVm(JirnalCore core) { jirnalCore_ = core; StatusBar = new MainStatusBarVm(jirnalCore_); MenuBar = new MainMenuBarVm(jirnalCore_); Layout = new LayoutPaneVm(jirnalCore_); }
public AuthenticationWindow(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; authVm_ = new AuthenticationVm(jirnalCore); DataContext = authVm_; InitializeComponent(); Loaded += OnLoaded_; Browser.DocumentCompleted += OnDocumentLoaded_; }
public FieldListVm(JirnalCore core, IList fields, int id) { core_ = core; Id = id; Fields = new ListCollectionView(fields) { Filter = FieldFilter_ }; }
public ProjectsVm(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; settings_ = jirnalCore_.ProjectSettings; Projects = new ListCollectionView(projects_); Projects.GroupDescriptions.Add(new PropertyGroupDescription(nameof(ProjectVm.Category))); Projects.SortDescriptions.Add(new SortDescription(nameof(ProjectVm.Name), Ascend)); Favorites = new ListCollectionView(projects_); Favorites.SortDescriptions.Add(new SortDescription(nameof(ProjectVm.Name), Ascend)); Favorites.Filter = FavoritesFilter_; }
public MainWindow() { jirnalCore_ = new JirnalCore(); mainVm_ = new MainVm(jirnalCore_); DataContext = mainVm_; Loaded += OnLoaded_; InitializeComponent(); MainMenuBar.Close += Close; WindowManager.Singleton.Initialize(jirnalCore_); mainVm_.StatusBar.SetSelectedLayout(); }
public IssueFieldManagerVm(JirnalCore core) { core_ = core; foreach (var field in core_.JiraCache.JiraFieldLookup) { fields_.Add(new FieldDefinitionVm(field)); } Fields = new FieldListVm(core_, fields_, 0); Fields.Fields.SortDescriptions.Add(new SortDescription(nameof(FieldDefinitionVm.Name), Ascend)); ColumnOne = new FieldListVm(core_, fields_, 1); ColumnTwo = new FieldListVm(core_, fields_, 2); ColumnThree = new FieldListVm(core_, fields_, 3); ColumnFour = new FieldListVm(core_, fields_, 4); ColumnLayout = new Collection <string> { "One Column", "Two Column", "Three Column", "Four Column" }; VisibleColumns = ColumnLayout.First(); }
public IssueVm(JirnalCore jirnalCore, Issue issue) : this(jirnalCore) { ProjectName = issue.Fields.Project?.Name; Description = issue.Fields.Description; Key = issue.Key; Updated = issue.Fields.Updated; Title = issue.Fields.Summary; Assignee = issue.Fields.Assignee?.DisplayName; Version = issue.Fields.Versions != null?string.Join(',', issue.Fields.Versions.Select(v => v.Name)) : ""; Components = string.Join(',', issue.Fields.Components.Select(c => c.Name)); Reporter = issue.Fields.Reporter?.DisplayName; Resolution = issue.Fields.Resolution?.Name; Priority = issue.Fields.Priority?.Name; Status = issue.Fields.Status?.Name; Sprint = string.Join(",", issue.Fields.Sprints); List <string> fields = new List <string>(); foreach (var customField in issue.Fields.CustomFields) { fields.Add(jirnalCore.JiraCache.JiraFieldLookup.GetFieldNameFromId(customField.Key)); } }
private IssueVm(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; Comments = new ListCollectionView(comments_); Comments.SortDescriptions.Add(new SortDescription(nameof(Comment.Created), Ascend)); }
public MainStatusBarVm(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; Settings = new StatusBarSettings(); Status = "Test"; }
public void Initialize(JirnalCore core) { jirnalCore_ = core; }
public RecentIssuesPaneVm(JirnalCore jirnalCore, string header) : base(jirnalCore, header) { Projects = new ProjectsVm(jirnalCore_); }
public MainMenuBarVm(JirnalCore jirnalCore) { jirnalCore_ = jirnalCore; }
public SearchIssuesPaneVm(JirnalCore jirnalCore, string header) : base(jirnalCore, header) { }
public PinnedIssuesPaneVm(JirnalCore jirnalCore, string header) : base(jirnalCore, header) { }