Mini Kabibi Habibi
using System;
using DevExpress.Utils;
using System.Globalization;
using DevExpress.DXperience.Demos;
using DevExpress.XtraBars;
namespace DevExpress.XtraMap.Demos {
public partial class frmMain : DevExpress.DXperience.Demos.RibbonMainForm {
public frmMain() {
InitializeComponent();
}
#region Properties
protected override string DemoName { get { return "Map Control Main Demo (C# code)"; } }
#endregion
protected override void ShowAbout() {
DevExpress.Utils.About.AboutForm.Show(typeof(DevExpress.XtraMap.MapControl), DevExpress.Utils.About.ProductKind.DXperienceWin, DevExpress.Utils.About.ProductInfoStage.Registered);
}
protected override void SetFormParam() {
this.Icon = ResourceImageHelper.CreateIconFromResourcesEx("DevExpress.XtraMap.Demos.AppIcon.ico", typeof(frmMain).Assembly);
}
protected override RibbonMenuManager CreateRibbonMenuManager() {
return new MapRibbonMenuManager(this);
}
protected override void ShowModule(string name, DevExpress.XtraEditors.GroupControl groupControl, DevExpress.LookAndFeel.DefaultLookAndFeel lookAndFeel, DevExpress.Utils.Frames.ApplicationCaption caption) {
DemosInfo.DoShowModule(name, groupControl, caption, RibbonMenuManager as MapRibbonMenuManager);
}
private void frmMain_Load(object sender, EventArgs e) {
}
protected override void FillNavBar() {
base.FillNavBar();
this.navBarControl1.SkinExplorerBarViewScrollStyle = DevExpress.XtraNavBar.SkinExplorerBarViewScrollStyle.ScrollBar;
}
}
public class MapRibbonMenuManager : RibbonMenuManager {
public MapRibbonMenuManager(RibbonMainForm form)
: base(form) {
}
}
}