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

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

?? progress.cs

?? 對ima、imz壓縮文件修改
?? CS
?? 第 1 頁 / 共 3 頁
字號:
            cancelButton.Enabled = true;
            ControlBox = true;
            initialized = true;
        }
        private void DoBegin(int minimum, int maximum)
        {
            DoBegin();
            DoSetRange_Primary(minimum, maximum);
        }
        private void DoBegin(bool AllowCancel)
        {
            titleRoot = Text;
            cancelButton.Enabled = AllowCancel;
            cancelButton.Visible = AllowCancel;
            ControlBox = AllowCancel;
            prgPrimary.Width = (AllowCancel ? 192 : 273);
            initialized = true;
        }

        private void DoEnd()
        {
            Close();
        }

        private void DoSetText(String text)
        {
            label.Text = text;
        }
        private void DoSetCaption(String text)
        {
            this.Text = text;
            titleRoot = Text;
        }

        private void DoSetRange_Primary(int minimum, int maximum)
        {
            prgPrimary.Minimum = minimum;
            prgPrimary.Maximum = maximum;
            prgPrimary.Value = minimum;
        }
        private void DoIncrement(int val)
        {
            if (prgPrimary.Value < prgPrimary.Maximum)
            {
                if (val <= (prgPrimary.Maximum - prgPrimary.Value))  //If incrementing by val won't push us past the max
                    prgPrimary.Increment(val);
                else
                    prgPrimary.Value = prgPrimary.Maximum; //Otherwise, just set it to the max
            }
            UpdateStatusText();
        }
        private void DoStepTo(int val)
        {
            if (val < prgPrimary.Maximum) { prgPrimary.Value = val; }
            UpdateStatusText();
        }

        private void DoSetRange_Secondary(int minimum, int maximum) { return; }
        private void DoIncrement_Secondary(int val) { return; }
        private void DoStepTo_Secondary(int val) { return; }
        #endregion

        #region Overrides
        /// <summary>
        /// Handles the form load, and sets an event to ensure that
        /// intialization is synchronized with the appearance of the form.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);
            ControlBox = false;
            initEvent.Set();
        }

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

        /// <summary>Handler for 'Close' clicking</summary>
        /// <param name="e"></param>
        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            requiresClose = false;
            AbortWork();
            base.OnClosing(e);
        }
        #endregion

        #region Implementation Utilities
        /// <summary>Utility function that formats and updates the title bar text</summary>
        private void UpdateStatusText() { Text = titleRoot + String.Format(" - {0}% complete", (prgPrimary.Value * 100) / (prgPrimary.Maximum - prgPrimary.Minimum)); }
        private void cancelButton_Click(object sender, EventArgs e) { AbortWork(); }
        /// <summary>Utility function to terminate the thread</summary>
        private void AbortWork()
        {
            titleRoot = "Aborting: " + titleRoot;
            this.cancelButton.Enabled = false;
            this.cancelButton.Text = "Cancelling";
            abortEvent.Set();
        }
        #endregion

        #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.prgPrimary = new System.Windows.Forms.ProgressBar();
            this.label = new System.Windows.Forms.Label();
            this.cancelButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // prgPrimary
            // 
            this.prgPrimary.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.prgPrimary.Location = new System.Drawing.Point(8, 77);
            this.prgPrimary.Margin = new System.Windows.Forms.Padding(0);
            this.prgPrimary.Name = "prgPrimary";
            this.prgPrimary.Size = new System.Drawing.Size(196, 23);
            this.prgPrimary.TabIndex = 1;
            // 
            // label
            // 
            this.label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.label.Location = new System.Drawing.Point(8, 8);
            this.label.Name = "label";
            this.label.Size = new System.Drawing.Size(276, 64);
            this.label.TabIndex = 0;
            this.label.Text = "Starting operation...";
            // 
            // cancelButton
            // 
            this.cancelButton.Anchor = System.Windows.Forms.AnchorStyles.Right;
            //this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.cancelButton.Enabled = false;
            this.cancelButton.Location = new System.Drawing.Point(210, 77);
            this.cancelButton.Margin = new System.Windows.Forms.Padding(0);
            this.cancelButton.Name = "cancelButton";
            this.cancelButton.Size = new System.Drawing.Size(75, 23);
            this.cancelButton.TabIndex = 3;
            this.cancelButton.Text = "Cancel";
            this.cancelButton.Click += new EventHandler(cancelButton_Click);
            // 
            // ProgressWindow
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(294, 108);
            this.Controls.Add(this.cancelButton);
            this.Controls.Add(this.prgPrimary);
            this.Controls.Add(this.label);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "ProgressWindow";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Single Stage ProgressWindow";
            this.ResumeLayout(false);

        }
        #endregion


    }
    internal class TwoStageProgressWindow : System.Windows.Forms.Form, IProgressCallback
    {
        private System.Windows.Forms.Button cancelButton;
        private System.Windows.Forms.Label label;
        private System.Windows.Forms.ProgressBar prgPrimary;
        private System.Windows.Forms.ProgressBar prgSecondary;

        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;

        public delegate void SetTextInvoker(String text);
        public delegate void IncrementInvoker(int val);
        public delegate void StepToInvoker(int val);
        public delegate void RangeInvoker(int minimum, int maximum);
        public delegate void CancelInvoker(bool AllowCancel);

        private System.Threading.ManualResetEvent initEvent = new System.Threading.ManualResetEvent(false);
        private System.Threading.ManualResetEvent abortEvent = new System.Threading.ManualResetEvent(false);
        private String titleRoot = "";
        private bool requiresClose = true;
        private bool initialized = false;

        public TwoStageProgressWindow()
        {
            // Required for Windows Form Designer support
            InitializeComponent();
        }

        #region Implementation of IProgressCallback
        /// <summary>
        /// Call this method from the worker thread to initialize
        /// the progress callback, without setting the range
        /// </summary>
        public void Begin()
        {
            initEvent.WaitOne();
            Invoke(new MethodInvoker(DoBegin));
        }
        /// <summary>
        /// Call this method from the worker thread to initialize
        /// the progress meter.
        /// </summary>
        /// <param name="minimum">The minimum value in the progress range (e.g. 0)</param>
        /// <param name="maximum">The maximum value in the progress range (e.g. 100)</param>
        public void Begin(int minimum, int maximum)
        {
            initEvent.WaitOne();
            Invoke(new RangeInvoker(DoBegin), new object[] { minimum, maximum });
        }
        /// <summary>
        /// Call this method from the worker thread to initialize
        /// the progress meter.
        /// </summary>
        /// <param name="AllowCancel">A boolean value that determines whether or not the cancel button is displayed.</param>
        public void Begin(bool AllowCancel)
        {
            initEvent.WaitOne();
            Invoke(new CancelInvoker(DoBegin), new object[] { AllowCancel });
        }

        /// <summary>
        /// Call this method from the worker thread to finalize the progress meter
        /// </summary>
        public void End()
        {
            if (requiresClose)
            {
                Invoke(new MethodInvoker(DoEnd));
            }
        }

        /// <summary>
        /// Call this method from the worker thread to update the form's caption.
        /// </summary>
        /// <param name="text">The caption text to display</param>
        public void SetCaption(String text)
        {
            Invoke(new SetTextInvoker(DoSetCaption), new object[] { text });
        }
        /// <summary>
        /// Call this method from the worker thread to update the progress text.
        /// </summary>
        /// <param name="text">The progress text to display</param>
        public void SetText(String text)
        {
            Invoke(new SetTextInvoker(DoSetText), new object[] { text });
        }

        /// <summary>
        /// Call this method from the worker thread to reset the range in the progress callback
        /// </summary>
        /// <param name="minimum">The minimum value in the progress range (e.g. 0)</param>
        /// <param name="maximum">The maximum value in the progress range (e.g. 100)</param>
        /// <remarks>You must have called one of the Begin() methods prior to this call.</remarks>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品久久精品| 亚洲欧美在线另类| 日本黄色一区二区| av色综合久久天堂av综合| 粉嫩一区二区三区性色av| 国产一区二区调教| 丁香婷婷综合激情五月色| 丰满白嫩尤物一区二区| 91亚洲精品久久久蜜桃网站| 色婷婷香蕉在线一区二区| 欧美影院一区二区三区| 91超碰这里只有精品国产| 日韩一区二区三区av| 精品久久久久香蕉网| 国产欧美日韩综合精品一区二区| 久久先锋影音av| 亚洲日本在线看| 青娱乐精品在线视频| 国产精品99久久久久久宅男| 色综合久久中文综合久久97| 欧美日韩一区高清| 久久久久久久综合狠狠综合| 亚洲欧美欧美一区二区三区| 日韩精品成人一区二区在线| 国产真实乱偷精品视频免| 99精品欧美一区二区三区小说| 欧美三级资源在线| 国产日韩一级二级三级| 亚洲电影你懂得| 国产一区二区福利视频| 欧美性色综合网| 中文字幕高清一区| 日韩成人一级大片| 成人激情校园春色| 日韩一级成人av| 136国产福利精品导航| 免费精品视频最新在线| 高清av一区二区| 欧美一区二区三区在线电影| 亚洲国产经典视频| 毛片一区二区三区| 欧美亚洲一区三区| 国产日本亚洲高清| 久久国产麻豆精品| 欧美日韩久久一区| 国产精品二区一区二区aⅴ污介绍| 午夜激情综合网| 91亚洲午夜精品久久久久久| 悠悠色在线精品| 国内久久婷婷综合| 欧美日韩国产综合一区二区| 国产精品卡一卡二| 国产在线国偷精品免费看| 欧美日韩免费一区二区三区| 国产女人18毛片水真多成人如厕| 日韩av一区二| 欧美三级视频在线观看| 亚洲视频在线一区| av在线综合网| 国产精品视频你懂的| 国产麻豆视频精品| 日韩欧美亚洲国产另类| 首页国产欧美久久| 欧美美女激情18p| 亚洲国产精品一区二区www在线| 成人高清免费观看| 中文字幕乱码一区二区免费| 国产精一区二区三区| 久久综合久久综合九色| 国产一区二区在线观看视频| 2017欧美狠狠色| 国产一区二区中文字幕| 久久九九久精品国产免费直播| 激情综合色综合久久| 精品国产乱码久久久久久夜甘婷婷| 日日夜夜精品视频免费| 777亚洲妇女| 喷白浆一区二区| 26uuuu精品一区二区| 国产剧情在线观看一区二区| 久久品道一品道久久精品| 国产在线观看免费一区| 久久精品亚洲一区二区三区浴池| 国产一区欧美一区| 国产精品久线在线观看| 91视频91自| 天使萌一区二区三区免费观看| 欧美巨大另类极品videosbest| 蜜桃av一区二区三区| 久久久精品欧美丰满| av毛片久久久久**hd| 一区二区三区美女| 欧美精品自拍偷拍动漫精品| 精品制服美女丁香| 中文字幕国产精品一区二区| 91成人免费网站| 欧美a一区二区| 国产精品电影一区二区三区| 91黄视频在线观看| 精品一二三四区| 日韩一区有码在线| 在线看一区二区| 麻豆精品在线播放| 中文字幕日韩av资源站| 91精品综合久久久久久| 国产**成人网毛片九色| 亚洲国产综合视频在线观看| 精品久久久久av影院 | 欧美大片一区二区三区| 成人午夜av在线| 亚洲午夜三级在线| 久久亚洲捆绑美女| 欧美三级日韩三级国产三级| 狠狠色综合日日| 亚洲一区二区三区爽爽爽爽爽| 日韩女同互慰一区二区| 日本韩国欧美在线| 岛国精品一区二区| 日韩不卡在线观看日韩不卡视频| 国产精品色眯眯| 精品福利视频一区二区三区| av不卡免费电影| 国内久久婷婷综合| 日韩精品一二三区| 亚洲永久免费av| 国产精品久线在线观看| 欧美成人三级电影在线| 在线精品视频小说1| 国产成人精品一区二区三区四区| 亚洲成av人片一区二区梦乃 | 亚洲夂夂婷婷色拍ww47| 国产婷婷一区二区| 日韩精品一区二区三区四区 | 精品国产91久久久久久久妲己| 欧洲中文字幕精品| 色综合中文字幕国产| 国产盗摄精品一区二区三区在线| 午夜久久电影网| 亚洲国产精品尤物yw在线观看| 中文字幕一区二区三区精华液| 精品粉嫩超白一线天av| 日韩视频一区在线观看| 欧美挠脚心视频网站| 欧美性受xxxx黑人xyx| 91社区在线播放| 色综合久久天天| 91老司机福利 在线| eeuss鲁片一区二区三区在线看| 国产乱淫av一区二区三区| 国内外精品视频| 韩国女主播一区| 国产精品综合久久| 国产剧情av麻豆香蕉精品| 狠狠色综合色综合网络| 国产高清精品在线| 粉嫩aⅴ一区二区三区四区五区| 国产成人免费视频一区| 国产成人av一区| 成人国产视频在线观看| 91热门视频在线观看| 欧美婷婷六月丁香综合色| 欧美日韩免费一区二区三区| 日韩一区二区精品葵司在线| 精品久久一区二区| 国产精品网站导航| 尤物av一区二区| 日韩中文字幕一区二区三区| 免费观看在线综合| 国产一区欧美一区| 成人app软件下载大全免费| 91香蕉视频污在线| 欧美二区在线观看| 亚洲精品一区二区三区在线观看| 国产欧美精品区一区二区三区| 国产精品高潮呻吟久久| 亚洲制服欧美中文字幕中文字幕| 热久久一区二区| 国产99一区视频免费| 在线观看欧美精品| 日韩免费观看高清完整版| 中文字幕精品综合| 日韩中文字幕麻豆| 成年人国产精品| 欧美一区二区视频观看视频| 国产欧美日韩卡一| 婷婷综合五月天| 成人小视频免费在线观看| 欧美私模裸体表演在线观看| 精品免费日韩av| 亚洲一区二区三区四区五区中文| 久久精品国产成人一区二区三区| 成人avav影音| 日韩欧美中文字幕一区| 亚洲色图都市小说| 国产一区二区三区四| 欧美精品日日鲁夜夜添| 国产精品色呦呦| 久久9热精品视频| 欧美久久久久久久久中文字幕| 国产日韩欧美精品一区|