亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? iiscreatesitewindow.cs

?? 用ADSI操作IIS文件
?? CS
字號:
// IIsAdmin.NET
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This softwareis provided "AS IS" with no warranties of any kind.
// The entire risk arising out of the use or performance of the software
// and source code is with you.
//
// THIS NOTICE MAY NOT BE REMOVED FROM THIS FILE.

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO;

namespace IIsAdmin
{
    /// <summary>
    /// Summary description for CreateSite.
    /// </summary>
    public class IIsCreateSiteWindow : System.Windows.Forms.Form
    {
        private System.Windows.Forms.Label _labelDescription;
        private System.Windows.Forms.Label _labelPort;
        private System.Windows.Forms.Label _labelDirectory;
        private System.Windows.Forms.Button _buttonBrowse;
        private System.Windows.Forms.Button _buttonSave;
        private System.Windows.Forms.Button _buttonCancel;
        private System.Windows.Forms.TextBox _textBoxDescription;
        private System.Windows.Forms.TextBox _textBoxPort;
        private System.Windows.Forms.TextBox _textBoxDirectory;
        private System.Windows.Forms.FolderBrowserDialog _fileBrowserDialogHomeDirectory;
        private Container components = null;

        public IIsCreateSiteWindow()
        {
            InitializeComponent();

            _buttonSave.Click += new EventHandler(this.ButtonSave_Click);
            _buttonBrowse.Click += new EventHandler(this.ButtonBrowse_Click);
        }

        /// <summary>
        /// Validate the form and save the new website
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonSave_Click(object sender, EventArgs e)
        {
            if(this.IsValid())
            {
                IIsWebSite ws = IIsAdministrator.CreateWebSite(_textBoxDescription.Text, _textBoxDirectory.Text, Convert.ToInt32(_textBoxPort.Text));
                this._buttonSave.DialogResult = DialogResult.OK;
                this.Close();
            }
        }

        /// <summary>
        /// Open the file browser dialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonBrowse_Click(object sender, EventArgs e)
        {
            if(Directory.Exists(this._textBoxDirectory.Text))
            {
                this._fileBrowserDialogHomeDirectory.SelectedPath = this._textBoxDirectory.Text;
            }
            else if(Directory.Exists(IIsConstants.DefaultRootDirectory))
            {
                this._fileBrowserDialogHomeDirectory.SelectedPath = IIsConstants.DefaultRootDirectory;
            }

            if(_fileBrowserDialogHomeDirectory.ShowDialog(this) == DialogResult.OK)
            {
                _textBoxDirectory.Text = _fileBrowserDialogHomeDirectory.SelectedPath;
            }
        }

