public SnippetList() { InitializeComponent(); TheModel = new SnippetListModel(this); // there is a binding problem (bug) that makes the following line necessary NameScope.SetNameScope(contextMenu, NameScope.GetNameScope(this)); }
public SnippetList() { this.FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight; //Orientation = Orientation.Vertical; BackColor = Color.White; this.Padding = new Padding(2); this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; //this.CanFocus = true; this.AutoScroll = true; ClientSizeChanged += new EventHandler(SnippetList_Resize); if (DesignMode) return; TheModel = new SnippetListModel(this); TheModel.Reload(); TheModel.CheckForThumbnails(); CreateContextMenu(); ((ISnippetListView)this).Refresh(); }