Mini Kabibi Habibi

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

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using DevExpress.Utils;
using DevExpress.XtraBars;
using DevExpress.LookAndFeel;
using DevExpress.DXperience.Demos;
using DevExpress.Tutorials;
using DevExpress.XtraPrinting;

namespace XtraPrintingDemos
{
    public class frmMain : DevExpress.DXperience.Demos.RibbonMainForm
	{
		protected override void SetFormParam() {
            this.Icon = ResourceImageHelper.CreateIconFromResources("XtraPrintingDemos.AppIcon.ico", typeof(frmMain).Assembly);
		}
        protected override string DemoName { get { return "XtraPrinting Features Demo (C# code)"; } }
		protected override void ShowModule(string name, DevExpress.XtraEditors.GroupControl group, DevExpress.LookAndFeel.DefaultLookAndFeel lookAndFeel, DevExpress.Utils.Frames.ApplicationCaption caption) {
			DemosInfo.ShowModule(name, group, lookAndFeel, caption);
		}
		protected override void FillNavBar() {
			base.FillNavBar();
			this.navBarControl1.LargeImages = null;
		}
        protected override void ShowAbout() {
            DevExpress.Utils.About.AboutForm.Show(typeof(PrintingSystem), DevExpress.Utils.About.ProductKind.DXperienceWin, DevExpress.Utils.About.ProductInfoStage.Registered);
        }
		[STAThread]
		static void Main() {
			DevExpress.UserSkins.BonusSkins.Register();
			Application.Run(new frmMain());
		}
	}
    public class About : ucAboutPage {
        public About() {
            InitializeComponent();
        }
        protected override string ProductText {
            get {
                return "The XtraPrinting Library is our 100% C# data rendering and visualization system, built specifically for Visual Studio .NET and designed to bring your User Interface to the printed page. Once you start using the XtraPrinting Library, you will be able to print the contents of advanced visual controls such as the XtraGrid and XtraScheduler with ease - and thus offer your end-users a nearly unlimited series of \"reports\" without actually having to create a single report using a traditional report writer.";
            }
        }
        protected override Image ProductImage {
            get {
                return DevExpress.Utils.ResourceImageHelper.CreateImageFromResources("DevExpress.XtraPrinting.Images.XtraPrinting.png", typeof(PrintingSystem).Assembly); ;
            }
        }
        protected override Image ProductImageLight {
            get {
                return DevExpress.Utils.ResourceImageHelper.CreateImageFromResources("DevExpress.XtraPrinting.Images.XtraPrinting_light.png", typeof(PrintingSystem).Assembly); ;
            }
        }
        protected override DevExpress.Utils.About.ProductKind ProductKind {
            get {
                return DevExpress.Utils.About.ProductKind.DXperienceWin;
            }
        }
        private void InitializeComponent() {
            this.SuspendLayout();
            // 
            // About
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "About";
            this.Size = new System.Drawing.Size(439, 260);
            this.ResumeLayout(false);

        }
        protected override void Dispose(bool disposing) {
            if(disposing) {
                if(components != null) {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }
        private System.ComponentModel.IContainer components = null;
    }
}