Mini Kabibi Habibi
using DevExpress.Utils;
using DevExpress.LookAndFeel;
using DevExpress.Utils.Frames;
using DevExpress.Utils.About;
using DevExpress.XtraEditors;
using DevExpress.XtraNavBar;
using DevExpress.XtraBars;
using DevExpress.XtraCharts.Native;
using DevExpress.DXperience.Demos;
using System;
namespace DevExpress.XtraCharts.Demos {
public partial class frmMain : RibbonMainForm {
new internal BarSubItem ExportToImageExButton { get { return base.ExportToImageExButton; } }
protected override string DemoName { get { return "XtraCharts Features Demo (C# code)"; } }
public frmMain() {
InitializeComponent();
UserLookAndFeel.Default.StyleChanged += new EventHandler(Default_StyleChanged);
}
void Default_StyleChanged(object sender, EventArgs e) {
if (RibbonMenuManager != null)
((ChartRibbonMenuManager)RibbonMenuManager).UpdateMenu();
}
protected override RibbonMenuManager CreateRibbonMenuManager() {
return new ChartRibbonMenuManager(this);
}
protected override void SetFormParam() {
navBarControl1.Parent.Width = 220;
Icon = ResourceImageHelper.CreateIconFromResources("DevExpress.XtraCharts.Demos.AppIcon.ico", typeof(frmMain).Assembly);
}
protected override void ShowModule(string name, GroupControl group, DefaultLookAndFeel lookAndFeel, ApplicationCaption caption) {
TutorialControl currentModule = DemosInfo.ShowModule(name, group, caption, RibbonMenuManager as ChartRibbonMenuManager);
if (currentModule != null) {
((ChartRibbonMenuManager)RibbonMenuManager).CurrentModule = currentModule;
((ChartRibbonMenuManager)RibbonMenuManager).UpdateMenu();
}
}
protected override void FillNavBar() {
base.FillNavBar();
navBarControl1.SkinExplorerBarViewScrollStyle = SkinExplorerBarViewScrollStyle.ScrollBar;
}
protected override void ShowAbout() {
AboutForm.Show(typeof(Chart), ProductKind.DXperienceWin, ProductInfoStage.Registered);
}
}
}