Mini Kabibi Habibi
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using DevExpress.Utils;
using DevExpress.DXperience.Demos;
namespace DevExpress.XtraTreeList.Demos {
public class frmMain : DevExpress.DXperience.Demos.RibbonMainForm {
protected override void SetFormParam() {
this.navBarControl1.Parent.Width = 176;
this.navBarControl1.LargeImages = null;
this.Icon = DevExpress.Utils.ResourceImageHelper.CreateIconFromResources("DevExpress.XtraTreeList.Demos.AppIcon.ico", typeof(frmMain).Assembly);
}
protected override string DemoName { get { return "XtraTreeList Features Demo (C# code)"; } }
protected override void ShowAbout() {
DevExpress.Utils.About.AboutForm.Show(typeof(DevExpress.XtraTreeList.TreeList), DevExpress.Utils.About.ProductKind.DXperienceWin, DevExpress.Utils.About.ProductInfoStage.Registered);
}
protected override RibbonMenuManager CreateRibbonMenuManager() {
return new TreeListRibbonMenuManager(this);
}
protected override void ShowModule(string name, DevExpress.XtraEditors.GroupControl group, DevExpress.LookAndFeel.DefaultLookAndFeel lookAndFeel, DevExpress.Utils.Frames.ApplicationCaption caption) {
DemosInfo.ShowModule(name, group, caption, RibbonMenuManager as TreeListRibbonMenuManager);
}
protected override void FillNavBar() {
DemosInfo.FillNavBar(navBarControl1, DevExpress.XtraNavBar.NavBarGroupStyle.SmallIconsText, true, DevExpress.XtraNavBar.NavBarImage.Large);
}
}
}