⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settingsdialog.cs

📁 这是一个小型的相片管理器
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.bBrowse = new System.Windows.Forms.Button();
			this.lbLang = new System.Windows.Forms.Label();
			this.cbLang = new System.Windows.Forms.ComboBox();
			this.lbDADir = new System.Windows.Forms.Label();
			this.tbDADir = new System.Windows.Forms.TextBox();
			this.lbSlideShInt = new System.Windows.Forms.Label();
			this.numSlideShInt = new System.Windows.Forms.NumericUpDown();
			this.lbThumbSize = new System.Windows.Forms.Label();
			this.numThWidth = new System.Windows.Forms.NumericUpDown();
			this.numThHeight = new System.Windows.Forms.NumericUpDown();
			this.label2 = new System.Windows.Forms.Label();
			this.lbSecs = new System.Windows.Forms.Label();
			this.cbAssoc = new System.Windows.Forms.CheckBox();
			this.cbShowImgRes = new System.Windows.Forms.CheckBox();
			this.cbShowPhotoInfo = new System.Windows.Forms.CheckBox();
			this.cbShowAlbInfo = new System.Windows.Forms.CheckBox();
			((System.ComponentModel.ISupportInitialize) (this.numSlideShInt)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numThWidth)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numThHeight)).BeginInit();
			this.SuspendLayout();
			// 
			// bOK
			// 
			this.bOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.bOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bOK.Location = new System.Drawing.Point(488, 368);
			this.bOK.Name = "bOK";
			this.bOK.Size = new System.Drawing.Size(75, 23);
			this.bOK.TabIndex = 0;
			this.bOK.Text = "OK";
			this.bOK.Click += new System.EventHandler(this.bOK_Click);
			// 
			// bCancel
			// 
			this.bCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.bCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bCancel.Location = new System.Drawing.Point(584, 368);
			this.bCancel.Name = "bCancel";
			this.bCancel.Size = new System.Drawing.Size(75, 23);
			this.bCancel.TabIndex = 1;
			this.bCancel.Text = "Cancel";
			// 
			// bBrowse
			// 
			this.bBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.bBrowse.Location = new System.Drawing.Point(592, 80);
			this.bBrowse.Name = "bBrowse";
			this.bBrowse.Size = new System.Drawing.Size(75, 23);
			this.bBrowse.TabIndex = 4;
			this.bBrowse.Text = "Browse...";
			this.bBrowse.Click += new System.EventHandler(this.bBrowse_Click);
			// 
			// lbLang
			// 
			this.lbLang.Location = new System.Drawing.Point(24, 32);
			this.lbLang.Name = "lbLang";
			this.lbLang.Size = new System.Drawing.Size(100, 16);
			this.lbLang.TabIndex = 3;
			this.lbLang.Text = "Language:";
			// 
			// cbLang
			// 
			this.cbLang.Location = new System.Drawing.Point(152, 32);
			this.cbLang.Name = "cbLang";
			this.cbLang.Size = new System.Drawing.Size(136, 21);
			this.cbLang.TabIndex = 2;
			this.cbLang.Text = "cbLang";
			// 
			// lbDADir
			// 
			this.lbDADir.Location = new System.Drawing.Point(24, 80);
			this.lbDADir.Name = "lbDADir";
			this.lbDADir.Size = new System.Drawing.Size(100, 32);
			this.lbDADir.TabIndex = 5;
			this.lbDADir.Text = "Default Album Directory:";
			// 
			// tbDADir
			// 
			this.tbDADir.Location = new System.Drawing.Point(152, 80);
			this.tbDADir.Name = "tbDADir";
			this.tbDADir.Size = new System.Drawing.Size(424, 20);
			this.tbDADir.TabIndex = 3;
			this.tbDADir.Text = "textBox1";
			// 
			// lbSlideShInt
			// 
			this.lbSlideShInt.Location = new System.Drawing.Point(24, 128);
			this.lbSlideShInt.Name = "lbSlideShInt";
			this.lbSlideShInt.Size = new System.Drawing.Size(100, 48);
			this.lbSlideShInt.TabIndex = 7;
			this.lbSlideShInt.Text = "Slide Show Photo-change Interval:";
			// 
			// numSlideShInt
			// 
			this.numSlideShInt.Location = new System.Drawing.Point(152, 128);
			this.numSlideShInt.Name = "numSlideShInt";
			this.numSlideShInt.Size = new System.Drawing.Size(64, 20);
			this.numSlideShInt.TabIndex = 5;
			// 
			// lbThumbSize
			// 
			this.lbThumbSize.Location = new System.Drawing.Point(24, 176);
			this.lbThumbSize.Name = "lbThumbSize";
			this.lbThumbSize.Size = new System.Drawing.Size(100, 32);
			this.lbThumbSize.TabIndex = 9;
			this.lbThumbSize.Text = "Thumbnail-Size:";
			// 
			// numThWidth
			// 
			this.numThWidth.Location = new System.Drawing.Point(152, 176);
			this.numThWidth.Maximum = new decimal(new int[] {
            256,
            0,
            0,
            0});
			this.numThWidth.Minimum = new decimal(new int[] {
            10,
            0,
            0,
            0});
			this.numThWidth.Name = "numThWidth";
			this.numThWidth.Size = new System.Drawing.Size(64, 20);
			this.numThWidth.TabIndex = 6;
			this.numThWidth.Value = new decimal(new int[] {
            10,
            0,
            0,
            0});
			// 
			// numThHeight
			// 
			this.numThHeight.Location = new System.Drawing.Point(248, 176);
			this.numThHeight.Maximum = new decimal(new int[] {
            256,
            0,
            0,
            0});
			this.numThHeight.Minimum = new decimal(new int[] {
            10,
            0,
            0,
            0});
			this.numThHeight.Name = "numThHeight";
			this.numThHeight.Size = new System.Drawing.Size(64, 20);
			this.numThHeight.TabIndex = 7;
			this.numThHeight.Value = new decimal(new int[] {
            10,
            0,
            0,
            0});
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(224, 180);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(16, 16);
			this.label2.TabIndex = 12;
			this.label2.Text = "X";
			// 
			// lbSecs
			// 
			this.lbSecs.Location = new System.Drawing.Point(224, 133);
			this.lbSecs.Name = "lbSecs";
			this.lbSecs.Size = new System.Drawing.Size(100, 16);
			this.lbSecs.TabIndex = 13;
			this.lbSecs.Text = "seconds";
			// 
			// cbAssoc
			// 
			this.cbAssoc.Location = new System.Drawing.Point(32, 224);
			this.cbAssoc.Name = "cbAssoc";
			this.cbAssoc.Size = new System.Drawing.Size(616, 24);
			this.cbAssoc.TabIndex = 8;
			this.cbAssoc.Text = "Associate Virtual Photo Organizer with *.vpoa album files";
			// 
			// cbShowImgRes
			// 
			this.cbShowImgRes.Location = new System.Drawing.Point(56, 328);
			this.cbShowImgRes.Name = "cbShowImgRes";
			this.cbShowImgRes.Size = new System.Drawing.Size(616, 24);
			this.cbShowImgRes.TabIndex = 14;
			this.cbShowImgRes.Text = "Show image resolution in quick photo info (more memory intensive)";
			// 
			// cbShowPhotoInfo
			// 
			this.cbShowPhotoInfo.Location = new System.Drawing.Point(32, 296);
			this.cbShowPhotoInfo.Name = "cbShowPhotoInfo";
			this.cbShowPhotoInfo.Size = new System.Drawing.Size(616, 24);
			this.cbShowPhotoInfo.TabIndex = 15;
			this.cbShowPhotoInfo.Text = "Show quick photo info";
			this.cbShowPhotoInfo.CheckedChanged += new System.EventHandler(this.cbShowPhotoInfo_CheckedChanged);
			// 
			// cbShowAlbInfo
			// 
			this.cbShowAlbInfo.Location = new System.Drawing.Point(32, 264);
			this.cbShowAlbInfo.Name = "cbShowAlbInfo";
			this.cbShowAlbInfo.Size = new System.Drawing.Size(616, 24);
			this.cbShowAlbInfo.TabIndex = 16;
			this.cbShowAlbInfo.Text = "Show quick album info";
			// 
			// SettingsDialog
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(680, 406);
			this.Controls.Add(this.cbShowAlbInfo);
			this.Controls.Add(this.cbShowPhotoInfo);
			this.Controls.Add(this.cbShowImgRes);
			this.Controls.Add(this.cbAssoc);
			this.Controls.Add(this.lbSecs);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.numThHeight);
			this.Controls.Add(this.numThWidth);
			this.Controls.Add(this.lbThumbSize);
			this.Controls.Add(this.numSlideShInt);
			this.Controls.Add(this.lbSlideShInt);
			this.Controls.Add(this.tbDADir);
			this.Controls.Add(this.lbDADir);
			this.Controls.Add(this.cbLang);
			this.Controls.Add(this.lbLang);
			this.Controls.Add(this.bBrowse);
			this.Controls.Add(this.bCancel);
			this.Controls.Add(this.bOK);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "SettingsDialog";
			this.Text = "SettingsDialog";
			((System.ComponentModel.ISupportInitialize) (this.numSlideShInt)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numThWidth)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numThHeight)).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();

		}
		#endregion

		private void bOK_Click(object sender, System.EventArgs e) {
			GetSettingsFromComponents();
			SaveSettings();

			// fire the ThumbSizeChanged event if necessarry, so that the thumbnails in the photosPane get updated
			if (OldThumbWidth != ThumbWidth || OldThumbHeight != ThumbHeight)
				ThumbSizeChanged();
		}

		private void bBrowse_Click(object sender, System.EventArgs e) {
			// create the folderBrowserDialog and set the initial path to the current DADir
			FolderBrowserDialog fbd = new FolderBrowserDialog();
			if (System.IO.Directory.Exists(tbDADir.Text))
				fbd.SelectedPath = tbDADir.Text;

			// show the dialog
			if (fbd.ShowDialog() == DialogResult.OK)
				tbDADir.Text = fbd.SelectedPath;
		}

		private void cbShowPhotoInfo_CheckedChanged(object sender, System.EventArgs e) {
			cbShowImgRes.Enabled = cbShowPhotoInfo.Checked;
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -