Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/WinForms/CS/GaugesMainDemo/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/WinForms/CS/GaugesMainDemo/frmMain.cs

using DevExpress.DXperience.Demos;
using DevExpress.LookAndFeel;
using DevExpress.Utils;
using DevExpress.Utils.Frames;

namespace DevExpress.XtraGauges.Demos {
    public class frmMain : DevExpress.DXperience.Demos.RibbonMainForm {
        bool showOutdated = true;
        public frmMain(string[] arguments)
            : base(arguments) {
            ToolTipController.DefaultController.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip;
            foreach(string name in arguments)
                if(name == "-demo") showOutdated = false;
        }
        protected override string DemoName { get { return "XtraGauges Main Demo (C# code)"; } }
        protected override void ShowAbout() {
            DevExpress.Utils.About.AboutForm.Show(typeof(DevExpress.XtraGauges.Win.GaugeControl), DevExpress.Utils.About.ProductKind.DXperienceWin, DevExpress.Utils.About.ProductInfoStage.Registered);
        }
        protected override void SetFormParam() {
            this.navBarControl1.Parent.Width = 210;
            this.MinimumSize = new System.Drawing.Size(800, 600);
            this.Icon = DevExpress.Utils.ResourceImageHelper.CreateIconFromResources("DevExpress.XtraGauges.Demos.AppIcon.ico", typeof(frmMain).Assembly);
        }
        protected override RibbonMenuManager CreateRibbonMenuManager() {
            return new GaugesRibbonMenuManager(this);
        }
        protected override void ShowModule(string name, DevExpress.XtraEditors.GroupControl group, DefaultLookAndFeel lookAndFeel, ApplicationCaption caption) {
            DemosInfo.ShowModule(name, group, caption, RibbonMenuManager);
        }
        protected override void FillNavBar() {
            DemosInfo.FillNavBar(navBarControl1, DevExpress.XtraNavBar.NavBarGroupStyle.SmallIconsText, showOutdated);
            this.navBarControl1.SkinExplorerBarViewScrollStyle = DevExpress.XtraNavBar.SkinExplorerBarViewScrollStyle.ScrollBar;
        }
    }
}