public void UpdateTableViewDataByBookID(int bookID) { if (AnnotationList == null) { AnnotationList = new List <Annotation> (); } else { AnnotationList.Clear(); } var annotationList = AnnotationUtil.Instance.GetAnnotations(); if (annotationList != null) { var sameTitleList = annotationList.FindAll((item) => item.BookId == bookID); AnnotationList.AddRange(sameTitleList); } if (AnnotationList == null || AnnotationList.Count == 0) { InfoView.Hidden = false; AnnotationTableView.EnclosingScrollView.Hidden = true; } else { InfoView.Hidden = true; AnnotationTableView.EnclosingScrollView.Hidden = false; AnnotationTableView.ReloadData(); } }
void ReleaseDesignerOutlets() { if (AllButton != null) { AllButton.Dispose(); AllButton = null; } if (HighlightsButton != null) { HighlightsButton.Dispose(); HighlightsButton = null; } if (NotesButton != null) { NotesButton.Dispose(); NotesButton = null; } if (TagFilterButton != null) { TagFilterButton.Dispose(); TagFilterButton = null; } if (TagFilterPopBtn != null) { TagFilterPopBtn.Dispose(); TagFilterPopBtn = null; } if (InfoView != null) { InfoView.Dispose(); InfoView = null; } if (InfoLabelTF != null) { InfoLabelTF.Dispose(); InfoLabelTF = null; } if (AnnotationTableView != null) { AnnotationTableView.Dispose(); AnnotationTableView = null; } }
void ReleaseDesignerOutlets() { if (AnnotationTableView != null) { AnnotationTableView.Dispose(); AnnotationTableView = null; } if (TagTableView != null) { TagTableView.Dispose(); TagTableView = null; } }
private void InitProperties() { AnnotationTableView.UsesAlternatingRowBackgroundColors = false; AnnotationTableView.SelectionHighlightStyle = NSTableViewSelectionHighlightStyle.Regular; AnnotationTableView.GridStyleMask = NSTableViewGridStyle.None; AnnotationTableView.EnclosingScrollView.BorderType = NSBorderType.BezelBorder; AnnotationTableView.EnclosingScrollView.ScrollerKnobStyle = NSScrollerKnobStyle.Light; AnnotationTableView.EnclosingScrollView.VerticalScroller.ControlSize = NSControlSize.Small; //AnnotationTableView.DataSource = new AnnotationsTableDataSource (AnnotationList); //AnnotationTableView.Delegate = new AnnotationsTableDelegate (AnnotationList, this); AnnotationTableView.ReloadData(); InfoLabelTF.StringValue = "No annotations match your search criteria."; }
void ReleaseDesignerOutlets() { if (AllButton != null) { AllButton.Dispose(); AllButton = null; } if (AnnotationCustomView != null) { AnnotationCustomView.Dispose(); AnnotationCustomView = null; } if (AnnotationTableView != null) { AnnotationTableView.Dispose(); AnnotationTableView = null; } if (FunctionButtonView != null) { FunctionButtonView.Dispose(); FunctionButtonView = null; } if (HighlightsButton != null) { HighlightsButton.Dispose(); HighlightsButton = null; } if (NotesButton != null) { NotesButton.Dispose(); NotesButton = null; } if (OrphansButton != null) { OrphansButton.Dispose(); OrphansButton = null; } if (TagsTableView != null) { TagsTableView.Dispose(); TagsTableView = null; } if (TagsView != null) { TagsView.Dispose(); TagsView = null; } if (InfoLabelTF != null) { InfoLabelTF.Dispose(); InfoLabelTF = null; } }