private void BuildMenu()
        {
            MenuItems.Clear();
            // QuickTask Menu
            RadMenuItemEx quickTaskMenu = new RadMenuItemEx() { Header = "Quick Task", Order = 0, IconColumnWidth = 0 };

            if (AppLib.IsAuthorized(SysLib.GetOptionName(ModuleNames.Clients, ModuleAction.Add))) {
                RadMenuItemEx newItem = new RadMenuItemEx() { Header = "New Client", IconColumnWidth = 0 };
                newItem.Click += new Telerik.Windows.RadRoutedEventHandler(OnQuickAddNewClient);
                quickTaskMenu.Items.Add(newItem);
            }

            if (AppLib.IsAuthorized(SysLib.GetOptionName(ModuleNames.Samples, ModuleAction.Add))) {
                RadMenuItemEx openItem = new RadMenuItemEx() { Header = "New Sample", IconColumnWidth = 0 };
                openItem.Click += new Telerik.Windows.RadRoutedEventHandler(OnQuickAddNewOrder);
                quickTaskMenu.Items.Add(openItem);
            }

            //RadMenuItemEx saveItem = new RadMenuItemEx() { Header = "New User", IconColumnWidth = 0 };
            //quickTaskMenu.Items.Add(saveItem);

            RadMenuItemEx settingsMenu = new RadMenuItemEx() { Header = "Settings", Order = 1000, IconColumnWidth = 0 };
            if (AppLib.IsAuthorized(SysLib.GetOptionName(ModuleNames.SystemSettings, ModuleNames.ListManagement))) {
                RadMenuItemEx listManagementItem = new RadMenuItemEx() { Header = "List Management", IconColumnWidth = 0 };
                listManagementItem.Click += new Telerik.Windows.RadRoutedEventHandler(OnOpenListManagement);
                settingsMenu.Items.Add(listManagementItem);
            }

            //RadMenuItemEx logoutMenu = new RadMenuItemEx() {
            //    Order = 1001,
            //    Header = "Logoff",
            //    IconColumnWidth = 0
            //    //Icon = new Image() {
            //    //    Stretch = System.Windows.Media.Stretch.None,
            //    //    Source = new BitmapImage(new Uri("../Resources/Images/LogOut16.png",UriKind.RelativeOrAbsolute))
            //    //}
            //};
            //logoutMenu.Click += new Telerik.Windows.RadRoutedEventHandler(OnLogoutMenuLogoff);
            MenuItems.Add(quickTaskMenu);

            if (settingsMenu.Items.Count > 0)
                MenuItems.Add(settingsMenu);

            //MenuItems.Add(logoutMenu);

            // Sort Menu
            SortMenu();
        }
 public void RemoveItem(RadMenuItemEx removeMenu)
 {
     MenuItems.Remove(removeMenu);
 }