        /// <summary>
        /// Validates the create site form
        /// </summary>
        /// <returns></returns>
        private bool IsValid()
        {
            if(_textBoxDescription.Text == string.Empty)
            {
                ExceptionUtilities.DisplayValidation("Please enter your site's name.");
                _textBoxDescription.Focus();
                return false;
            }

            if(_textBoxPort.Text.Length != 0 && !ExceptionUtilities.IsNumeric(_textBoxPort.Text))
            {
                ExceptionUtilities.DisplayValidation("Please enter a valid port.");
                _textBoxPort.Focus();
                return false;
            }

            if(!Directory.Exists(_textBoxDirectory.Text))
            {
                ExceptionUtilities.DisplayValidation("Please enter a valid home directory.");
                _textBoxDirectory.Focus();
                return false;
            }

            return true;
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if(components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this._fileBrowserDialogHomeDirectory = new System.Windows.Forms.FolderBrowserDialog();
            this._labelDescription = new System.Windows.Forms.Label();
            this._labelPort = new System.Windows.Forms.Label();
            this._textBoxDescription = new System.Windows.Forms.TextBox();
            this._textBoxPort = new System.Windows.Forms.TextBox();
            this._labelDirectory = new System.Windows.Forms.Label();
            this._textBoxDirectory = new System.Windows.Forms.TextBox();
            this._buttonBrowse = new System.Windows.Forms.Button();
            this._buttonSave = new System.Windows.Forms.Button();
            this._buttonCancel = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // _labelDescription
            // 
            this._labelDescription.Location = new System.Drawing.Point(32, 14);
            this._labelDescription.Name = "_labelDescription";
            this._labelDescription.Size = new System.Drawing.Size(64, 16);
            this._labelDescription.TabIndex = 0;
            this._labelDescription.Text = "Description:";
            // 
            // _labelPort
            // 
            this._labelPort.Location = new System.Drawing.Point(64, 40);
            this._labelPort.Name = "_labelPort";
            this._labelPort.Size = new System.Drawing.Size(32, 16);
            this._labelPort.TabIndex = 1;
            this._labelPort.Text = "Port:";
            // 
            // _textBoxDescription
            // 
            this._textBoxDescription.Location = new System.Drawing.Point(96, 12);
            this._textBoxDescription.Name = "_textBoxDescription";
            this._textBoxDescription.Size = new System.Drawing.Size(152, 20);
            this._textBoxDescription.TabIndex = 2;
            this._textBoxDescription.Text = "";
            // 
            // _textBoxPort
            // 
            this._textBoxPort.Location = new System.Drawing.Point(96, 40);
            this._textBoxPort.Name = "_textBoxPort";
            this._textBoxPort.TabIndex = 3;
            this._textBoxPort.Text = "80";
            // 
            // _labelDirectory
            // 
            this._labelDirectory.Location = new System.Drawing.Point(9, 67);
            this._labelDirectory.Name = "_labelDirectory";
            this._labelDirectory.Size = new System.Drawing.Size(88, 20);
            this._labelDirectory.TabIndex = 4;
            this._labelDirectory.Text = "Home Directory:";
            // 
            // _textBoxDirectory
            // 
            this._textBoxDirectory.Location = new System.Drawing.Point(95, 67);
            this._textBoxDirectory.Name = "_textBoxDirectory";
            this._textBoxDirectory.Size = new System.Drawing.Size(257, 20);
            this._textBoxDirectory.TabIndex = 5;
            this._textBoxDirectory.Text = "";
            // 
            // _buttonBrowse
            // 
            this._buttonBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._buttonBrowse.Location = new System.Drawing.Point(357, 64);
            this._buttonBrowse.Name = "_buttonBrowse";
            this._buttonBrowse.TabIndex = 6;
            this._buttonBrowse.Text = "Browse...";
            // 
            // _buttonSave
            // 
            this._buttonSave.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._buttonSave.Location = new System.Drawing.Point(277, 112);
            this._buttonSave.Name = "_buttonSave";
            this._buttonSave.TabIndex = 7;
            this._buttonSave.Text = "Save";
            // 
            // _buttonCancel
            // 
            this._buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this._buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._buttonCancel.Location = new System.Drawing.Point(357, 112);
            this._buttonCancel.Name = "_buttonCancel";
            this._buttonCancel.TabIndex = 8;
            this._buttonCancel.Text = "Cancel";
            // 
            // IIsCreateSiteWindow
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(442, 144);
            this.Controls.Add(this._buttonCancel);
            this.Controls.Add(this._buttonSave);
            this.Controls.Add(this._buttonBrowse);
            this.Controls.Add(this._textBoxDirectory);
            this.Controls.Add(this._labelDirectory);
            this.Controls.Add(this._textBoxPort);
            this.Controls.Add(this._textBoxDescription);
            this.Controls.Add(this._labelPort);
            this.Controls.Add(this._labelDescription);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "IIsCreateSiteWindow";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Create New Site";
            this.ResumeLayout(false);

        }
        #endregion
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩绯色av一区二区在线观看 | 欧美aa在线视频| 久久久亚洲精品一区二区三区| 色综合天天狠狠| 精品一区二区在线观看| 亚洲免费毛片网站| 久久午夜羞羞影院免费观看| 91国偷自产一区二区开放时间| 国产在线播放一区三区四| 亚洲国产日韩av| 国产精品麻豆99久久久久久| 精品欧美一区二区在线观看| 欧洲一区在线电影| av资源网一区| 国产99久久久国产精品潘金| 美女被吸乳得到大胸91| 亚洲大片一区二区三区| 中文字幕日韩av资源站| 久久精品亚洲精品国产欧美| 日韩精品一区国产麻豆| 欧美体内she精视频| 色悠久久久久综合欧美99| 国产成人精品免费一区二区| 国产一区三区三区| 免费av成人在线| 丝袜a∨在线一区二区三区不卡| 亚洲人成亚洲人成在线观看图片 | 亚洲va中文字幕| 亚洲免费观看在线视频| 国产精品高潮久久久久无| 国产欧美日韩精品a在线观看| 日韩欧美中文字幕一区| 欧美高清精品3d| 欧美精品tushy高清| 欧美日韩精品一二三区| 欧美色图激情小说| 欧美视频完全免费看| 99精品久久久久久| 成人av网站免费| 成人福利视频在线| 成人av影视在线观看| 国产精品一区一区三区| 懂色av一区二区三区免费观看| 中文字幕一区二区三区av| 欧美日韩视频在线第一区 | 秋霞电影网一区二区| 夜夜嗨av一区二区三区四季av| 国产精品毛片久久久久久| 国产欧美一区二区精品久导航| 日韩视频免费观看高清完整版| 欧美色国产精品| 一区二区三区日韩欧美| 欧美大黄免费观看| 欧美色网站导航| 国产精品一级片| 日本亚洲免费观看| 亚洲欧美另类久久久精品2019| 精品福利一二区| 7777女厕盗摄久久久| 成人性视频网站| 日本成人超碰在线观看| 亚洲国产精品一区二区久久| 中文字幕在线不卡| 国产日韩欧美精品电影三级在线| 91精品国产91久久综合桃花| 色婷婷综合久久久中文一区二区| 粉嫩久久99精品久久久久久夜| 国产麻豆午夜三级精品| 捆绑变态av一区二区三区 | 国产精品人成在线观看免费| 欧美探花视频资源| 久久国内精品自在自线400部| 爽好久久久欧美精品| 亚洲综合一二三区| 一区二区三区四区不卡在线| 国产精品另类一区| 国产精品污www在线观看| 国产喂奶挤奶一区二区三区| 精品国产髙清在线看国产毛片| 欧美精品丝袜久久久中文字幕| 欧美色国产精品| 欧美日韩精品综合在线| 欧美一级午夜免费电影| 91精品国产一区二区三区香蕉 | 99re6这里只有精品视频在线观看| 粉嫩高潮美女一区二区三区 | 在线视频欧美区| 91精彩视频在线| 欧美日韩亚洲综合一区| 欧美日韩色一区| 日韩欧美另类在线| 久久久久久久久久美女| 久久久精品蜜桃| 中国色在线观看另类| 亚洲欧美福利一区二区| 樱花影视一区二区| 婷婷中文字幕综合| 美女免费视频一区| 国产成人亚洲精品青草天美| 成人激情免费网站| 色综合视频在线观看| 欧美精品一卡二卡| 26uuu国产电影一区二区| 欧美激情一区二区三区蜜桃视频| 国产精品美女久久久久久久| 亚洲一区日韩精品中文字幕| 日韩激情视频在线观看| 国内精品伊人久久久久av一坑| 国产福利一区在线| 欧美网站大全在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 国产精品三级在线观看| 亚洲在线观看免费| 国产一区二区三区在线观看免费视频 | 欧美裸体一区二区三区| 亚洲精品在线观| 一区二区三区在线播放| 激情国产一区二区| 在线免费精品视频| 日韩欧美精品在线| 亚洲女同ⅹxx女同tv| 日韩中文字幕一区二区三区| 高清av一区二区| 欧美日本一区二区| 欧美极品aⅴ影院| 三级欧美在线一区| 成人黄色小视频| 日韩欧美一二区| 亚洲免费在线视频一区 二区| 麻豆精品一二三| 色婷婷狠狠综合| 久久蜜桃av一区精品变态类天堂| 亚洲一区在线看| 成人中文字幕合集| 欧美一区2区视频在线观看| 一区二区中文视频| 国产一区二区看久久| 欧美日韩国产高清一区二区| 国产精品毛片无遮挡高清| 激情图片小说一区| 欧美美女一区二区| 亚洲人妖av一区二区| 国产呦萝稀缺另类资源| 欧美一区二区视频免费观看| 亚洲精品高清在线| 成人黄色片在线观看| 欧美成人艳星乳罩| 天天色综合天天| 欧美三级视频在线| 亚洲婷婷综合久久一本伊一区| 韩国女主播成人在线观看| 欧美色综合网站| 亚洲妇女屁股眼交7| 色综合天天综合网天天狠天天| 久久久不卡影院| 精品在线观看视频| 91精品国产综合久久久久久久久久| 亚洲免费在线电影| 色婷婷久久久亚洲一区二区三区| 国产欧美日韩亚州综合| 国产毛片精品一区| 久久久久国产精品人| 韩国精品在线观看| 久久亚洲春色中文字幕久久久| 美国欧美日韩国产在线播放| 日韩一级免费一区| 日本vs亚洲vs韩国一区三区| 欧美美女bb生活片| 日韩影院在线观看| 这里只有精品电影| 免费观看日韩av| 精品日韩一区二区三区免费视频| 精品一区二区综合| 久久久久久一级片| 成人精品在线视频观看| 国产嫩草影院久久久久| 99免费精品视频| 亚洲欧美日韩国产手机在线| 色噜噜夜夜夜综合网| 一区二区三区在线免费观看 | 欧美三级视频在线| 五月天婷婷综合| 日韩欧美成人激情| 国产一区二区三区四区五区入口 | 欧美日韩在线亚洲一区蜜芽| 亚洲综合色婷婷| 欧美日韩激情一区| 秋霞午夜av一区二区三区| 欧美精品一区二区三| 丁香婷婷综合激情五月色| 国产精品麻豆欧美日韩ww| 91福利区一区二区三区| 日韩精品色哟哟| 国产亚洲欧美在线| 91精品福利视频| 老司机一区二区| 亚洲欧洲精品成人久久奇米网| 9色porny自拍视频一区二区| 午夜欧美电影在线观看| 精品国产乱码久久久久久久|