public void AddItem(string strBuddyName) { try { ctlMenuItem objMenuItem = new ctlMenuItem(); objMenuItem.Title = strBuddyName; stPanel.Children.Add(objMenuItem); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "AddItem()", "Controls\\VMuktiGrid\\Menu\\ctlMenu.xaml.cs"); } }
public ctlMenu() { try { InitializeComponent(); objMIClose.strLeftImage = @"\Skins\Images\Delete.Png"; _objMISave = objMISave; stPanel.Children.Remove(_objMISave); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlMenu()", "Controls\\VMuktiGrid\\Menu\\ctlMenu.xaml.cs"); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnMenu = ((System.Windows.Controls.Button)(target)); #line 110 "..\..\..\..\..\Controls\VMuktiGrid\Menu\ctlMenu.xaml" this.btnMenu.Click += new System.Windows.RoutedEventHandler(this.btnMenu_Click); #line default #line hidden return; case 2: this.menuPopUP = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 3: this.stPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.objMIClose = ((VMuktiGrid.CustomMenu.ctlMenuItem)(target)); return; case 5: this.objMIDelete = ((VMuktiGrid.CustomMenu.ctlMenuItem)(target)); return; case 6: this.objMIRename = ((VMuktiGrid.CustomMenu.ctlMenuItem)(target)); return; case 7: this.objMISave = ((VMuktiGrid.CustomMenu.ctlMenuItem)(target)); return; case 8: this.objEMIBuddyList = ((VMuktiGrid.CustomMenu.ctlExpMenuItem)(target)); return; } this._contentLoaded = true; }