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

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

?? splashappcontext.cs

?? c#下做的啟動界面
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace SplashSample
{
	public class SplashAppContext : ApplicationContext
	{
		Form mainForm = null;
		Timer splashTimer = new Timer();		

		public SplashAppContext(Form mainForm, Form splashForm) : base(splashForm)
		{
			this.mainForm = mainForm;
	
			splashTimer.Tick += new EventHandler(SplashTimeUp);
			splashTimer.Interval = 2000;
			splashTimer.Enabled = true;
		}

		/// <summary>
		/// This is the timer event handler.  We use the timer to tell the ApplicationContext 
		/// that the splash screen is ready to be closed.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void SplashTimeUp(object sender, EventArgs e)
		{
			//This is called if the splash is ready to be closed.  In order to do this
			//we first dispose of the timer (we dont need any leaks do we?) and then
			//call the base.MainForm.Close function which will triger the MainFormClosed event
			//that we overrode so we can set the Application Context's main form as the 
			//main form the user passed into the constructor.
		
			splashTimer.Enabled = false;
			splashTimer.Dispose();

			base.MainForm.Close();			
		}

		/// <summary>
		/// Normaly, if not overridden, this event will call ExitThreadCore function.
		/// We have overridden it to catch when the splash form has closed.  When the
		/// spash form closes, we want to set the main form passed in the contructor to
		/// the base.MainForm property.  when the main form closes, this override will be
		/// called again, and we just pass the call onto the base.OnMainFormClosed, with will
		/// tells the Application object to terminate the UI thread.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected override void OnMainFormClosed(object sender, EventArgs e)
		{
			if (sender is Splash)
			{
				base.MainForm = this.mainForm;
				base.MainForm.Show();
			}
			else if (sender is Form1)
			{
				base.OnMainFormClosed(sender, e);
			}
		}

		/// <summary>
		/// This sets how long the spash form will show once it is at 100% opacity.  Default is 2 seconds.
		/// </summary>
		public int SecondsSplashShown
		{
			set
			{
				splashTimer.Interval = value * 1000;				
			}
		}
	}



	public class SplashFadeAppContext : ApplicationContext
	{
		/// <summary>
		/// Internal flags to tell process what state the splash form is in
		/// </summary>
		private enum FormStatus
		{
			Open = 1,
			Opening = 2,
			Closing = 4,
			Closed = 8
		}

		private FormStatus formStatus = FormStatus.Open;
		private Form mainForm = null;
		private Timer splashTimer = new Timer();						
		private int showSplashInterval = 2000;
		private int fadeInterval = 50;		
		private bool doFadeClose = false;
		

		public SplashFadeAppContext(Form mainForm, Form splashForm) : base(splashForm)
		{			
			this.mainForm = mainForm;
			
			splashTimer.Tick += new EventHandler(SplashTimeUp);
			splashTimer.Interval = fadeInterval;
			splashTimer.Enabled = true;
		}

		/// <summary>
		/// This is the timer event that controls what our spash screen does.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void SplashTimeUp(object sender, EventArgs e)
		{						
			if (formStatus == FormStatus.Opening)
			{
				//if the splash is opening, the opacity will increase in increments of 5 until it is fully
				//shown.  Once it is fully opacic, it sets the status flag to open.
				if (base.MainForm.Opacity < 1)
					base.MainForm.Opacity += .05;
				else								
					formStatus = FormStatus.Open;									
			}
			else if (formStatus == FormStatus.Closing)
			{
				//if the splash is closing, the opacity will decrease in increments of 5 until it is fully
				//hidden.  Once it is fully transparent, it sets the status flag to closed.
				if (base.MainForm.Opacity > .10)
				{
					base.MainForm.Opacity -= .05;
					splashTimer.Interval = fadeInterval;
				}
				else
				{
					formStatus = FormStatus.Closed;					
				}
			}
			else if (formStatus == FormStatus.Open)
			{
				//Once the splash is open and fully shown, the timer interval is set to the splash delay setting,
				//which is defaulted to 2 seconds, and then sets the status flag depending on if the user
				//wants to just close the splash or fade it out.
				splashTimer.Interval = showSplashInterval;				

				if (doFadeClose)
					formStatus = FormStatus.Closing;
				else
					formStatus = FormStatus.Closed;				
			}			
			else if(formStatus == FormStatus.Closed)
			{
				//This is called if the splash is ready to be closed.  In order to do this
				//we first dispose of the timer (we dont need any leaks do we?) and then
				//call the base.MainForm.Close function which will triger the MainFormClosed event
				//that we overrode so we can set the Application Context's main form as the 
				//main form the user passed into the constructor.
				splashTimer.Enabled = false;
				splashTimer.Dispose();
				base.MainForm.Close();
			}
		}

		/// <summary>
		/// Normaly, if not overridden, this event will call ExitThreadCore function.
		/// We have overridden it to catch when the splash form has closed.  When the
		/// spash form closes, we want to set the main form passed in the contructor to
		/// the base.MainForm property.  when the main form closes, this override will be
		/// called again, and we just pass the call onto the base.OnMainFormClosed, with will
		/// tells the Application object to terminate the UI thread.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected override void OnMainFormClosed(object sender, EventArgs e)
		{
			if (sender is Splash)
			{
				base.MainForm = this.mainForm;
				base.MainForm.Show();
			}
			else if (sender is Form1)
			{
				base.OnMainFormClosed(sender, e);
			}
		}

		#region Public Properties

		/// <summary>
		/// Bool that determines if spash form will fade up from 0% opacity to 100% when 
		/// the spash form opens.  Default is false.
		/// </summary>
		public bool DoFadeOpen
		{
			set
			{
				if (value == true)
				{
					base.MainForm.Opacity = 0;
					formStatus = FormStatus.Opening;
				}
			}
		}

		/// <summary>
		/// Bool that determines if spash form will fade down from 100% opacity to 0% when 
		/// the spash form closes.  Default is false.
		/// </summary>
		public bool DoFadeClose
		{
			set
			{
				doFadeClose = value;
			}
		}

		/// <summary>
		/// This sets how long the spash form will show once it is at 100% opacity.  Default is 2 seconds.
		/// </summary>
		public int SecondsSplashShown
		{
			set
			{
				showSplashInterval = value * 1000;
			}
		}
		#endregion Public Properties
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品69毛片高清亚洲| 2023国产精品| 色综合久久中文字幕综合网 | 国产一区视频在线看| 免费看日韩精品| 日韩av在线发布| 日本aⅴ亚洲精品中文乱码| 水蜜桃久久夜色精品一区的特点| 伊人婷婷欧美激情| 一区二区三区四区国产精品| 亚洲精品日韩一| 亚洲一区二区在线观看视频 | 国内精品伊人久久久久影院对白| 美国欧美日韩国产在线播放| 奇米精品一区二区三区在线观看 | ...av二区三区久久精品| 18成人在线观看| 一区二区高清在线| 亚洲国产成人高清精品| 日韩专区一卡二卡| 久草精品在线观看| 国产精品18久久久久久久久久久久 | 精品国产一二三| 国产欧美日韩在线观看| 亚洲天堂2016| 三级亚洲高清视频| 久久er精品视频| 国产成人午夜99999| eeuss鲁片一区二区三区在线看| 91精品1区2区| 欧美一级电影网站| 国产调教视频一区| 亚洲天堂免费看| 日本不卡视频在线| 国产不卡视频在线播放| 色吊一区二区三区| 欧美一级免费大片| 国产精品免费丝袜| 亚洲bdsm女犯bdsm网站| 国产美女精品在线| 色8久久人人97超碰香蕉987| 欧美日韩国产一级二级| 久久精品在线免费观看| 亚洲六月丁香色婷婷综合久久 | 色噜噜狠狠色综合中国| 在线电影国产精品| 久久久高清一区二区三区| 一区二区三区欧美在线观看| 蜜臀久久99精品久久久画质超高清| 久久99精品久久久| 色综合天天综合网天天看片| 欧美一级一级性生活免费录像| 中国av一区二区三区| 午夜久久久久久久久| 国产成人综合网| 欧美日韩免费一区二区三区 | 国产激情视频一区二区三区欧美 | 亚洲欧美激情小说另类| 久久99久久精品| 91福利社在线观看| 久久亚洲捆绑美女| 日韩精品免费视频人成| 成人免费看的视频| 日韩午夜在线播放| 一区二区欧美视频| 国产.欧美.日韩| 91精品国产一区二区三区蜜臀 | 五月激情综合婷婷| 东方aⅴ免费观看久久av| 欧美乱妇20p| 亚洲三级小视频| 国产精品一卡二| 日韩一区二区免费视频| 一区av在线播放| 成人一区二区三区视频| 精品播放一区二区| 无码av免费一区二区三区试看| www.久久精品| 国产欧美精品一区| 久久成人麻豆午夜电影| 在线播放/欧美激情| 亚洲综合在线第一页| 暴力调教一区二区三区| 国产日韩三级在线| 久久99国产精品麻豆| 91精品午夜视频| 亚洲国产视频直播| 色狠狠av一区二区三区| 中文字幕日韩一区二区| 国产成人自拍网| 欧美成人aa大片| 蜜桃av噜噜一区| 7777精品伊人久久久大香线蕉完整版 | 亚洲国产精品影院| 91福利小视频| 亚洲精品写真福利| 波多野结衣中文字幕一区 | 亚洲欧美日韩电影| 成人动漫中文字幕| 中文字幕不卡一区| 国产成人免费在线观看不卡| 精品国产1区二区| 国模冰冰炮一区二区| 欧美成人三级在线| 精品制服美女丁香| 精品少妇一区二区三区在线播放| 日本午夜一区二区| 日韩一区二区三区av| 久久精品噜噜噜成人av农村| 日韩三级高清在线| 国内精品伊人久久久久av影院| 久久婷婷成人综合色| 国产做a爰片久久毛片| 久久综合九色欧美综合狠狠| 激情文学综合丁香| 久久久久国产精品免费免费搜索| 国产精品一区二区男女羞羞无遮挡 | 在线视频你懂得一区二区三区| 亚洲精品中文在线| 欧美日韩一区不卡| 日韩在线卡一卡二| 欧美大肚乱孕交hd孕妇| 国产成人丝袜美腿| 日韩理论片一区二区| 91国产精品成人| 日韩一区精品字幕| 欧美精品一区二区三区蜜臀| 国产成人8x视频一区二区| 国产精品久久久爽爽爽麻豆色哟哟| 97se亚洲国产综合自在线观| 亚洲国产一区二区在线播放| 日韩欧美一区二区在线视频| 国产一区91精品张津瑜| 国产精品免费网站在线观看| 在线中文字幕不卡| 秋霞午夜鲁丝一区二区老狼| 久久精品亚洲精品国产欧美| 99re热视频精品| 偷拍亚洲欧洲综合| 精品国产一区二区亚洲人成毛片 | 日韩亚洲欧美成人一区| 国产精品白丝jk黑袜喷水| 亚洲精品免费在线播放| 欧美嫩在线观看| 国产老女人精品毛片久久| 亚洲欧美日韩国产另类专区| 91精品国产免费| 国产成人av在线影院| 亚洲精品免费播放| 欧美mv日韩mv国产网站app| 91亚洲精品一区二区乱码| 日韩av不卡在线观看| 国产精品久久久久久久午夜片| 欧美亚洲尤物久久| 国产一区二区看久久| 一区二区激情视频| 国产性色一区二区| 欧美日韩中文字幕一区二区| 韩国av一区二区三区四区| 亚洲精品成人精品456| 精品国产亚洲一区二区三区在线观看 | 成人app在线观看| 免费精品视频在线| 亚洲人成在线观看一区二区| 日韩视频免费观看高清完整版在线观看| 成人午夜看片网址| 日韩精品久久理论片| 亚洲欧洲av一区二区三区久久| 日韩限制级电影在线观看| 色久优优欧美色久优优| 国产成人欧美日韩在线电影| 日韩国产成人精品| 亚洲精品第1页| 国产精品网站在线播放| 日韩精品在线一区| 在线观看91视频| 99国产精品99久久久久久| 国产九色sp调教91| 日本不卡免费在线视频| 亚洲一区二区三区四区的| 中文字幕 久热精品 视频在线| 欧美一级片在线| 欧美人xxxx| 欧美亚洲综合另类| 91美女片黄在线| 懂色av噜噜一区二区三区av| 国产一区二区三区免费看| 青青草精品视频| 日韩中文字幕91| 亚洲一区二区三区激情| 最新国产成人在线观看| 国产欧美精品国产国产专区 | 亚洲宅男天堂在线观看无病毒| 久久精品人人爽人人爽| 精品国产青草久久久久福利| 欧美一区二区在线免费播放 | 悠悠色在线精品| 亚洲男同性视频| 亚洲欧洲日韩在线| 中文字幕一区二区三区乱码在线|