public UIElement GetCommitPanel() { var stack = new StackContainer(); var group = new GroupContainer { CaptionHtml = "Commity wybranego autora", LabelHeight = "10", IsReadOnly = "{ReadOnlyMode}" }; var refreshCommandRow = new RowContainer(); var refreshCommand = new CommandElement { CaptionHtml = "Odśwież", MethodName = "RefreshCommitList", OuterWidth = "15" }; refreshCommandRow.Elements.Add(refreshCommand); group.Elements.Add(refreshCommandRow); var commitGrid = GridElement.CreatePopulateGrid(CommitRows); commitGrid.EditValue = "{CommitRows}"; commitGrid.FocusedValue = "{FocusedCommitRow}"; commitGrid.OuterWidth = "80"; group.Elements.Add(commitGrid); stack.Elements.Add(group); return(stack); }
public UIElement GetAuthorPanel() { var stack = new StackContainer(); var group = new GroupContainer { CaptionHtml = "Autorzy", LabelHeight = "10" }; var authorGrid = GridElement.CreatePopulateGrid(AuthorRows); authorGrid.EditValue = "{AuthorRows}"; authorGrid.FocusedValue = "{FocusedAuthorRow}"; authorGrid.OuterWidth = "80"; group.Elements.Add(authorGrid); stack.Elements.Add(group); return(stack); }