CalendarDesigner.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / CalendarDesigner.cs / 1 / CalendarDesigner.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.UI.Design.WebControls { 
 
    using System;
    using System.ComponentModel; 
    using System.ComponentModel.Design;
    using System.Data;
    using System.Design;
    using System.Diagnostics; 
    using System.Globalization;
    using System.IO; 
    using System.Runtime.InteropServices; 
    using System.Text;
    using System.Web.UI.Design.Util; 
    using System.Web.UI.WebControls;
    using System.Windows.Forms;

    using Calendar = System.Web.UI.WebControls.Calendar; 

    ///  
    ///  
    ///    
    ///       Provides a designer for the  
    ///       control.
    ///    
    /// 
    [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] 
    [SupportsPreviewControl(true)]
    public class CalendarDesigner : ControlDesigner { 
 
        private static DesignerAutoFormatCollection _autoFormats;
 
        public override DesignerAutoFormatCollection AutoFormats {
            get {
                if (_autoFormats == null) {
                    _autoFormats = CreateAutoFormats(AutoFormatSchemes.CALENDAR_SCHEMES, 
                        delegate(DataRow schemeData) { return new CalendarAutoFormat(schemeData); });
                } 
                return _autoFormats; 
            }
        } 

        /// 
        /// 
        ///     
        ///       Initializes the designer with the component for design.
        ///     
        ///  
        public override void Initialize(IComponent component) {
            VerifyInitializeArgument(component, typeof(Calendar)); 
            base.Initialize(component);
        }

        ///  
        /// 
        ///     
        ///       Delegate to handle the the AutoFormat verb by calling the AutoFormat dialog. 
        ///    
        ///  
        protected void OnAutoFormat(object sender, EventArgs e) {
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK