Exemplo n.º 1
0
        public CommentWidget(List<CommentData> _comments)
        {
            log = new LogUtil ("CommentWidget");
            this.Build ();

            log.DEBUG ("Recieved comments with size" + _comments.Count);
            Comments = _comments;
            replyButton.Sensitive = false;
            quoteButton.Sensitive = false;
            PopulateTreeView ();
        }
Exemplo n.º 2
0
        public void OnNewCategoryContextMenu()
        {
            LogUtil log = new LogUtil ("ProviderNodeCommandHandler");
            log.DEBUG ("Creating a new category");
            if (this.CurrentNode.DataItem is ProviderData) {
                ProviderData self = this.CurrentNode.DataItem as ProviderData;

                // call the new category view
                self.provider.CreateNewCategory ();
            }
        }