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

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

?? progress.cs

?? 對ima、imz壓縮文件修改
?? CS
?? 第 1 頁 / 共 3 頁
字號:
        public void SetRange_Primary(int minimum, int maximum)
        {
            initEvent.WaitOne();
            Invoke(new RangeInvoker(DoSetRange_Primary), new object[] { minimum, maximum });
        }
        /// <summary>
        /// Call this method from the worker thread to increase the progress counter by a specified value.
        /// </summary>
        /// <param name="val">The amount by which to increment the progress indicator</param>
        public void Increment_Primary(int val)
        {
            Invoke(new IncrementInvoker(DoIncrement), new object[] { val });
        }
        /// <summary>
        /// Call this method from the worker thread to step the progress meter to a particular value.
        /// </summary>
        /// <param name="val"></param>
        public void StepTo_Primary(int val)
        {
            Invoke(new StepToInvoker(DoStepTo), new object[] { val });
        }

        /// <summary>
        /// Call this method from the worker thread to reset the range in the progress callback
        /// for the secondary progressbar
        /// </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>
        public void SetRange_Secondary(int minimum, int maximum)
        {
            initEvent.WaitOne();
            Invoke(new RangeInvoker(DoSetRange_Secondary), new object[] { minimum, maximum });
        }
        /// <summary>
        /// Call this method from the worker thread to increase the progress counter by a specified value.
        /// </summary>
        /// <param name="val">The amount by which to increment the progress indicator</param>
        public void Increment_Secondary(int val)
        {
            Invoke(new IncrementInvoker(DoIncrement_Secondary), new object[] { val });
        }
        /// <summary>
        /// Call this method from the worker thread to step the progress meter to a particular value.
        /// </summary>
        /// <param name="val"></param>
        public void StepTo_Secondary(int val)
        {
            Invoke(new StepToInvoker(DoStepTo_Secondary), new object[] { val });
        }

        /// <summary>
        /// If this property is true, then you should abort work
        /// </summary>
        public bool IsAborting
        {
            get { return abortEvent.WaitOne(0, false); }
        }
        public bool IsInitialized
        {
            get { return initialized; }
        }
        public int Stages { get { return 2; } }
        #endregion

        #region Implementation members invoked on the owner thread
        private void DoBegin()
        {
            titleRoot = Text;
            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);
            prgSecondary.Width = prgPrimary.Width;
            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)
        {
            prgSecondary.Minimum = minimum;
            prgSecondary.Maximum = maximum;
            prgSecondary.Value = minimum;
        }
        private void DoIncrement_Secondary(int val)
        {
            if (prgSecondary.Value < prgSecondary.Maximum)
            {
                if (val <= (prgSecondary.Maximum - prgSecondary.Value))  //If incrementing by val won't push us past the max
                    prgSecondary.Increment(val);
                else
                    prgSecondary.Value = prgSecondary.Maximum; //Otherwise, just set it to the max
            }
        }
        private void DoStepTo_Secondary(int val) { if (val < prgSecondary.Maximum) { prgSecondary.Value = val; } }
        #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.prgSecondary = new System.Windows.Forms.ProgressBar();
            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(11, 76);
            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(213, 89);
            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 System.EventHandler(this.cancelButton_Click);
            // 
            // prgSecondary
            // 
            this.prgSecondary.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.prgSecondary.Location = new System.Drawing.Point(11, 105);
            this.prgSecondary.Name = "prgSecondary";
            this.prgSecondary.Size = new System.Drawing.Size(196, 23);
            this.prgSecondary.TabIndex = 2;
            // 
            // TwoStageProgressWindow
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(294, 138);
            this.Controls.Add(this.prgSecondary);
            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 = "TwoStageProgressWindow";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Two Stage ProgressWindow";
            this.ResumeLayout(false);

        }
        #endregion

    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色94色欧美sute亚洲线路二 | 亚洲美腿欧美偷拍| 亚洲天堂网中文字| 九九**精品视频免费播放| 91在线免费看| 久久一留热品黄| 青青草91视频| 欧美亚洲动漫精品| 国产欧美精品一区二区色综合朱莉| 亚洲香肠在线观看| 91亚洲国产成人精品一区二区三| 欧美成人vps| 日本不卡的三区四区五区| 97se亚洲国产综合自在线| 日韩一本二本av| 视频一区视频二区在线观看| av成人老司机| 国产无一区二区| 捆绑紧缚一区二区三区视频| 欧美二区三区91| 亚洲无人区一区| 欧洲国内综合视频| 亚洲三级理论片| 99九九99九九九视频精品| 欧美精品一区二区在线观看| 青青青伊人色综合久久| 欧美三级视频在线观看| 亚洲一级片在线观看| 91婷婷韩国欧美一区二区| 中文字幕不卡一区| 丁香啪啪综合成人亚洲小说| 久久久国产精品午夜一区ai换脸| 韩国v欧美v亚洲v日本v| 久久久蜜桃精品| 国产精品一级在线| www国产亚洲精品久久麻豆| 日韩 欧美一区二区三区| 91精品国产综合久久久久| 亚洲妇熟xx妇色黄| 欧美日韩国产经典色站一区二区三区| 亚洲精品中文在线影院| 色狠狠一区二区三区香蕉| 亚洲主播在线播放| 欧美精品自拍偷拍| 免费精品视频在线| 久久综合久久鬼色| 不卡av免费在线观看| 亚洲欧美国产高清| 欧美主播一区二区三区| 午夜精品久久久久久久99水蜜桃| 欧美裸体一区二区三区| 秋霞午夜av一区二区三区| 欧美变态口味重另类| 国产精品羞羞答答xxdd| 亚洲国产精华液网站w| 97久久人人超碰| 亚州成人在线电影| 久久精品夜色噜噜亚洲aⅴ| jlzzjlzz亚洲女人18| 香蕉av福利精品导航| 久久女同互慰一区二区三区| 97精品国产露脸对白| 天天色综合天天| 中文字幕免费不卡| 欧美日韩不卡一区二区| 国产在线精品一区二区| 自拍偷拍亚洲综合| 日韩免费电影一区| 99re8在线精品视频免费播放| 天天av天天翘天天综合网| 久久综合狠狠综合久久激情 | 精品亚洲国内自在自线福利| 中文久久乱码一区二区| 欧美理论在线播放| 粉嫩aⅴ一区二区三区四区五区| 亚洲一二三四久久| 国产亚洲欧洲997久久综合| 欧美婷婷六月丁香综合色| 久久97超碰国产精品超碰| 日韩美女啊v在线免费观看| 日韩精品中文字幕在线不卡尤物| 不卡的av网站| 极品少妇xxxx精品少妇偷拍| 一区二区三区在线视频播放| 日韩精品影音先锋| 日本丶国产丶欧美色综合| 久久国产精品区| 亚洲永久免费视频| 国产精品久久久久一区二区三区共| 欧美日韩国产乱码电影| 日本精品一级二级| 高清不卡一二三区| 精品一区二区三区在线观看国产| 亚洲免费av观看| 国产精品久久久久7777按摩| 日韩一级二级三级精品视频| 色偷偷久久人人79超碰人人澡| 国产成人免费xxxxxxxx| 美美哒免费高清在线观看视频一区二区| 中文字幕综合网| 国产欧美日韩三区| 久久人人97超碰com| 欧美刺激午夜性久久久久久久 | 欧美tk—视频vk| 欧美日韩国产成人在线91| 一本一本大道香蕉久在线精品 | 日韩欧美国产综合| 欧美日韩国产首页| 欧美亚洲精品一区| 色综合一区二区| 91麻豆精东视频| 色综合久久久久久久久| 91视频在线观看| 91在线观看地址| 91在线观看污| 在线观看视频一区| 欧美日韩激情在线| 欧美日韩精品久久久| 欧美日韩国产首页| 日韩视频一区二区在线观看| 欧美一级xxx| 欧美精品一区视频| 中文av字幕一区| 亚洲精品老司机| 香蕉加勒比综合久久| 免费精品视频在线| 狠狠久久亚洲欧美| 成人精品在线视频观看| 成人99免费视频| 欧美午夜一区二区三区免费大片| 欧美日韩中文精品| 日韩三级av在线播放| 国产清纯白嫩初高生在线观看91| 国产精品久久久久影院亚瑟| 亚洲另类春色校园小说| 日韩电影在线一区| 国产乱人伦偷精品视频免下载| 成人国产精品免费网站| 色素色在线综合| 日韩欧美成人一区| 中文字幕一区二区三区四区不卡 | 欧美一区二区二区| 久久综合五月天婷婷伊人| 国产精品少妇自拍| 亚洲一区二区在线免费看| 日日噜噜夜夜狠狠视频欧美人| 黑人巨大精品欧美一区| 99在线精品观看| 4438x亚洲最大成人网| 26uuu精品一区二区| 一级精品视频在线观看宜春院| 日韩激情一二三区| www.亚洲精品| 欧美精品乱人伦久久久久久| 久久久综合视频| 一区二区三区在线观看网站| 美国一区二区三区在线播放| 白白色 亚洲乱淫| 91精品欧美综合在线观看最新| 久久精子c满五个校花| 亚洲成人一区在线| 成人99免费视频| 欧美v国产在线一区二区三区| 国产精品电影院| 精品在线免费观看| 精品视频在线看| 国产精品久久久久9999吃药| 麻豆91免费看| 欧美性xxxxx极品少妇| 久久久www免费人成精品| 一区二区理论电影在线观看| 国产一区二区0| 91精品黄色片免费大全| 亚洲精品免费看| 成人福利在线看| 26uuu另类欧美| 免费不卡在线视频| 欧美少妇性性性| 亚洲色图视频网| 国产精品亚洲成人| 欧美不卡123| 午夜久久福利影院| 欧美午夜不卡在线观看免费| 国产精品久久久久天堂| 狠狠色丁香久久婷婷综| 日韩一级免费一区| 日韩激情一区二区| 欧美肥妇bbw| 亚洲成人av一区二区三区| 91在线观看美女| 亚洲人成在线观看一区二区| 国产91精品一区二区麻豆网站| 2023国产一二三区日本精品2022| 蜜乳av一区二区| 日韩午夜在线观看| 美女视频黄免费的久久| 日韩一区二区高清| 另类欧美日韩国产在线| 欧美电影免费观看高清完整版| 老司机午夜精品|