private void OnItemClick(QuickMenuItemModel e) { if (ItemClick != null) { ItemClick(this, e); } }
public void Add(QuickMenuItemModel model) { UCQuickMenuItem item = new UCQuickMenuItem(model); item.Dock = DockStyle.Top; item.ItemClick += QuickMenuItem_ItemClick; this.Controls.Add(item); }
public UCQuickMenuItem(QuickMenuItemModel model) { InitializeComponent(); _ItemModel = model; if (model != null) { lblAppName.Text = model.App.Name; lblAppAuthor.Text = model.App.Author; } }
private void QuickMenu_ItemClick(object sender, QuickMenuItemModel e) { pnlBrowser.Controls.Clear(); pnlBrowser.Controls.Add(e.WBrowser); }
private void QuickMenuItem_ItemClick(object sender, QuickMenuItemModel e) { OnItemClick(e); }