public override void AwakeFromNib() { base.AwakeFromNib(); logViewerControlAdapter = new LogViewerControlAdapter(); logViewerControlAdapter.View.MoveToPlaceholder(this.logViewerPlaceholder); selectCurrentTimeButton.ToolTip = "Find current time in search results"; selectCurrentTimeButton.Image.Template = true; tableView.DataSource = dataSource; tableView.Delegate = new Delegate() { owner = this }; ((SearchResultsDropdownTable)tableView).owner = this; ((SearchResultsScrollView)dropdownScrollView).owner = this; dropdownContainerView.CanBeFirstResponder = true; dropdownContainerView.OnPaint += dirtyRect => { if (!dropdownExpanded.GetValueOrDefault()) { return; } NSColor.WindowBackground.SetFill(); NSBezierPath.FillRect(dirtyRect.ToCGRect()); NSColor.WindowFrame.SetStroke(); NSBezierPath.StrokeRect(dropdownContainerView.Bounds); }; dropdownContainerView.OnResignFirstResponder = () => viewModel.OnDropdownContainerLostFocus();; }
public override void AwakeFromNib() { base.AwakeFromNib(); logViewerControlAdapter = new LogViewerControlAdapter(); logViewerControlAdapter.View.MoveToPlaceholder(logViewerPlaceholder); }
public LoadedMessagesControlAdapter() : base("LoadedMessagesControl", NSBundle.MainBundle) { logViewerControlAdapter = new LogViewerControlAdapter(); }
public void Init(LogViewerControlAdapter owner) { this.owner = owner; }
void Initialize() { logViewerControlAdapter = new LogViewerControlAdapter(); }