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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? d3dsettingsform.cs

?? Particle System Test Application on C#
?? CS
?? 第 1 頁 / 共 3 頁
字號:
		// 
		this.refreshRateComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.refreshRateComboBox.DropDownWidth = 144;
		this.refreshRateComboBox.Location = new System.Drawing.Point(161, 118);
		this.refreshRateComboBox.MaxDropDownItems = 14;
		this.refreshRateComboBox.Name = "refreshRateComboBox";
		this.refreshRateComboBox.Size = new System.Drawing.Size(232, 21);
		this.refreshRateComboBox.TabIndex = 7;
		this.refreshRateComboBox.SelectedIndexChanged += new System.EventHandler(this.RefreshRateChanged);
		// 
		// adapterFormatLabel
		// 
		this.adapterFormatLabel.Location = new System.Drawing.Point(8, 72);
		this.adapterFormatLabel.Name = "adapterFormatLabel";
		this.adapterFormatLabel.Size = new System.Drawing.Size(152, 23);
		this.adapterFormatLabel.TabIndex = 2;
		this.adapterFormatLabel.Text = "Adapter F&ormat:";
		// 
		// refreshRateLabel
		// 
		this.refreshRateLabel.Location = new System.Drawing.Point(8, 118);
		this.refreshRateLabel.Name = "refreshRateLabel";
		this.refreshRateLabel.Size = new System.Drawing.Size(152, 23);
		this.refreshRateLabel.TabIndex = 6;
		this.refreshRateLabel.Text = "R&efresh Rate:";
		// 
		// okButton
		// 
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Location = new System.Drawing.Point(112, 464);
		this.okButton.Name = "okButton";
		this.okButton.TabIndex = 3;
		this.okButton.Text = "OK";
		// 
		// modeSettingsGroupBox
		// 
		this.modeSettingsGroupBox.Controls.AddRange(new System.Windows.Forms.Control[] {
																						   this.adapterFormatLabel,
																						   this.refreshRateLabel,
																						   this.resolutionComboBox,
																						   this.adapterFormatComboBox,
																						   this.resolutionLabel,
																						   this.refreshRateComboBox,
																						   this.windowedRadioButton,
																						   this.fullscreenRadioButton});
		this.modeSettingsGroupBox.Location = new System.Drawing.Point(16, 96);
		this.modeSettingsGroupBox.Name = "modeSettingsGroupBox";
		this.modeSettingsGroupBox.Size = new System.Drawing.Size(400, 160);
		this.modeSettingsGroupBox.TabIndex = 1;
		this.modeSettingsGroupBox.TabStop = false;
		this.modeSettingsGroupBox.Text = "Display mode settings";
		// 
		// adapterFormatComboBox
		// 
		this.adapterFormatComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.adapterFormatComboBox.DropDownWidth = 121;
		this.adapterFormatComboBox.Location = new System.Drawing.Point(161, 70);
		this.adapterFormatComboBox.MaxDropDownItems = 14;
		this.adapterFormatComboBox.Name = "adapterFormatComboBox";
		this.adapterFormatComboBox.Size = new System.Drawing.Size(232, 21);
		this.adapterFormatComboBox.TabIndex = 3;
		this.adapterFormatComboBox.SelectedValueChanged += new System.EventHandler(this.AdapterFormatChanged);
		// 
		// D3DSettingsForm
		// 
		this.AcceptButton = this.okButton;
		this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
		this.CancelButton = this.cancelButton;
		this.ClientSize = new System.Drawing.Size(438, 512);
		this.Controls.AddRange(new System.Windows.Forms.Control[] {
																	  this.cancelButton,
																	  this.okButton,
																	  this.adapterDeviceGroupBox,
																	  this.modeSettingsGroupBox,
																	  this.otherSettingsGroupBox});
		this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
		this.MaximizeBox = false;
		this.Name = "D3DSettingsForm";
		this.Text = "Direct3D Settings";
		this.adapterDeviceGroupBox.ResumeLayout(false);
		this.otherSettingsGroupBox.ResumeLayout(false);
		this.modeSettingsGroupBox.ResumeLayout(false);
		this.ResumeLayout(false);

	}
	#endregion


    
    
    /// <summary>
	/// Respond to a change of selected adapter by rebuilding the device 
	/// list.  Updating the selected device will trigger updates of the 
	/// rest of the dialog.
	/// </summary>
	private void AdapterChanged(object sender, System.EventArgs e)
	{
		GraphicsAdapterInfo adapterInfo = (GraphicsAdapterInfo)adapterComboBox.SelectedItem;
		settings.AdapterInfo = adapterInfo;

		// Update device combo box
		deviceComboBox.Items.Clear();
		foreach (GraphicsDeviceInfo deviceInfo in adapterInfo.DeviceInfoList)
		{
			deviceComboBox.Items.Add(deviceInfo);
			if (deviceInfo.DevType == settings.DevType)
				deviceComboBox.SelectedItem = deviceInfo;
		}
		if (deviceComboBox.SelectedItem == null && deviceComboBox.Items.Count > 0)
			deviceComboBox.SelectedIndex = 0;
	}




	/// <summary>
	/// Respond to a change of selected device by resetting the 
	/// fullscreen/windowed radio buttons.  Updating these buttons
	/// will trigger updates of the rest of the dialog.
	/// </summary>
	private void DeviceChanged(object sender, System.EventArgs e)
	{
		GraphicsAdapterInfo adapterInfo = (GraphicsAdapterInfo)adapterComboBox.SelectedItem;
		GraphicsDeviceInfo deviceInfo = (GraphicsDeviceInfo)deviceComboBox.SelectedItem;

		settings.DeviceInfo = deviceInfo;

		// Update fullscreen/windowed radio buttons
		bool HasWindowedDeviceCombo = false;
		bool HasFullscreenDeviceCombo = false;
		foreach (DeviceCombo deviceCombo in deviceInfo.DeviceComboList)
		{
			if (deviceCombo.IsWindowed)
				HasWindowedDeviceCombo = true;
			else
				HasFullscreenDeviceCombo = true;
		}
		windowedRadioButton.Enabled = HasWindowedDeviceCombo;
		fullscreenRadioButton.Enabled = HasFullscreenDeviceCombo;
		if (settings.IsWindowed && HasWindowedDeviceCombo)
		{
			windowedRadioButton.Checked = true;
		}
		else
		{
			fullscreenRadioButton.Checked = true;
		}
		WindowedFullscreenChanged(null, null);
	}




	/// <summary>
	/// Respond to a change of windowed/fullscreen state by rebuilding the
	/// adapter format list, resolution list, and refresh rate list.
	/// Updating the selected adapter format will trigger updates of the 
	/// rest of the dialog.
	/// </summary>
	private void WindowedFullscreenChanged(object sender, System.EventArgs e)
	{
		GraphicsAdapterInfo adapterInfo = (GraphicsAdapterInfo)adapterComboBox.SelectedItem;
		GraphicsDeviceInfo deviceInfo = (GraphicsDeviceInfo)deviceComboBox.SelectedItem;

		if (windowedRadioButton.Checked)
		{
			settings.IsWindowed = true;
			settings.WindowedAdapterInfo = adapterInfo;
			settings.WindowedDeviceInfo = deviceInfo;

			// Update adapter format combo box
			adapterFormatComboBox.Items.Clear();
			adapterFormatComboBox.Items.Add(settings.WindowedDisplayMode.Format);
			adapterFormatComboBox.SelectedIndex = 0;
			adapterFormatComboBox.Enabled = false;

			// Update resolution combo box
			resolutionComboBox.Items.Clear();
			resolutionComboBox.Items.Add(FormatResolution(settings.WindowedDisplayMode.Width, 
				settings.WindowedDisplayMode.Height));
			resolutionComboBox.SelectedIndex = 0;
			resolutionComboBox.Enabled = false;

			// Update refresh rate combo box
			refreshRateComboBox.Items.Clear();
			refreshRateComboBox.Items.Add(FormatRefreshRate(settings.WindowedDisplayMode.RefreshRate));
			refreshRateComboBox.SelectedIndex = 0;
			refreshRateComboBox.Enabled = false;
		}
		else
		{
			settings.IsWindowed = false;
			settings.FullscreenAdapterInfo = adapterInfo;
			settings.FullscreenDeviceInfo = deviceInfo;

			// Update adapter format combo box
			adapterFormatComboBox.Items.Clear();
			foreach (DeviceCombo deviceCombo in deviceInfo.DeviceComboList)
			{
				if (deviceCombo.IsWindowed)
					continue;
				if (!adapterFormatComboBox.Items.Contains(deviceCombo.AdapterFormat))
				{
					adapterFormatComboBox.Items.Add(deviceCombo.AdapterFormat);
					if (deviceCombo.AdapterFormat == (settings.IsWindowed ? 
						settings.WindowedDisplayMode.Format : settings.FullscreenDisplayMode.Format))
					{
						adapterFormatComboBox.SelectedItem = deviceCombo.AdapterFormat;
					}
				}
			}
			if (adapterFormatComboBox.SelectedItem == null && adapterFormatComboBox.Items.Count > 0)
				adapterFormatComboBox.SelectedIndex = 0;
			adapterFormatComboBox.Enabled = true;
			
			// Update resolution combo box
			resolutionComboBox.Enabled = true;
			
			// Update refresh rate combo box
			refreshRateComboBox.Enabled = true;
		}
	}




	/// <summary>
	/// Converts the given width and height into a formatted string
	/// </summary>
	private string FormatResolution(int width, int height)
	{
		System.Text.StringBuilder sb = new System.Text.StringBuilder(20);
		sb.AppendFormat("{0} by {1}", width, height);
		return sb.ToString();
	}




	/// <summary>
	/// Converts the given refresh rate into a formatted string
	/// </summary>
	private string FormatRefreshRate(int refreshRate)
	{
		if (refreshRate == 0)
		{
			return "Default Rate";
		}
		else
		{
			System.Text.StringBuilder sb = new System.Text.StringBuilder(20);
			sb.AppendFormat("{0} Hz", refreshRate);
			return sb.ToString();
		}
	}




	/// <summary>
	/// Respond to a change of selected adapter format by rebuilding the
	/// resolution list and back buffer format list.  Updating the selected 
	/// resolution and back buffer format will trigger updates of the rest 
	/// of the dialog.
	/// </summary>
	private void AdapterFormatChanged(object sender, System.EventArgs e)
	{
		if (!windowedRadioButton.Checked)
		{
			GraphicsAdapterInfo adapterInfo = (GraphicsAdapterInfo)adapterComboBox.SelectedItem;
			Format adapterFormat = (Format)adapterFormatComboBox.SelectedItem;
			settings.FullscreenDisplayMode.Format = adapterFormat;
			System.Text.StringBuilder sb = new System.Text.StringBuilder(20);

			resolutionComboBox.Items.Clear();
			foreach (DisplayMode displayMode in adapterInfo.DisplayModeList)
			{
				if (displayMode.Format == adapterFormat)
				{
					string resolutionString = FormatResolution(displayMode.Width, displayMode.Height);
					if (!resolutionComboBox.Items.Contains(resolutionString))
					{
						resolutionComboBox.Items.Add(resolutionString);
						if (settings.FullscreenDisplayMode.Width == displayMode.Width &&
							settings.FullscreenDisplayMode.Height == displayMode.Height)
						{
							resolutionComboBox.SelectedItem = resolutionString;
						}
					}
				}
			}
			if (resolutionComboBox.SelectedItem == null && resolutionComboBox.Items.Count > 0)
				resolutionComboBox.SelectedIndex = 0;
		}

		// Update backbuffer format combo box
		GraphicsDeviceInfo deviceInfo = (GraphicsDeviceInfo)deviceComboBox.SelectedItem;
		backBufferFormatComboBox.Items.Clear();
		foreach (DeviceCombo deviceCombo in deviceInfo.DeviceComboList)
		{
			if (deviceCombo.IsWindowed == settings.IsWindowed &&
				deviceCombo.AdapterFormat == settings.DisplayMode.Format)
			{
				if (!backBufferFormatComboBox.Items.Contains(deviceCombo.BackBufferFormat))
				{
					backBufferFormatComboBox.Items.Add(deviceCombo.BackBufferFormat);
					if (deviceCombo.BackBufferFormat == settings.BackBufferFormat)
						backBufferFormatComboBox.SelectedItem = deviceCombo.BackBufferFormat;
				}
			}
		}
		if (backBufferFormatComboBox.SelectedItem == null && backBufferFormatComboBox.Items.Count > 0)
			backBufferFormatComboBox.SelectedIndex = 0;
	}




	/// <summary>
	/// Respond to a change of selected resolution by rebuilding the
	/// refresh rate list.
	/// </summary>
	private void ResolutionChanged(object sender, System.EventArgs e)
	{
		if (settings.IsWindowed)
			return;

		GraphicsAdapterInfo adapterInfo = (GraphicsAdapterInfo)adapterComboBox.SelectedItem;

		// Update settings with new resolution
		string resolution = (string)resolutionComboBox.SelectedItem;
		string[] resolutionSplitStringArray = resolution.Split();
		int width = int.Parse(resolutionSplitStringArray[0]);
		int height = int.Parse(resolutionSplitStringArray[2]);
		settings.FullscreenDisplayMode.Width = width;
		settings.FullscreenDisplayMode.Height = height;

		// Update refresh rate list based on new resolution
		Format adapterFormat = (Format)adapterFormatComboBox.SelectedItem;
		refreshRateComboBox.Items.Clear();
		foreach (DisplayMode displayMode in adapterInfo.DisplayModeList)
		{
			if (displayMode.Format == adapterFormat &&
				displayMode.Width  == width &&
				displayMode.Height == height)
			{
				string refreshRateString = FormatRefreshRate(displayMode.RefreshRate);
				if (!refreshRateComboBox.Items.Contains(refreshRateString))
				{
					refreshRateComboBox.Items.Add(refreshRateString);
					if (settings.FullscreenDisplayMode.RefreshRate == displayMode.RefreshRate)
						refreshRateComboBox.SelectedItem = refreshRateString;
				}
			}
		}
		if (refreshRateComboBox.SelectedItem == null && refreshRateComboBox.Items.Count > 0)
			refreshRateComboBox.SelectedIndex = refreshRateComboBox.Items.Count - 1;
	}




	/// <summary>
	/// Respond to a change of selected refresh rate.
	/// </summary>
	private void RefreshRateChanged(object sender, System.EventArgs e)
	{
		if (settings.IsWindowed)
			return;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费在线播放视频| 日本精品免费观看高清观看| 国产又黄又大久久| 日本中文字幕一区| 秋霞午夜av一区二区三区| 亚洲一区二区在线观看视频| 国产精品国产三级国产普通话99 | 欧美日韩激情一区二区三区| 成人污污视频在线观看| 国产91精品免费| av午夜精品一区二区三区| 91在线视频网址| 色就色 综合激情| 欧美日韩亚洲丝袜制服| 欧美日本在线一区| 欧美成人女星排行榜| 久久综合狠狠综合久久激情| 国产亚洲女人久久久久毛片| 国产精品美女久久久久aⅴ | 久久久久久久久久美女| 久久久久国产精品人| 中文字幕欧美日本乱码一线二线| 国产日产欧美一区二区视频| 国产精品免费观看视频| 一区二区三区免费网站| 日韩在线一区二区| 国产精品一区二区三区乱码| 成人黄色小视频| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 亚洲国产成人私人影院tom| 亚洲欧美日韩小说| 日韩电影一二三区| 国产大陆亚洲精品国产| 色婷婷国产精品久久包臀| 欧美久久婷婷综合色| 久久久久国色av免费看影院| 一区二区三区av电影| 美女爽到高潮91| 99re这里只有精品首页| 欧美日本在线一区| 久久久不卡影院| 视频在线观看一区| 成人av网址在线| 日韩午夜小视频| 亚洲免费在线视频一区 二区| 麻豆精品精品国产自在97香蕉| 成人毛片老司机大片| 欧美一区日本一区韩国一区| 亚洲欧洲另类国产综合| 久久黄色级2电影| 色婷婷国产精品久久包臀| 久久九九影视网| 青青草97国产精品免费观看 | 久久久久亚洲蜜桃| 日韩电影免费在线| 91精彩视频在线| 1024国产精品| 国产91丝袜在线18| 2017欧美狠狠色| 免费av成人在线| 67194成人在线观看| 亚洲另类在线制服丝袜| 成人精品视频网站| 精品久久久久久久久久久院品网| 亚洲综合另类小说| 91免费版pro下载短视频| 中文字幕精品一区二区精品绿巨人| 日本不卡一二三区黄网| 欧美性生交片4| 亚洲精品成人a在线观看| 91小宝寻花一区二区三区| 国产一区二区不卡老阿姨| 国产女人18毛片水真多成人如厕| 国产精品看片你懂得| 日韩综合一区二区| 日本精品视频一区二区三区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 国精产品一区一区三区mba视频| 欧美日本一区二区三区四区| 夜夜精品视频一区二区| 91激情五月电影| 亚洲动漫第一页| 欧美日韩一区二区三区高清| 亚洲国产精品一区二区尤物区| 一本久久a久久免费精品不卡| 国产精品第13页| 欧美在线视频全部完| 日韩国产欧美一区二区三区| 91精品国产欧美一区二区18| 免费在线成人网| 久久嫩草精品久久久精品| 成年人午夜久久久| 香港成人在线视频| 日韩精品专区在线影院重磅| 国产又黄又大久久| 亚洲区小说区图片区qvod| 91猫先生在线| 日韩成人一级片| 中文字幕av一区 二区| 色偷偷88欧美精品久久久| 日本最新不卡在线| 欧美激情艳妇裸体舞| 欧美在线综合视频| 国产一区在线视频| 一区二区三区精品在线观看| 日韩一级完整毛片| 风间由美中文字幕在线看视频国产欧美| 国产精品天天摸av网| 欧美精品第1页| 国产91丝袜在线播放| 午夜免费欧美电影| 国产精品区一区二区三区| 欧美夫妻性生活| 成人av网站在线| 蜜臀久久99精品久久久画质超高清| 久久综合久久99| 欧美午夜片在线观看| 国产伦精品一区二区三区免费迷| 樱桃国产成人精品视频| 337p粉嫩大胆噜噜噜噜噜91av| 91视频免费播放| 国产精选一区二区三区| 一级女性全黄久久生活片免费| 欧美mv日韩mv国产网站app| 色综合视频一区二区三区高清| 久99久精品视频免费观看| 亚洲女人的天堂| 国产精品网站一区| 精品噜噜噜噜久久久久久久久试看 | 成人一级片在线观看| 丝袜诱惑亚洲看片| 亚洲欧美日本在线| 国产精品午夜在线观看| 日韩情涩欧美日韩视频| 欧美一a一片一级一片| www.亚洲国产| 国产一区二区剧情av在线| 亚洲成人一区在线| 一区二区三区高清在线| 国产精品青草综合久久久久99| 日韩一区二区三区免费看| 欧美主播一区二区三区| 99久久免费视频.com| 国产精品99久久久久久似苏梦涵| 麻豆精品精品国产自在97香蕉 | 蜜臀a∨国产成人精品| 一区二区三区色| 悠悠色在线精品| 一区二区三区美女视频| 樱桃国产成人精品视频| 亚洲精品中文在线影院| 国产精品网站一区| 中文字幕永久在线不卡| 国产精品对白交换视频| 亚洲婷婷国产精品电影人久久| 中文字幕精品一区二区精品绿巨人| 久久久精品欧美丰满| 欧美激情一区二区三区在线| 国产欧美日韩在线| 国产精品久久久久久久久动漫| 国产婷婷色一区二区三区四区 | 成人性生交大片免费看在线播放| 国产精品综合一区二区三区| 国产高清无密码一区二区三区| 国产黑丝在线一区二区三区| 国产高清久久久久| 不卡影院免费观看| 色综合久久精品| 337p亚洲精品色噜噜噜| 日韩精品中文字幕一区二区三区| 日韩欧美在线1卡| 国产农村妇女精品| 亚洲丝袜另类动漫二区| 亚洲一级二级三级| 精品午夜久久福利影院| 成人黄色免费短视频| 欧美亚洲国产怡红院影院| 在线不卡中文字幕| 久久蜜臀精品av| 亚洲欧美电影一区二区| 日韩电影在线看| 国产风韵犹存在线视精品| 91成人在线精品| 日韩欧美亚洲一区二区| 最新久久zyz资源站| 日韩高清在线一区| 国产成人免费视频精品含羞草妖精| 99精品在线观看视频| 7777精品伊人久久久大香线蕉的| 精品国偷自产国产一区| 亚洲色欲色欲www在线观看| 日本美女一区二区三区视频| 国产高清成人在线| 欧美日韩1区2区| 国产精品久久久久9999吃药| 首页亚洲欧美制服丝腿| 成年人网站91| 久久综合久久综合九色| 亚洲一区二区3| 国产成人在线看|