예제 #1
0
 private void OnItemClick(QuickMenuItemModel e)
 {
     if (ItemClick != null)
     {
         ItemClick(this, e);
     }
 }
예제 #2
0
        public void Add(QuickMenuItemModel model)
        {
            UCQuickMenuItem item = new UCQuickMenuItem(model);

            item.Dock       = DockStyle.Top;
            item.ItemClick += QuickMenuItem_ItemClick;

            this.Controls.Add(item);
        }
예제 #3
0
 public UCQuickMenuItem(QuickMenuItemModel model)
 {
     InitializeComponent();
     _ItemModel = model;
     if (model != null)
     {
         lblAppName.Text   = model.App.Name;
         lblAppAuthor.Text = model.App.Author;
     }
 }
예제 #4
0
 private void QuickMenu_ItemClick(object sender, QuickMenuItemModel e)
 {
     pnlBrowser.Controls.Clear();
     pnlBrowser.Controls.Add(e.WBrowser);
 }
예제 #5
0
 private void QuickMenuItem_ItemClick(object sender, QuickMenuItemModel e)
 {
     OnItemClick(e);
 }