Improve option panels and settings storage
This commit is contained in:
parent
8a40037b61
commit
7b831ef37c
@ -28,384 +28,384 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.cmdDefaultUserDocumentsLocation = new System.Windows.Forms.Button();
|
||||
this.txtDefaultUserDocumentsLocation = new System.Windows.Forms.TextBox();
|
||||
this.cmdDefaultUserProjectsLocation = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.chkDetectFileChanges = new System.Windows.Forms.CheckBox();
|
||||
this.chkAutomaticallyReloadChangedFile = new System.Windows.Forms.CheckBox();
|
||||
this.chkAllowEditingReadonlyFiles = new System.Windows.Forms.CheckBox();
|
||||
this.chkStoreRecentFiles = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.chkStoreRecentProjects = new System.Windows.Forms.CheckBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
|
||||
this.chkStoreUndoHistory = new System.Windows.Forms.CheckBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
|
||||
this.chkStoreAutoRecoveryInfo = new System.Windows.Forms.CheckBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown5 = new System.Windows.Forms.NumericUpDown();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cmdDefaultUserDocumentsLocation
|
||||
//
|
||||
this.cmdDefaultUserDocumentsLocation.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.cmdDefaultUserDocumentsLocation.Location = new System.Drawing.Point(3, 3);
|
||||
this.cmdDefaultUserDocumentsLocation.Name = "cmdDefaultUserDocumentsLocation";
|
||||
this.cmdDefaultUserDocumentsLocation.Size = new System.Drawing.Size(182, 23);
|
||||
this.cmdDefaultUserDocumentsLocation.TabIndex = 0;
|
||||
this.cmdDefaultUserDocumentsLocation.Text = "Default user docu&ments location";
|
||||
this.cmdDefaultUserDocumentsLocation.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtDefaultUserDocumentsLocation
|
||||
//
|
||||
this.txtDefaultUserDocumentsLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.cmdDefaultUserDocumentsLocation = new System.Windows.Forms.Button();
|
||||
this.txtDefaultUserDocumentsLocation = new System.Windows.Forms.TextBox();
|
||||
this.cmdDefaultUserProjectsLocation = new System.Windows.Forms.Button();
|
||||
this.txtDefaultUserProjectsLocation = new System.Windows.Forms.TextBox();
|
||||
this.chkDetectFileChanges = new System.Windows.Forms.CheckBox();
|
||||
this.chkAutomaticallyReloadChangedFile = new System.Windows.Forms.CheckBox();
|
||||
this.chkAllowEditingReadonlyFiles = new System.Windows.Forms.CheckBox();
|
||||
this.chkStoreRecentFiles = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.chkStoreRecentProjects = new System.Windows.Forms.CheckBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
|
||||
this.chkStoreUndoHistory = new System.Windows.Forms.CheckBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
|
||||
this.chkStoreAutoRecoveryInfo = new System.Windows.Forms.CheckBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown5 = new System.Windows.Forms.NumericUpDown();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cmdDefaultUserDocumentsLocation
|
||||
//
|
||||
this.cmdDefaultUserDocumentsLocation.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.cmdDefaultUserDocumentsLocation.Location = new System.Drawing.Point(3, 3);
|
||||
this.cmdDefaultUserDocumentsLocation.Name = "cmdDefaultUserDocumentsLocation";
|
||||
this.cmdDefaultUserDocumentsLocation.Size = new System.Drawing.Size(182, 23);
|
||||
this.cmdDefaultUserDocumentsLocation.TabIndex = 0;
|
||||
this.cmdDefaultUserDocumentsLocation.Text = "Default user docu&ments location";
|
||||
this.cmdDefaultUserDocumentsLocation.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtDefaultUserDocumentsLocation
|
||||
//
|
||||
this.txtDefaultUserDocumentsLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtDefaultUserDocumentsLocation.Location = new System.Drawing.Point(191, 5);
|
||||
this.txtDefaultUserDocumentsLocation.Name = "txtDefaultUserDocumentsLocation";
|
||||
this.txtDefaultUserDocumentsLocation.Size = new System.Drawing.Size(268, 20);
|
||||
this.txtDefaultUserDocumentsLocation.TabIndex = 1;
|
||||
//
|
||||
// cmdDefaultUserProjectsLocation
|
||||
//
|
||||
this.cmdDefaultUserProjectsLocation.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.cmdDefaultUserProjectsLocation.Location = new System.Drawing.Point(3, 32);
|
||||
this.cmdDefaultUserProjectsLocation.Name = "cmdDefaultUserProjectsLocation";
|
||||
this.cmdDefaultUserProjectsLocation.Size = new System.Drawing.Size(182, 23);
|
||||
this.cmdDefaultUserProjectsLocation.TabIndex = 2;
|
||||
this.cmdDefaultUserProjectsLocation.Text = "Default user &projects location";
|
||||
this.cmdDefaultUserProjectsLocation.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.txtDefaultUserDocumentsLocation.Location = new System.Drawing.Point(191, 5);
|
||||
this.txtDefaultUserDocumentsLocation.Name = "txtDefaultUserDocumentsLocation";
|
||||
this.txtDefaultUserDocumentsLocation.Size = new System.Drawing.Size(268, 20);
|
||||
this.txtDefaultUserDocumentsLocation.TabIndex = 1;
|
||||
//
|
||||
// cmdDefaultUserProjectsLocation
|
||||
//
|
||||
this.cmdDefaultUserProjectsLocation.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.cmdDefaultUserProjectsLocation.Location = new System.Drawing.Point(3, 32);
|
||||
this.cmdDefaultUserProjectsLocation.Name = "cmdDefaultUserProjectsLocation";
|
||||
this.cmdDefaultUserProjectsLocation.Size = new System.Drawing.Size(182, 23);
|
||||
this.cmdDefaultUserProjectsLocation.TabIndex = 2;
|
||||
this.cmdDefaultUserProjectsLocation.Text = "Default user &projects location";
|
||||
this.cmdDefaultUserProjectsLocation.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtDefaultUserProjectsLocation
|
||||
//
|
||||
this.txtDefaultUserProjectsLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.textBox1.Location = new System.Drawing.Point(191, 34);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(268, 20);
|
||||
this.textBox1.TabIndex = 3;
|
||||
//
|
||||
// chkDetectFileChanges
|
||||
//
|
||||
this.chkDetectFileChanges.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.txtDefaultUserProjectsLocation.Location = new System.Drawing.Point(191, 34);
|
||||
this.txtDefaultUserProjectsLocation.Name = "txtDefaultUserProjectsLocation";
|
||||
this.txtDefaultUserProjectsLocation.Size = new System.Drawing.Size(268, 20);
|
||||
this.txtDefaultUserProjectsLocation.TabIndex = 3;
|
||||
//
|
||||
// chkDetectFileChanges
|
||||
//
|
||||
this.chkDetectFileChanges.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkDetectFileChanges.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkDetectFileChanges.Location = new System.Drawing.Point(3, 61);
|
||||
this.chkDetectFileChanges.Name = "chkDetectFileChanges";
|
||||
this.chkDetectFileChanges.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkDetectFileChanges.TabIndex = 4;
|
||||
this.chkDetectFileChanges.Text = "&Detect when file is changed in another program";
|
||||
this.chkDetectFileChanges.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkAutomaticallyReloadChangedFile
|
||||
//
|
||||
this.chkAutomaticallyReloadChangedFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.chkDetectFileChanges.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkDetectFileChanges.Location = new System.Drawing.Point(3, 61);
|
||||
this.chkDetectFileChanges.Name = "chkDetectFileChanges";
|
||||
this.chkDetectFileChanges.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkDetectFileChanges.TabIndex = 4;
|
||||
this.chkDetectFileChanges.Text = "&Detect when file is changed in another program";
|
||||
this.chkDetectFileChanges.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkAutomaticallyReloadChangedFile
|
||||
//
|
||||
this.chkAutomaticallyReloadChangedFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkAutomaticallyReloadChangedFile.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkAutomaticallyReloadChangedFile.Location = new System.Drawing.Point(23, 87);
|
||||
this.chkAutomaticallyReloadChangedFile.Name = "chkAutomaticallyReloadChangedFile";
|
||||
this.chkAutomaticallyReloadChangedFile.Size = new System.Drawing.Size(436, 20);
|
||||
this.chkAutomaticallyReloadChangedFile.TabIndex = 5;
|
||||
this.chkAutomaticallyReloadChangedFile.Text = "Automatically re&load the changed file without prompting if the file has been sav" +
|
||||
this.chkAutomaticallyReloadChangedFile.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkAutomaticallyReloadChangedFile.Location = new System.Drawing.Point(23, 87);
|
||||
this.chkAutomaticallyReloadChangedFile.Name = "chkAutomaticallyReloadChangedFile";
|
||||
this.chkAutomaticallyReloadChangedFile.Size = new System.Drawing.Size(436, 20);
|
||||
this.chkAutomaticallyReloadChangedFile.TabIndex = 5;
|
||||
this.chkAutomaticallyReloadChangedFile.Text = "Automatically re&load the changed file without prompting if the file has been sav" +
|
||||
"ed";
|
||||
this.chkAutomaticallyReloadChangedFile.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkAllowEditingReadonlyFiles
|
||||
//
|
||||
this.chkAllowEditingReadonlyFiles.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.chkAutomaticallyReloadChangedFile.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkAllowEditingReadonlyFiles
|
||||
//
|
||||
this.chkAllowEditingReadonlyFiles.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkAllowEditingReadonlyFiles.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkAllowEditingReadonlyFiles.Location = new System.Drawing.Point(3, 113);
|
||||
this.chkAllowEditingReadonlyFiles.Name = "chkAllowEditingReadonlyFiles";
|
||||
this.chkAllowEditingReadonlyFiles.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkAllowEditingReadonlyFiles.TabIndex = 6;
|
||||
this.chkAllowEditingReadonlyFiles.Text = "Allo&w editing of read-only files, warn when attempting to save";
|
||||
this.chkAllowEditingReadonlyFiles.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkStoreRecentFiles
|
||||
//
|
||||
this.chkStoreRecentFiles.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.chkAllowEditingReadonlyFiles.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkAllowEditingReadonlyFiles.Location = new System.Drawing.Point(3, 113);
|
||||
this.chkAllowEditingReadonlyFiles.Name = "chkAllowEditingReadonlyFiles";
|
||||
this.chkAllowEditingReadonlyFiles.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkAllowEditingReadonlyFiles.TabIndex = 6;
|
||||
this.chkAllowEditingReadonlyFiles.Text = "Allo&w editing of read-only files, warn when attempting to save";
|
||||
this.chkAllowEditingReadonlyFiles.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkStoreRecentFiles
|
||||
//
|
||||
this.chkStoreRecentFiles.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkStoreRecentFiles.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreRecentFiles.Location = new System.Drawing.Point(3, 139);
|
||||
this.chkStoreRecentFiles.Name = "chkStoreRecentFiles";
|
||||
this.chkStoreRecentFiles.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreRecentFiles.TabIndex = 7;
|
||||
this.chkStoreRecentFiles.Text = "K&eep a record of recently-opened documents";
|
||||
this.chkStoreRecentFiles.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label1.Location = new System.Drawing.Point(40, 167);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(99, 13);
|
||||
this.label1.TabIndex = 8;
|
||||
this.label1.Text = "Store a ma&ximum of";
|
||||
//
|
||||
// numericUpDown1
|
||||
//
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(145, 165);
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown1.TabIndex = 9;
|
||||
this.numericUpDown1.Value = new decimal(new int[] {
|
||||
this.chkStoreRecentFiles.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreRecentFiles.Location = new System.Drawing.Point(3, 139);
|
||||
this.chkStoreRecentFiles.Name = "chkStoreRecentFiles";
|
||||
this.chkStoreRecentFiles.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreRecentFiles.TabIndex = 7;
|
||||
this.chkStoreRecentFiles.Text = "K&eep a record of recently-opened documents";
|
||||
this.chkStoreRecentFiles.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label1.Location = new System.Drawing.Point(40, 167);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(99, 13);
|
||||
this.label1.TabIndex = 8;
|
||||
this.label1.Text = "Store a ma&ximum of";
|
||||
//
|
||||
// numericUpDown1
|
||||
//
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(145, 165);
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown1.TabIndex = 9;
|
||||
this.numericUpDown1.Value = new decimal(new int[] {
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label2.Location = new System.Drawing.Point(206, 167);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(137, 13);
|
||||
this.label2.TabIndex = 10;
|
||||
this.label2.Text = "items in the Recent Files list";
|
||||
//
|
||||
// chkStoreRecentProjects
|
||||
//
|
||||
this.chkStoreRecentProjects.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label2.Location = new System.Drawing.Point(206, 167);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(137, 13);
|
||||
this.label2.TabIndex = 10;
|
||||
this.label2.Text = "items in the Recent Files list";
|
||||
//
|
||||
// chkStoreRecentProjects
|
||||
//
|
||||
this.chkStoreRecentProjects.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkStoreRecentProjects.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreRecentProjects.Location = new System.Drawing.Point(3, 191);
|
||||
this.chkStoreRecentProjects.Name = "chkStoreRecentProjects";
|
||||
this.chkStoreRecentProjects.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreRecentProjects.TabIndex = 11;
|
||||
this.chkStoreRecentProjects.Text = "K&eep a record of recently-opened projects";
|
||||
this.chkStoreRecentProjects.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label3.Location = new System.Drawing.Point(40, 219);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(99, 13);
|
||||
this.label3.TabIndex = 12;
|
||||
this.label3.Text = "Store a ma&ximum of";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label4.Location = new System.Drawing.Point(206, 219);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(154, 13);
|
||||
this.label4.TabIndex = 14;
|
||||
this.label4.Text = "items in the Recent Projects list";
|
||||
//
|
||||
// numericUpDown2
|
||||
//
|
||||
this.numericUpDown2.Location = new System.Drawing.Point(145, 217);
|
||||
this.numericUpDown2.Name = "numericUpDown2";
|
||||
this.numericUpDown2.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown2.TabIndex = 13;
|
||||
this.numericUpDown2.Value = new decimal(new int[] {
|
||||
this.chkStoreRecentProjects.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreRecentProjects.Location = new System.Drawing.Point(3, 191);
|
||||
this.chkStoreRecentProjects.Name = "chkStoreRecentProjects";
|
||||
this.chkStoreRecentProjects.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreRecentProjects.TabIndex = 11;
|
||||
this.chkStoreRecentProjects.Text = "K&eep a record of recently-opened projects";
|
||||
this.chkStoreRecentProjects.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label3.Location = new System.Drawing.Point(40, 219);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(99, 13);
|
||||
this.label3.TabIndex = 12;
|
||||
this.label3.Text = "Store a ma&ximum of";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label4.Location = new System.Drawing.Point(206, 219);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(154, 13);
|
||||
this.label4.TabIndex = 14;
|
||||
this.label4.Text = "items in the Recent Projects list";
|
||||
//
|
||||
// numericUpDown2
|
||||
//
|
||||
this.numericUpDown2.Location = new System.Drawing.Point(145, 217);
|
||||
this.numericUpDown2.Name = "numericUpDown2";
|
||||
this.numericUpDown2.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown2.TabIndex = 13;
|
||||
this.numericUpDown2.Value = new decimal(new int[] {
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// chkStoreUndoHistory
|
||||
//
|
||||
this.chkStoreUndoHistory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
//
|
||||
// chkStoreUndoHistory
|
||||
//
|
||||
this.chkStoreUndoHistory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkStoreUndoHistory.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreUndoHistory.Location = new System.Drawing.Point(3, 243);
|
||||
this.chkStoreUndoHistory.Name = "chkStoreUndoHistory";
|
||||
this.chkStoreUndoHistory.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreUndoHistory.TabIndex = 15;
|
||||
this.chkStoreUndoHistory.Text = "K&eep a record of &changes made to each document (undo history)";
|
||||
this.chkStoreUndoHistory.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label5.Location = new System.Drawing.Point(40, 271);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(99, 13);
|
||||
this.label5.TabIndex = 16;
|
||||
this.label5.Text = "Store a ma&ximum of";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label6.Location = new System.Drawing.Point(206, 271);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(154, 13);
|
||||
this.label6.TabIndex = 18;
|
||||
this.label6.Text = "items in the Recent Projects list";
|
||||
//
|
||||
// numericUpDown3
|
||||
//
|
||||
this.numericUpDown3.Location = new System.Drawing.Point(145, 269);
|
||||
this.numericUpDown3.Name = "numericUpDown3";
|
||||
this.numericUpDown3.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown3.TabIndex = 17;
|
||||
this.numericUpDown3.Value = new decimal(new int[] {
|
||||
this.chkStoreUndoHistory.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreUndoHistory.Location = new System.Drawing.Point(3, 243);
|
||||
this.chkStoreUndoHistory.Name = "chkStoreUndoHistory";
|
||||
this.chkStoreUndoHistory.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreUndoHistory.TabIndex = 15;
|
||||
this.chkStoreUndoHistory.Text = "K&eep a record of &changes made to each document (undo history)";
|
||||
this.chkStoreUndoHistory.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label5.Location = new System.Drawing.Point(40, 271);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(99, 13);
|
||||
this.label5.TabIndex = 16;
|
||||
this.label5.Text = "Store a ma&ximum of";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label6.Location = new System.Drawing.Point(206, 271);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(154, 13);
|
||||
this.label6.TabIndex = 18;
|
||||
this.label6.Text = "items in the Recent Projects list";
|
||||
//
|
||||
// numericUpDown3
|
||||
//
|
||||
this.numericUpDown3.Location = new System.Drawing.Point(145, 269);
|
||||
this.numericUpDown3.Name = "numericUpDown3";
|
||||
this.numericUpDown3.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown3.TabIndex = 17;
|
||||
this.numericUpDown3.Value = new decimal(new int[] {
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// chkStoreAutoRecoveryInfo
|
||||
//
|
||||
this.chkStoreAutoRecoveryInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
//
|
||||
// chkStoreAutoRecoveryInfo
|
||||
//
|
||||
this.chkStoreAutoRecoveryInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkStoreAutoRecoveryInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreAutoRecoveryInfo.Location = new System.Drawing.Point(3, 295);
|
||||
this.chkStoreAutoRecoveryInfo.Name = "chkStoreAutoRecoveryInfo";
|
||||
this.chkStoreAutoRecoveryInfo.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreAutoRecoveryInfo.TabIndex = 19;
|
||||
this.chkStoreAutoRecoveryInfo.Text = "&Save automatic recovery information";
|
||||
this.chkStoreAutoRecoveryInfo.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label7.Location = new System.Drawing.Point(40, 323);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(61, 13);
|
||||
this.label7.TabIndex = 20;
|
||||
this.label7.Text = "Sa&ve every";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label8.Location = new System.Drawing.Point(206, 323);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(43, 13);
|
||||
this.label8.TabIndex = 22;
|
||||
this.label8.Text = "minutes";
|
||||
//
|
||||
// numericUpDown4
|
||||
//
|
||||
this.numericUpDown4.Location = new System.Drawing.Point(145, 321);
|
||||
this.numericUpDown4.Name = "numericUpDown4";
|
||||
this.numericUpDown4.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown4.TabIndex = 21;
|
||||
this.numericUpDown4.Value = new decimal(new int[] {
|
||||
this.chkStoreAutoRecoveryInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkStoreAutoRecoveryInfo.Location = new System.Drawing.Point(3, 295);
|
||||
this.chkStoreAutoRecoveryInfo.Name = "chkStoreAutoRecoveryInfo";
|
||||
this.chkStoreAutoRecoveryInfo.Size = new System.Drawing.Size(456, 20);
|
||||
this.chkStoreAutoRecoveryInfo.TabIndex = 19;
|
||||
this.chkStoreAutoRecoveryInfo.Text = "&Save automatic recovery information";
|
||||
this.chkStoreAutoRecoveryInfo.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label7.Location = new System.Drawing.Point(40, 323);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(61, 13);
|
||||
this.label7.TabIndex = 20;
|
||||
this.label7.Text = "Sa&ve every";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label8.Location = new System.Drawing.Point(206, 323);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(43, 13);
|
||||
this.label8.TabIndex = 22;
|
||||
this.label8.Text = "minutes";
|
||||
//
|
||||
// numericUpDown4
|
||||
//
|
||||
this.numericUpDown4.Location = new System.Drawing.Point(145, 321);
|
||||
this.numericUpDown4.Name = "numericUpDown4";
|
||||
this.numericUpDown4.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown4.TabIndex = 21;
|
||||
this.numericUpDown4.Value = new decimal(new int[] {
|
||||
5,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label9.Location = new System.Drawing.Point(40, 349);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(47, 13);
|
||||
this.label9.TabIndex = 23;
|
||||
this.label9.Text = "&Keep for";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label10.Location = new System.Drawing.Point(206, 349);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(29, 13);
|
||||
this.label10.TabIndex = 25;
|
||||
this.label10.Text = "days";
|
||||
//
|
||||
// numericUpDown5
|
||||
//
|
||||
this.numericUpDown5.Location = new System.Drawing.Point(145, 347);
|
||||
this.numericUpDown5.Name = "numericUpDown5";
|
||||
this.numericUpDown5.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown5.TabIndex = 24;
|
||||
this.numericUpDown5.Value = new decimal(new int[] {
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label9.Location = new System.Drawing.Point(40, 349);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(47, 13);
|
||||
this.label9.TabIndex = 23;
|
||||
this.label9.Text = "&Keep for";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.label10.Location = new System.Drawing.Point(206, 349);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(29, 13);
|
||||
this.label10.TabIndex = 25;
|
||||
this.label10.Text = "days";
|
||||
//
|
||||
// numericUpDown5
|
||||
//
|
||||
this.numericUpDown5.Location = new System.Drawing.Point(145, 347);
|
||||
this.numericUpDown5.Name = "numericUpDown5";
|
||||
this.numericUpDown5.Size = new System.Drawing.Size(55, 20);
|
||||
this.numericUpDown5.TabIndex = 24;
|
||||
this.numericUpDown5.Value = new decimal(new int[] {
|
||||
7,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.button1.Location = new System.Drawing.Point(3, 373);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(182, 23);
|
||||
this.button1.TabIndex = 26;
|
||||
this.button1.Text = "Automatic &recovery location";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.button1.Location = new System.Drawing.Point(3, 373);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(182, 23);
|
||||
this.button1.TabIndex = 26;
|
||||
this.button1.Text = "Automatic &recovery location";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.textBox2.Location = new System.Drawing.Point(191, 375);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(268, 20);
|
||||
this.textBox2.TabIndex = 27;
|
||||
//
|
||||
// DocumentsOptionPanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.numericUpDown5);
|
||||
this.Controls.Add(this.numericUpDown4);
|
||||
this.Controls.Add(this.numericUpDown3);
|
||||
this.Controls.Add(this.numericUpDown2);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.numericUpDown1);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.chkStoreAutoRecoveryInfo);
|
||||
this.Controls.Add(this.chkStoreUndoHistory);
|
||||
this.Controls.Add(this.chkStoreRecentProjects);
|
||||
this.Controls.Add(this.chkStoreRecentFiles);
|
||||
this.Controls.Add(this.chkAllowEditingReadonlyFiles);
|
||||
this.Controls.Add(this.chkAutomaticallyReloadChangedFile);
|
||||
this.Controls.Add(this.chkDetectFileChanges);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.cmdDefaultUserProjectsLocation);
|
||||
this.Controls.Add(this.txtDefaultUserDocumentsLocation);
|
||||
this.Controls.Add(this.cmdDefaultUserDocumentsLocation);
|
||||
this.Name = "DocumentsOptionPanel";
|
||||
this.Size = new System.Drawing.Size(462, 411);
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.textBox2.Location = new System.Drawing.Point(191, 375);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(268, 20);
|
||||
this.textBox2.TabIndex = 27;
|
||||
//
|
||||
// DocumentsOptionPanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.numericUpDown5);
|
||||
this.Controls.Add(this.numericUpDown4);
|
||||
this.Controls.Add(this.numericUpDown3);
|
||||
this.Controls.Add(this.numericUpDown2);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.numericUpDown1);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.chkStoreAutoRecoveryInfo);
|
||||
this.Controls.Add(this.chkStoreUndoHistory);
|
||||
this.Controls.Add(this.chkStoreRecentProjects);
|
||||
this.Controls.Add(this.chkStoreRecentFiles);
|
||||
this.Controls.Add(this.chkAllowEditingReadonlyFiles);
|
||||
this.Controls.Add(this.chkAutomaticallyReloadChangedFile);
|
||||
this.Controls.Add(this.chkDetectFileChanges);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.txtDefaultUserProjectsLocation);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.cmdDefaultUserProjectsLocation);
|
||||
this.Controls.Add(this.txtDefaultUserDocumentsLocation);
|
||||
this.Controls.Add(this.cmdDefaultUserDocumentsLocation);
|
||||
this.Name = "DocumentsOptionPanel";
|
||||
this.Size = new System.Drawing.Size(462, 411);
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
@ -414,7 +414,7 @@
|
||||
private System.Windows.Forms.Button cmdDefaultUserDocumentsLocation;
|
||||
private System.Windows.Forms.TextBox txtDefaultUserDocumentsLocation;
|
||||
private System.Windows.Forms.Button cmdDefaultUserProjectsLocation;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox txtDefaultUserProjectsLocation;
|
||||
private System.Windows.Forms.CheckBox chkDetectFileChanges;
|
||||
private System.Windows.Forms.CheckBox chkAutomaticallyReloadChangedFile;
|
||||
private System.Windows.Forms.CheckBox chkAllowEditingReadonlyFiles;
|
||||
|
||||
@ -5,6 +5,9 @@ using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using UniversalEditor.UserInterface;
|
||||
using UniversalEditor.UserInterface.Settings;
|
||||
|
||||
namespace UniversalEditor.UserInterface.WindowsForms.OptionPanels.Application
|
||||
{
|
||||
public partial class DocumentsOptionPanel : OptionPanel
|
||||
@ -16,5 +19,22 @@ namespace UniversalEditor.UserInterface.WindowsForms.OptionPanels.Application
|
||||
|
||||
private string[] mvarOptionGroups = new string[] { "Application", "Documents" };
|
||||
public override string[] OptionGroups { get { return mvarOptionGroups; } }
|
||||
|
||||
public override void LoadSettings()
|
||||
{
|
||||
base.LoadSettings();
|
||||
|
||||
string defaultUserLocation = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + System.IO.Path.DirectorySeparatorChar.ToString() + "Universal Editor";
|
||||
string defaultUserDocumentsLocation = defaultUserLocation + System.IO.Path.DirectorySeparatorChar.ToString() + "Documents";
|
||||
string defaultUserProjectsLocation = defaultUserLocation + System.IO.Path.DirectorySeparatorChar.ToString() + "Projects";
|
||||
txtDefaultUserDocumentsLocation.Text = SettingsManager.GetPropertyValue<string>(new string[] { "Application", "Documents", "DefaultUserDocumentsLocation" }, defaultUserDocumentsLocation);
|
||||
txtDefaultUserProjectsLocation.Text = SettingsManager.GetPropertyValue<string>(new string[] { "Application", "Documents", "DefaultUserProjectsLocation" }, defaultUserProjectsLocation);
|
||||
|
||||
chkAllowEditingReadonlyFiles.Checked = SettingsManager.GetPropertyValue<bool>(new string[] { "Application", "Documents", "AllowEditingReadonlyFiles" }, false);
|
||||
}
|
||||
public override void SaveSettings()
|
||||
{
|
||||
base.SaveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="Color, System.Drawing">Blue</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace UniversalEditor.UserInterface.Settings
|
||||
{
|
||||
public static class SettingsManager
|
||||
{
|
||||
public static T GetPropertyValue<T>(string[] path, T defaultValue = default(T))
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
public static void SetPropertyValue<T>(string[] path, T value)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -76,6 +76,7 @@
|
||||
<Compile Include="PropertyMapping.cs" />
|
||||
<Compile Include="RecentFileManager.cs" />
|
||||
<Compile Include="SessionManager.cs" />
|
||||
<Compile Include="Settings\SettingsManager.cs" />
|
||||
<Compile Include="SingleInstanceManager.cs" />
|
||||
<Compile Include="Toolbar.cs" />
|
||||
<Compile Include="Toolbox.cs" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user