Mini Kabibi Habibi

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

using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using DevExpress.XtraEditors.Repository;
using DevExpress.LookAndFeel;
using DevExpress.Utils;

namespace DevExpress.XtraBars.Demos.Tutorials {
	public class TutorialControl : DevExpress.Tutorials.ModuleBase {
		public virtual bool ShowLookAndFeel { get { return true; } }
        public virtual bool SetNewWhatsThisPadding { get { return false; } }
        public override void StartWhatsThis() {
            if(SetNewWhatsThisPadding) {
                this.Padding = new Padding(8);
                this.Refresh();
            }
        }
        public override void EndWhatsThis() {
            if(SetNewWhatsThisPadding)
                this.Padding = new Padding(0);
        }

	}
    public class BarTutorialMenu : DevExpress.DXperience.Demos.LookAndFeelMenu {
        public BarTutorialMenu(BarManager manager, DefaultLookAndFeel lookAndFeel, string about) : base(manager, lookAndFeel, about) { }
        protected override string ProductName { get { return "XtraBars"; } }
        protected override void biProductWebPage_Click(object sender, ItemClickEventArgs e) {
            System.Diagnostics.Process.Start("http://www.devexpress.com/Products/NET/WinForms/XtraBars/");
        }
        protected override void miAboutProduct_Click(object sender, ItemClickEventArgs e) {
            DevExpress.Utils.About.AboutForm.Show(typeof(DevExpress.XtraBars.BarManager), DevExpress.Utils.About.ProductKind.DXperienceWin, DevExpress.Utils.About.ProductInfoStage.Registered);
        }
    }
	public class TutorialHelper {
		public static ImageCollection GetTutorialImageCollection() {
            return DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("BarTutorials.TutorialImages.png", typeof(TutorialHelper).Assembly, new Size(16, 16));
		}
	}
}