RMEnrollmentPage2.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / TrustUi / MS / Internal / documents / RMEnrollmentPage2.cs / 1 / RMEnrollmentPage2.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: 
//    RMEnrollmentPage2 is page 2 of the RM enrollment wizard.
// 
// History:
// 06/17/05 - [....] created
//
//--------------------------------------------------------------------------- 
using System;
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Drawing;
using System.Windows.Forms; 
using System.Windows.TrustUI;


namespace MS.Internal.Documents 
{
    ///  
    /// RMEnrollmentPage2 
    /// 
    internal sealed partial class RMEnrollmentPage2 : DialogBaseForm 
    {
        #region Constructors
        //-----------------------------------------------------
        // 
        //  Constructors
        // 
        //----------------------------------------------------- 

        ///  
        /// The constructor
        /// 
        internal RMEnrollmentPage2()
        { 
            // disabling until images are avaliable
            _pictureBox1.Visible = false; 
            _pictureBox2.Visible = false; 
            _pictureBox4.Visible = false;
        } 

        #endregion Constructors

        #region Public properties 
        //------------------------------------------------------
        // 
        //  Public properties 
        //
        //----------------------------------------------------- 

        /// 
        /// Windows Account has been selected.
        ///  
        public EnrollmentAccountType AccountTypeSelected
        { 
            get 
            {
                EnrollmentAccountType accountType = EnrollmentAccountType.None; 

                if (_networkRadioButton.Checked)
                {
                    accountType = EnrollmentAccountType.Network; 
                }
 
                if (_passportRadioButton.Checked) 
                {
                    accountType = EnrollmentAccountType.NET; 
                }

                return accountType;
            } 
        }
 
        #endregion Public properties 

        #region Protected Methods 
        //------------------------------------------------------
        //
        //  Protected Methods
        // 
        //------------------------------------------------------
 
        ///  
        /// ApplyResources override.  Called to apply dialog resources.
        ///  
        protected override void ApplyResources()
        {
            base.ApplyResources();
 
            this._nextButton.Text = SR.Get(SRID.RMEnrollmentNext);
            this._cancelButton.Text = SR.Get(SRID.RMEnrollmentCancel); 
            this._label1.Text = SR.Get(SRID.RMEnrollmentPage2a); 
            this._label2.Text = SR.Get(SRID.RMEnrollmentPage2b);
            this._networkRadioButton.Text = SR.Get(SRID.RMEnrollmentPage2c); 
            this._passportRadioButton.Text = SR.Get(SRID.RMEnrollmentPage2e);
            this.Text = SR.Get(SRID.RMEnrollmentTitle);
        }
 
        #endregion Protected Methods
 
    } 
}

// 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