diff --git a/COD/COD.cdb3 b/COD/COD.cdb3
index d522677..1c1f4ac 100644
Binary files a/COD/COD.cdb3 and b/COD/COD.cdb3 differ
diff --git a/COD/COD/COD.000 b/COD/COD/COD.000
index d51dc30..852b884 100644
Binary files a/COD/COD/COD.000 and b/COD/COD/COD.000 differ
diff --git a/COD/COD/COD.001 b/COD/COD/COD.001
index ebe8bea..8bffe62 100644
Binary files a/COD/COD/COD.001 and b/COD/COD/COD.001 differ
diff --git a/COD/COD/COD.002 b/COD/COD/COD.002
index 33a6968..6e08af5 100644
Binary files a/COD/COD/COD.002 and b/COD/COD/COD.002 differ
diff --git a/COD/COD/COD.003 b/COD/COD/COD.003
index 9b6b85c..59f100f 100644
Binary files a/COD/COD/COD.003 and b/COD/COD/COD.003 differ
diff --git a/COD/COD/COD.004 b/COD/COD/COD.004
index 9a86d9e..03efb14 100644
Binary files a/COD/COD/COD.004 and b/COD/COD/COD.004 differ
diff --git a/COD/COD/COD.005 b/COD/COD/COD.005
index 75494cf..8a45204 100644
Binary files a/COD/COD/COD.005 and b/COD/COD/COD.005 differ
diff --git a/COD/COD/COD.006 b/COD/COD/COD.006
index 809961d..f7770ce 100644
Binary files a/COD/COD/COD.006 and b/COD/COD/COD.006 differ
diff --git a/COD/COD/COD.007 b/COD/COD/COD.007
index ae4313a..6d79c08 100644
Binary files a/COD/COD/COD.007 and b/COD/COD/COD.007 differ
diff --git a/COD/COD/COD.008 b/COD/COD/COD.008
index e100947..6f5d7f2 100644
Binary files a/COD/COD/COD.008 and b/COD/COD/COD.008 differ
diff --git a/COD/COD/COD.009 b/COD/COD/COD.009
index 5b4910d..1df2b4a 100644
Binary files a/COD/COD/COD.009 and b/COD/COD/COD.009 differ
diff --git a/COD/COD/COD.010 b/COD/COD/COD.010
index a88243f..91a83c9 100644
Binary files a/COD/COD/COD.010 and b/COD/COD/COD.010 differ
diff --git a/COD/COD/COD.011 b/COD/COD/COD.011
index 0055479..8007a0e 100644
Binary files a/COD/COD/COD.011 and b/COD/COD/COD.011 differ
diff --git a/COD/COD/COD.012 b/COD/COD/COD.012
index aecfdd6..776920e 100644
Binary files a/COD/COD/COD.012 and b/COD/COD/COD.012 differ
diff --git a/COD/COD/COD.013 b/COD/COD/COD.013
index a70efe3..9f9a261 100644
Binary files a/COD/COD/COD.013 and b/COD/COD/COD.013 differ
diff --git a/COD/COD/COD.014 b/COD/COD/COD.014
index e65f4aa..6734bec 100644
Binary files a/COD/COD/COD.014 and b/COD/COD/COD.014 differ
diff --git a/COD/COD/COD.015 b/COD/COD/COD.015
index d64eef3..e337e96 100644
Binary files a/COD/COD/COD.015 and b/COD/COD/COD.015 differ
diff --git a/COD/COD/COD.016 b/COD/COD/COD.016
index 8248ad5..8846652 100644
Binary files a/COD/COD/COD.016 and b/COD/COD/COD.016 differ
diff --git a/COD/COD/COD.017 b/COD/COD/COD.017
index 93589d4..ffe8117 100644
Binary files a/COD/COD/COD.017 and b/COD/COD/COD.017 differ
diff --git a/COD/COD/COD.018 b/COD/COD/COD.018
index 6fd69d2..ec09235 100644
Binary files a/COD/COD/COD.018 and b/COD/COD/COD.018 differ
diff --git a/COD/COD/COD.019 b/COD/COD/COD.019
index bd80a80..70d2b48 100644
Binary files a/COD/COD/COD.019 and b/COD/COD/COD.019 differ
diff --git a/COD/COD/COD.020 b/COD/COD/COD.020
index 5311c7a..66b4995 100644
Binary files a/COD/COD/COD.020 and b/COD/COD/COD.020 differ
diff --git a/COD/COD/COD.021 b/COD/COD/COD.021
index 70a9685..317f6d9 100644
Binary files a/COD/COD/COD.021 and b/COD/COD/COD.021 differ
diff --git a/COD/COD/COD.022 b/COD/COD/COD.022
index 62b6bab..62cb78c 100644
Binary files a/COD/COD/COD.022 and b/COD/COD/COD.022 differ
diff --git a/COD/COD/COD.023 b/COD/COD/COD.023
index aa2ead9..d39cdc6 100644
Binary files a/COD/COD/COD.023 and b/COD/COD/COD.023 differ
diff --git a/COD/COD/COD.024 b/COD/COD/COD.024
index 26601a0..3385483 100644
Binary files a/COD/COD/COD.024 and b/COD/COD/COD.024 differ
diff --git a/COD/COD/COD.025 b/COD/COD/COD.025
deleted file mode 100644
index bcc75f6..0000000
Binary files a/COD/COD/COD.025 and /dev/null differ
diff --git a/COD/COD/COD.026 b/COD/COD/COD.026
deleted file mode 100644
index d63759b..0000000
Binary files a/COD/COD/COD.026 and /dev/null differ
diff --git a/COD/COD/COD.027 b/COD/COD/COD.027
deleted file mode 100644
index 59aa562..0000000
Binary files a/COD/COD/COD.027 and /dev/null differ
diff --git a/COD/COD/COD.028 b/COD/COD/COD.028
deleted file mode 100644
index 63e6422..0000000
Binary files a/COD/COD/COD.028 and /dev/null differ
diff --git a/COD/COD/COD.029 b/COD/COD/COD.029
deleted file mode 100644
index c73b19e..0000000
Binary files a/COD/COD/COD.029 and /dev/null differ
diff --git a/COD/COD/COD.030 b/COD/COD/COD.030
deleted file mode 100644
index fe916ce..0000000
Binary files a/COD/COD/COD.030 and /dev/null differ
diff --git a/COD/COD/COD.031 b/COD/COD/COD.031
deleted file mode 100644
index 80f635c..0000000
Binary files a/COD/COD/COD.031 and /dev/null differ
diff --git a/COD/COD/COD.032 b/COD/COD/COD.032
deleted file mode 100644
index b6f55d7..0000000
Binary files a/COD/COD/COD.032 and /dev/null differ
diff --git a/CSManager/CSManager.csproj b/CSManager/CSManager.csproj
index 54579e7..6b008ae 100644
--- a/CSManager/CSManager.csproj
+++ b/CSManager/CSManager.csproj
@@ -4,8 +4,8 @@
WinExe
net7.0-windows
true
- 2023.2.10.1154
- 2023.2.10.1154
+ 2023.9.29.0814
+ 2023.9.29.0814
App.ico
diff --git a/CSManager/StdDb.cdb3 b/CSManager/StdDb.cdb3
index 2267484..2ef0f23 100644
Binary files a/CSManager/StdDb.cdb3 and b/CSManager/StdDb.cdb3 differ
diff --git a/CSManager/Version.cs b/CSManager/Version.cs
index dfb2894..65df8f8 100644
--- a/CSManager/Version.cs
+++ b/CSManager/Version.cs
@@ -23,11 +23,12 @@ static public string RecentHistory
}
}
- static public int AMCSD = 20997;
- static public int COD = 494508;
+ static public int AMCSD = 21004;
+ static public int COD = 506047;
static public string History =
"History" +
+ "\r\n ver1.895(2023/09/29) Renewed AMCSD database (contains 21,004) and COD database (506047)." +
"\r\n ver1.894(2022/11/16) Updated .Net Desktop Runtime to 7.0. Renewed COD database (494,508). Changed algorithm when saving and loading." +
"\r\n ver1.893(2022/10/27) Improved search function." +
"\r\n ver1.892(2022/10/26) Fixed minor bugs." +
diff --git a/Crystallography.Controls/CheckLocation.cs b/Crystallography.Controls/CheckLocation.cs
new file mode 100644
index 0000000..21d7db1
--- /dev/null
+++ b/Crystallography.Controls/CheckLocation.cs
@@ -0,0 +1,21 @@
+using System.Drawing;
+using System.Linq;
+using System.Windows.Forms;
+using static System.Net.WebRequestMethods;
+
+namespace Crystallography.Controls
+{
+ public static class WindowLocation
+ {
+ public static void Adjust(Form form)
+ {
+ double fL = form.Bounds.Left, fR = form.Bounds.Right, fT = form.Bounds.Top, fB = form.Bounds.Bottom, fW = form.Size.Width, fH = form.Size.Height;
+
+ if (Screen.AllScreens.All(s => (fL - s.Bounds.Left) / fW < -0.8 || (s.Bounds.Right- fR) / fW < -0.8 || (fT - s.Bounds.Top) / fH < -0.8 || (s.Bounds.Bottom - fB) / fH < -0.8))
+ {
+ var scr = Screen.AllScreens.First(e => e.DeviceName == Screen.FromControl(form).DeviceName);
+ form.Location = new Point(scr.Bounds.X + 100, scr.Bounds.Y + 100);
+ }
+ }
+ }
+}
diff --git a/Crystallography.Controls/CommonDialog.Designer.cs b/Crystallography.Controls/CommonDialog.Designer.cs
index ec4c96d..9abc5d6 100644
--- a/Crystallography.Controls/CommonDialog.Designer.cs
+++ b/Crystallography.Controls/CommonDialog.Designer.cs
@@ -29,116 +29,122 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CommonDialog));
- this.progressBar = new System.Windows.Forms.ProgressBar();
- this.textBox = new System.Windows.Forms.TextBox();
- this.buttonOK = new System.Windows.Forms.Button();
- this.labelSoftwareAndVersion = new System.Windows.Forms.Label();
- this.labelCopyRight = new System.Windows.Forms.Label();
- this.buttonNext = new System.Windows.Forms.Button();
- this.checkBoxCloseWindow = new System.Windows.Forms.CheckBox();
- this.flowLayoutPanelSoftwareInformation = new System.Windows.Forms.FlowLayoutPanel();
- this.linkLabel1 = new System.Windows.Forms.LinkLabel();
- this.panelOK = new System.Windows.Forms.Panel();
- this.flowLayoutPanelSoftwareInformation.SuspendLayout();
- this.panelOK.SuspendLayout();
- this.SuspendLayout();
+ progressBar = new System.Windows.Forms.ProgressBar();
+ textBox = new System.Windows.Forms.TextBox();
+ buttonOK = new System.Windows.Forms.Button();
+ labelSoftwareAndVersion = new System.Windows.Forms.Label();
+ labelCopyRight = new System.Windows.Forms.Label();
+ buttonNext = new System.Windows.Forms.Button();
+ checkBoxCloseWindow = new System.Windows.Forms.CheckBox();
+ flowLayoutPanelSoftwareInformation = new System.Windows.Forms.FlowLayoutPanel();
+ labelAuthor = new System.Windows.Forms.Label();
+ linkLabel1 = new System.Windows.Forms.LinkLabel();
+ panelOK = new System.Windows.Forms.Panel();
+ flowLayoutPanelSoftwareInformation.SuspendLayout();
+ panelOK.SuspendLayout();
+ SuspendLayout();
//
// progressBar
//
- resources.ApplyResources(this.progressBar, "progressBar");
- this.progressBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.progressBar.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.progressBar.ForeColor = System.Drawing.Color.Silver;
- this.progressBar.MarqueeAnimationSpeed = 1;
- this.progressBar.Maximum = 1000000;
- this.progressBar.Name = "progressBar";
- this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
- this.progressBar.Value = 50000;
+ resources.ApplyResources(progressBar, "progressBar");
+ progressBar.BackColor = System.Drawing.Color.FromArgb(64, 64, 64);
+ progressBar.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ progressBar.ForeColor = System.Drawing.Color.Silver;
+ progressBar.MarqueeAnimationSpeed = 1;
+ progressBar.Maximum = 1000000;
+ progressBar.Name = "progressBar";
+ progressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
+ progressBar.Value = 50000;
//
// textBox
//
- resources.ApplyResources(this.textBox, "textBox");
- this.textBox.BackColor = System.Drawing.Color.AliceBlue;
- this.textBox.ForeColor = System.Drawing.Color.DarkBlue;
- this.textBox.Name = "textBox";
- this.textBox.ReadOnly = true;
+ resources.ApplyResources(textBox, "textBox");
+ textBox.BackColor = System.Drawing.Color.AliceBlue;
+ textBox.ForeColor = System.Drawing.Color.DarkBlue;
+ textBox.Name = "textBox";
+ textBox.ReadOnly = true;
//
// buttonOK
//
- resources.ApplyResources(this.buttonOK, "buttonOK");
- this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
- this.buttonOK.Name = "buttonOK";
- this.buttonOK.UseVisualStyleBackColor = true;
- this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
+ resources.ApplyResources(buttonOK, "buttonOK");
+ buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
+ buttonOK.Name = "buttonOK";
+ buttonOK.UseVisualStyleBackColor = true;
+ buttonOK.Click += buttonOK_Click;
//
// labelSoftwareAndVersion
//
- resources.ApplyResources(this.labelSoftwareAndVersion, "labelSoftwareAndVersion");
- this.labelSoftwareAndVersion.Name = "labelSoftwareAndVersion";
+ resources.ApplyResources(labelSoftwareAndVersion, "labelSoftwareAndVersion");
+ labelSoftwareAndVersion.Name = "labelSoftwareAndVersion";
//
// labelCopyRight
//
- resources.ApplyResources(this.labelCopyRight, "labelCopyRight");
- this.labelCopyRight.Name = "labelCopyRight";
+ resources.ApplyResources(labelCopyRight, "labelCopyRight");
+ labelCopyRight.Name = "labelCopyRight";
//
// buttonNext
//
- resources.ApplyResources(this.buttonNext, "buttonNext");
- this.buttonNext.Name = "buttonNext";
- this.buttonNext.UseVisualStyleBackColor = true;
- this.buttonNext.Click += new System.EventHandler(this.buttonNext_Click);
+ resources.ApplyResources(buttonNext, "buttonNext");
+ buttonNext.Name = "buttonNext";
+ buttonNext.UseVisualStyleBackColor = true;
+ buttonNext.Click += buttonNext_Click;
//
// checkBoxCloseWindow
//
- resources.ApplyResources(this.checkBoxCloseWindow, "checkBoxCloseWindow");
- this.checkBoxCloseWindow.Checked = true;
- this.checkBoxCloseWindow.CheckState = System.Windows.Forms.CheckState.Checked;
- this.checkBoxCloseWindow.Name = "checkBoxCloseWindow";
- this.checkBoxCloseWindow.UseVisualStyleBackColor = true;
- this.checkBoxCloseWindow.CheckedChanged += new System.EventHandler(this.checkBoxCloseWindow_CheckedChanged);
+ resources.ApplyResources(checkBoxCloseWindow, "checkBoxCloseWindow");
+ checkBoxCloseWindow.Checked = true;
+ checkBoxCloseWindow.CheckState = System.Windows.Forms.CheckState.Checked;
+ checkBoxCloseWindow.Name = "checkBoxCloseWindow";
+ checkBoxCloseWindow.UseVisualStyleBackColor = true;
+ checkBoxCloseWindow.CheckedChanged += checkBoxCloseWindow_CheckedChanged;
//
// flowLayoutPanelSoftwareInformation
//
- resources.ApplyResources(this.flowLayoutPanelSoftwareInformation, "flowLayoutPanelSoftwareInformation");
- this.flowLayoutPanelSoftwareInformation.Controls.Add(this.labelSoftwareAndVersion);
- this.flowLayoutPanelSoftwareInformation.Controls.Add(this.labelCopyRight);
- this.flowLayoutPanelSoftwareInformation.Controls.Add(this.linkLabel1);
- this.flowLayoutPanelSoftwareInformation.Name = "flowLayoutPanelSoftwareInformation";
+ resources.ApplyResources(flowLayoutPanelSoftwareInformation, "flowLayoutPanelSoftwareInformation");
+ flowLayoutPanelSoftwareInformation.Controls.Add(labelSoftwareAndVersion);
+ flowLayoutPanelSoftwareInformation.Controls.Add(labelCopyRight);
+ flowLayoutPanelSoftwareInformation.Controls.Add(labelAuthor);
+ flowLayoutPanelSoftwareInformation.Controls.Add(linkLabel1);
+ flowLayoutPanelSoftwareInformation.Name = "flowLayoutPanelSoftwareInformation";
+ //
+ // labelAuthor
+ //
+ resources.ApplyResources(labelAuthor, "labelAuthor");
+ labelAuthor.Name = "labelAuthor";
//
// linkLabel1
//
- resources.ApplyResources(this.linkLabel1, "linkLabel1");
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.TabStop = true;
+ resources.ApplyResources(linkLabel1, "linkLabel1");
+ linkLabel1.Name = "linkLabel1";
+ linkLabel1.TabStop = true;
//
// panelOK
//
- resources.ApplyResources(this.panelOK, "panelOK");
- this.panelOK.Controls.Add(this.checkBoxCloseWindow);
- this.panelOK.Controls.Add(this.buttonOK);
- this.panelOK.Controls.Add(this.buttonNext);
- this.panelOK.Name = "panelOK";
+ resources.ApplyResources(panelOK, "panelOK");
+ panelOK.Controls.Add(checkBoxCloseWindow);
+ panelOK.Controls.Add(buttonOK);
+ panelOK.Controls.Add(buttonNext);
+ panelOK.Name = "panelOK";
//
// CommonDialog
//
- this.AcceptButton = this.buttonOK;
+ AcceptButton = buttonOK;
resources.ApplyResources(this, "$this");
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
- this.Controls.Add(this.textBox);
- this.Controls.Add(this.flowLayoutPanelSoftwareInformation);
- this.Controls.Add(this.progressBar);
- this.Controls.Add(this.panelOK);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
- this.Name = "CommonDialog";
- this.ShowIcon = false;
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CommonDialog_FormClosing);
- this.flowLayoutPanelSoftwareInformation.ResumeLayout(false);
- this.flowLayoutPanelSoftwareInformation.PerformLayout();
- this.panelOK.ResumeLayout(false);
- this.panelOK.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ Controls.Add(textBox);
+ Controls.Add(flowLayoutPanelSoftwareInformation);
+ Controls.Add(progressBar);
+ Controls.Add(panelOK);
+ FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
+ Name = "CommonDialog";
+ ShowIcon = false;
+ FormClosing += CommonDialog_FormClosing;
+ flowLayoutPanelSoftwareInformation.ResumeLayout(false);
+ flowLayoutPanelSoftwareInformation.PerformLayout();
+ panelOK.ResumeLayout(false);
+ panelOK.PerformLayout();
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
@@ -153,5 +159,6 @@ private void InitializeComponent()
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanelSoftwareInformation;
private System.Windows.Forms.Panel panelOK;
private System.Windows.Forms.LinkLabel linkLabel1;
+ private System.Windows.Forms.Label labelAuthor;
}
}
\ No newline at end of file
diff --git a/Crystallography.Controls/CommonDialog.cs b/Crystallography.Controls/CommonDialog.cs
index 14d0c9c..99f4282 100644
--- a/Crystallography.Controls/CommonDialog.cs
+++ b/Crystallography.Controls/CommonDialog.cs
@@ -91,9 +91,14 @@ public string VersionAndDate
labelSoftwareAndVersion.Text = software + " " + versionAndDate;
var year = versionAndDate.Split(new[] { '/', '(' }, StringSplitOptions.RemoveEmptyEntries)[1];
- labelCopyRight.Text = "Copyright(C) 2005-" + year + " Yusuke Seto";
+ labelCopyRight.Text = "Copyright(C) 2005-" + year;
}
}
+ public string Author
+ {
+ get => labelAuthor.Text;
+ set => labelAuthor.Text = value;
+ }
public string History { get; set; } = "";
diff --git a/Crystallography.Controls/CommonDialog.ja.resx b/Crystallography.Controls/CommonDialog.ja.resx
index 5925cc0..6b842bf 100644
--- a/Crystallography.Controls/CommonDialog.ja.resx
+++ b/Crystallography.Controls/CommonDialog.ja.resx
@@ -1,4 +1,64 @@
-
+
+
+
@@ -59,25 +119,22 @@
- 378, 22
+ 799, 22
- 0, 56
+ 0, 39
- 378, 240
+ 799, 196
- 302, 0
-
-
- 2, 17
+ 723, 0
メイリオ, 9pt
- 59, 0
+ 480, 0
243, 23
@@ -85,20 +142,50 @@
起動後にこのウィンドウを自動で閉じる
+
+ Segoe UI Symbol, 9.75pt
+
+
+
+ NoControl
+
+
+ 268, 0
+
+
+
+ 2, 0, 2, 0
+
+
+ 78, 17
+
+
+ Yusuke Seto
+
+
+ MiddleLeft
+
- 254, 17
+ 351, 0
- 378, 34
+ 799, 17
+
+
+
+ False
- 0, 296
+ 0, 235
- 378, 23
+ 799, 23
+
+
+ True
- 378, 319
+ 799, 258
372, 47
diff --git a/Crystallography.Controls/CommonDialog.resx b/Crystallography.Controls/CommonDialog.resx
index 000a94c..8d19fe3 100644
--- a/Crystallography.Controls/CommonDialog.resx
+++ b/Crystallography.Controls/CommonDialog.resx
@@ -1,4 +1,64 @@
+
+
@@ -58,370 +118,397 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- Segoe UI Symbol, 9pt
+
+ 0, 37
-
- panelOK
+
+ 224, 23
-
- 484, 305
+
+ flowLayoutPanelSoftwareInformation
-
- 1
+
+ 0, 296
-
- 247, 17
+
+ Segoe UI Symbol, 9pt
+
+
+ Segoe UI Symbol, 9pt
+
+
+ 0, 0
0, 0, 0, 0
-
- Segoe UI Symbol, 9.75pt
-
-
-
- GrowAndShrink
-
-
- 0
+
+ 564, 23
-
- 0, 54
+
+ 118, 15
-
- 139, 0
+
+ 43, 15
42
-
- 72, 23
+
+ 2
+
+ 564, 259
+
+
Top
-
- flowLayoutPanelSoftwareInformation
+
+ 1
-
- 2
+
+ Segoe UI Symbol, 9pt
-
- 484, 23
+
+ True
-
- 0, 22
+
+ True
-
- 224, 23
+
+ flowLayoutPanelSoftwareInformation
-
+
True
-
- GrowAndShrink
-
-
- buttonOK
+
+ $this
-
- True
+
+ textBox
-
+
2, 2, 2, 2
-
- 408, 0
+
+ Y. Seto
-
- 0
+
+ 38
-
- 0, 359
+
+ 41
-
- 0
+
+ System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- Manual
+
+ GrowAndShrink
-
- True
+
+ CommonDialog
-
- $this
+
+ GrowAndShrink
-
- flowLayoutPanelSoftwareInformation
+
+ 0, 0
-
- 484, 382
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- $this
+
+ 102, 15
-
- 35
+
+ True
-
- Fill
+
+ OK
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ GrowAndShrink
-
- flowLayoutPanelSoftwareInformation
+
+ Copyright (C) 2005-20##
-
- OK
+
+ 3
-
- seto.y@omu.ac.jp
+
+ 564, 22
-
+
Right
-
- 133, 17
-
-
- Segoe UI Symbol, 9pt
+
+ progressBar
-
- 2, 3, 2, 3
+
+ flowLayoutPanelSoftwareInformation
-
- True
+
+ Segoe UI Symbol, 9pt
-
- Left
+
+ Calculating ....
-
- 0
+
+ 1
36
-
- Segoe UI Symbol, 9.75pt
+
+ System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- Segoe UI Symbol, 9pt
+
+ 0, 22
-
- Segoe UI Symbol, 11.25pt
+
+ MiddleLeft
-
+
+ 124, 0
+
+
+ Right
+
+
+ Fill
+
+
+ 3
+
+
+ 1
+
+
+ Bottom
+
+
+ 2, 0, 2, 0
+
+
+ 580, 45
+
+
panelOK
-
- Copyright (C) 2005-20## Yusuke SETO
+
+ labelCopyRight
-
- flowLayoutPanelSoftwareInformation
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 2, 2, 2, 2
+
+ True
-
+
36
-
- System.Windows.Forms.Panel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Close this window after initial loading
+
+ panelOK
-
- 32
+
+ flowLayoutPanelSoftwareInformation
-
- buttonNext
+
+ 2, 0
-
- 102, 15
+
+ System.Windows.Forms.LinkLabel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
- 184, 0
-
-
- 96, 96
+ 264, 0
-
- 500, 45
+
+ 76, 23
-
- 38
+
+ Top
-
- 484, 32
+
+ labelAuthor
-
- Segoe UI Symbol, 9.75pt
+
+ Segoe UI Symbol, 11.25pt
-
- System.Windows.Forms.Form, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Next
Both
-
- 484, 22
-
-
- labelSoftwareAndVersion
+
+ Left
-
- labelCopyRight
+
+ Software and Version
-
- GrowAndShrink
+
+ Segoe UI Symbol, 9pt
- 3, 17
+ 318, 0
-
- System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 35
+
+
+ 72, 23
+
+
+ 0
System.Windows.Forms.ProgressBar, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 2, 0
+
+ checkBoxCloseWindow
-
- 3
+
+ buttonNext
-
+
+ MiddleLeft
+
+
System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- $this
+
+ 269, 0
-
- System.Windows.Forms.LinkLabel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Manual
-
- MiddleLeft
+
+ $this
-
- panelOK
+
+ 564, 15
-
- 76, 23
+
+ Segoe UI Symbol, 9pt
-
- 37
+
+ 2, 2, 2, 2
-
- linkLabel1
+
+ 2
-
+
2
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ seto.y@omu.ac.jp
-
- progressBar
+
+ 0
-
- Bottom
+
+ Close this window after initial loading
-
- 0, 0
+
+ System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 1
+
+ System.Windows.Forms.Form, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- CommonDialog
+
+ 0, 2, 0, 0
-
- Segoe UI Symbol, 9pt
+
+ System.Windows.Forms.Panel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- $this
+
+ 2, 0, 2, 0
-
- 41
+
+ MiddleLeft
-
- Software and Version
+
+ 32
-
- 0, 2, 0, 0
+
+ System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- MiddleLeft
+
+ 37
-
- Next
+
+ labelSoftwareAndVersion
-
- Top
+
+ buttonOK
-
- System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ panelOK
-
- True
+
+ 2, 2, 2, 2
-
- Calculating ....
+
+ 0
-
- checkBoxCloseWindow
+
+ $this
-
- Right
+
+ 96, 96
-
- System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Segoe UI Symbol, 9.75pt
-
+
+ 2, 3, 2, 3
+
+
True
-
- 2
+
+ 36
-
+
panelOK
-
- 2, 0, 2, 0
+
+ flowLayoutPanelSoftwareInformation
-
- 36
+
+ 0
-
- 2, 0, 2, 0
+
+ 32
-
- 0, 0
+
+ System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 1
+
+ 140, 15
-
- System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ linkLabel1
-
- textBox
+
+ True
-
- 2, 2, 2, 2
+
+ Segoe UI Symbol, 9pt
-
- MiddleLeft
+
+ 488, 0
+
+
+ $this
+
+
+ 564, 319
True
-
- ja
-
\ No newline at end of file
diff --git a/Crystallography.Controls/Crystal/AtomControl.Designer.cs b/Crystallography.Controls/Crystal/AtomControl.Designer.cs
index 74e9c38..86d3200 100644
--- a/Crystallography.Controls/Crystal/AtomControl.Designer.cs
+++ b/Crystallography.Controls/Crystal/AtomControl.Designer.cs
@@ -28,7 +28,7 @@ protected override void Dispose(bool disposing)
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
+ components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AtomControl));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -40,1449 +40,1311 @@ private void InitializeComponent()
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
- this.radioButtonIsotoropy = new System.Windows.Forms.RadioButton();
- this.radioButtonAnisotropy = new System.Windows.Forms.RadioButton();
- this.flowLayoutPanelIso = new System.Windows.Forms.FlowLayoutPanel();
- this.numericBoxBiso = new Crystallography.Controls.NumericBox();
- this.numericBoxBisoerr = new Crystallography.Controls.NumericBox();
- this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
- this.labelX_ = new System.Windows.Forms.Label();
- this.flowLayoutPanelLabel = new System.Windows.Forms.FlowLayoutPanel();
- this.label1 = new System.Windows.Forms.Label();
- this.textBoxLabel = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.comboBoxAtom = new System.Windows.Forms.ComboBox();
- this.flowLayoutPanelPosition = new System.Windows.Forms.FlowLayoutPanel();
- this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
- this.flowLayoutPanel8 = new System.Windows.Forms.FlowLayoutPanel();
- this.label8 = new System.Windows.Forms.Label();
- this.numericBox1 = new Crystallography.Controls.NumericBox();
- this.label9 = new System.Windows.Forms.Label();
- this.numericBox2 = new Crystallography.Controls.NumericBox();
- this.flowLayoutPanel9 = new System.Windows.Forms.FlowLayoutPanel();
- this.label12 = new System.Windows.Forms.Label();
- this.numericBox3 = new Crystallography.Controls.NumericBox();
- this.label17 = new System.Windows.Forms.Label();
- this.numericBox4 = new Crystallography.Controls.NumericBox();
- this.checkBoxDetailAtomicPositionError = new System.Windows.Forms.CheckBox();
- this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
- this.tabControl = new System.Windows.Forms.TabControl();
- this.tabPageElementAndPosition = new System.Windows.Forms.TabPage();
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.numericBoxOccerr = new Crystallography.Controls.NumericBox();
- this.numericBoxOcc = new Crystallography.Controls.NumericBox();
- this.numericBoxZ = new Crystallography.Controls.NumericBox();
- this.numericBoxYerr = new Crystallography.Controls.NumericBox();
- this.numericBoxXerr = new Crystallography.Controls.NumericBox();
- this.numericBoxY = new Crystallography.Controls.NumericBox();
- this.numericBoxX = new Crystallography.Controls.NumericBox();
- this.numericBoxZerr = new Crystallography.Controls.NumericBox();
- this.tabPageOriginShift = new System.Windows.Forms.TabPage();
- this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
- this.radioButtonOriginShiftPlus = new System.Windows.Forms.RadioButton();
- this.radioButtonOriginShiftMinus = new System.Windows.Forms.RadioButton();
- this.buttonOriginShift1 = new System.Windows.Forms.Button();
- this.buttonOriginShift2 = new System.Windows.Forms.Button();
- this.buttonOriginShift8 = new System.Windows.Forms.Button();
- this.buttonOriginShift7 = new System.Windows.Forms.Button();
- this.buttonOriginShift6 = new System.Windows.Forms.Button();
- this.buttonOriginShift5 = new System.Windows.Forms.Button();
- this.buttonOriginShift4 = new System.Windows.Forms.Button();
- this.buttonOriginShift3 = new System.Windows.Forms.Button();
- this.buttonOriginShift9 = new System.Windows.Forms.Button();
- this.label7 = new System.Windows.Forms.Label();
- this.buttonOriginShiftCustom = new System.Windows.Forms.Button();
- this.numericBoxOriginShiftZ = new Crystallography.Controls.NumericBox();
- this.numericBoxOriginShiftY = new Crystallography.Controls.NumericBox();
- this.numericBoxOriginShiftX = new Crystallography.Controls.NumericBox();
- this.tabPageDebyeWaller = new System.Windows.Forms.TabPage();
- this.flowLayoutPanel6 = new System.Windows.Forms.FlowLayoutPanel();
- this.label14 = new System.Windows.Forms.Label();
- this.labelDimension = new System.Windows.Forms.Label();
- this.flowLayoutPanel5 = new System.Windows.Forms.FlowLayoutPanel();
- this.label3 = new System.Windows.Forms.Label();
- this.radioButtonDebyeWallerTypeU = new System.Windows.Forms.RadioButton();
- this.radioButtonDebyeWallerTypeB = new System.Windows.Forms.RadioButton();
- this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
- this.label13 = new System.Windows.Forms.Label();
- this.checkBoxDetailsDebyeWallerError = new System.Windows.Forms.CheckBox();
- this.flowLayoutPanelAniso2 = new System.Windows.Forms.FlowLayoutPanel();
- this.numericBoxB22 = new Crystallography.Controls.NumericBox();
- this.numericBoxB22err = new Crystallography.Controls.NumericBox();
- this.numericBoxB23 = new Crystallography.Controls.NumericBox();
- this.numericBoxB23err = new Crystallography.Controls.NumericBox();
- this.numericBoxB33 = new Crystallography.Controls.NumericBox();
- this.numericBoxB33err = new Crystallography.Controls.NumericBox();
- this.flowLayoutPanelAniso1 = new System.Windows.Forms.FlowLayoutPanel();
- this.numericBoxB11 = new Crystallography.Controls.NumericBox();
- this.numericBoxB11err = new Crystallography.Controls.NumericBox();
- this.numericBoxB12 = new Crystallography.Controls.NumericBox();
- this.numericBoxB12err = new Crystallography.Controls.NumericBox();
- this.numericBoxB13 = new Crystallography.Controls.NumericBox();
- this.numericBoxB13err = new Crystallography.Controls.NumericBox();
- this.tabPageScatteringFactor = new System.Windows.Forms.TabPage();
- this.richTextBoxIsotope = new System.Windows.Forms.RichTextBox();
- this.label34 = new System.Windows.Forms.Label();
- this.buttonEditIsotopeAbundance = new System.Windows.Forms.Button();
- this.label5 = new System.Windows.Forms.Label();
- this.comboBoxScatteringFactorElectron = new System.Windows.Forms.ComboBox();
- this.comboBoxNeutron = new System.Windows.Forms.ComboBox();
- this.comboBoxScatteringFactorXray = new System.Windows.Forms.ComboBox();
- this.label6 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.tabPageAppearance = new System.Windows.Forms.TabPage();
- this.numericBoxAlpha = new Crystallography.Controls.NumericBox();
- this.numericBoxEmission = new Crystallography.Controls.NumericBox();
- this.numericBoxShininess = new Crystallography.Controls.NumericBox();
- this.numericBoxSpecular = new Crystallography.Controls.NumericBox();
- this.numericBoxDiffusion = new Crystallography.Controls.NumericBox();
- this.numericBoxAmbient = new Crystallography.Controls.NumericBox();
- this.checkBoxShowLabel = new System.Windows.Forms.CheckBox();
- this.label10 = new System.Windows.Forms.Label();
- this.label37 = new System.Windows.Forms.Label();
- this.label38 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.label35 = new System.Windows.Forms.Label();
- this.label36 = new System.Windows.Forms.Label();
- this.numericBoxAtomRadius = new Crystallography.Controls.NumericBox();
- this.colorControlAtomColor = new Crystallography.Controls.ColorControl();
- this.toolTip = new System.Windows.Forms.ToolTip(this.components);
- this.buttonApplyToSameElement = new System.Windows.Forms.Button();
- this.buttonAddAtom = new System.Windows.Forms.Button();
- this.buttonChange = new System.Windows.Forms.Button();
- this.buttonApplyToAllElements = new System.Windows.Forms.Button();
- this.buttonAtomUp = new System.Windows.Forms.Button();
- this.buttonAtomDown = new System.Windows.Forms.Button();
- this.buttonDeleteAtom = new System.Windows.Forms.Button();
- this.dataGridView = new System.Windows.Forms.DataGridView();
- this.enabledColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
- this.labelDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.elementDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.xDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.yDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.zDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.occDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.multiDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.wyckLetDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.siteSymDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
- this.dataSet = new Crystallography.Controls.DataSet();
- this.panel1 = new System.Windows.Forms.Panel();
- this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.flowLayoutPanelIso.SuspendLayout();
- this.tableLayoutPanel4.SuspendLayout();
- this.flowLayoutPanel8.SuspendLayout();
- this.flowLayoutPanel9.SuspendLayout();
- this.tabControl.SuspendLayout();
- this.tabPageElementAndPosition.SuspendLayout();
- this.tableLayoutPanel1.SuspendLayout();
- this.tabPageOriginShift.SuspendLayout();
- this.flowLayoutPanel3.SuspendLayout();
- this.tabPageDebyeWaller.SuspendLayout();
- this.flowLayoutPanel6.SuspendLayout();
- this.flowLayoutPanel5.SuspendLayout();
- this.flowLayoutPanel4.SuspendLayout();
- this.flowLayoutPanelAniso2.SuspendLayout();
- this.flowLayoutPanelAniso1.SuspendLayout();
- this.tabPageScatteringFactor.SuspendLayout();
- this.tabPageAppearance.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet)).BeginInit();
- this.panel1.SuspendLayout();
- this.SuspendLayout();
+ radioButtonIsotoropy = new System.Windows.Forms.RadioButton();
+ radioButtonAnisotropy = new System.Windows.Forms.RadioButton();
+ flowLayoutPanelIso = new System.Windows.Forms.FlowLayoutPanel();
+ numericBoxBiso = new NumericBox();
+ numericBoxBisoerr = new NumericBox();
+ flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ labelX_ = new System.Windows.Forms.Label();
+ flowLayoutPanelLabel = new System.Windows.Forms.FlowLayoutPanel();
+ label1 = new System.Windows.Forms.Label();
+ textBoxLabel = new System.Windows.Forms.TextBox();
+ label2 = new System.Windows.Forms.Label();
+ comboBoxAtom = new System.Windows.Forms.ComboBox();
+ flowLayoutPanelPosition = new System.Windows.Forms.FlowLayoutPanel();
+ tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
+ flowLayoutPanel8 = new System.Windows.Forms.FlowLayoutPanel();
+ label8 = new System.Windows.Forms.Label();
+ numericBox1 = new NumericBox();
+ label9 = new System.Windows.Forms.Label();
+ numericBox2 = new NumericBox();
+ flowLayoutPanel9 = new System.Windows.Forms.FlowLayoutPanel();
+ label12 = new System.Windows.Forms.Label();
+ numericBox3 = new NumericBox();
+ label17 = new System.Windows.Forms.Label();
+ numericBox4 = new NumericBox();
+ checkBoxDetailAtomicPositionError = new System.Windows.Forms.CheckBox();
+ flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
+ tabControl = new System.Windows.Forms.TabControl();
+ tabPageElementAndPosition = new System.Windows.Forms.TabPage();
+ tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ numericBoxOccerr = new NumericBox();
+ numericBoxOcc = new NumericBox();
+ numericBoxZ = new NumericBox();
+ numericBoxYerr = new NumericBox();
+ numericBoxXerr = new NumericBox();
+ numericBoxY = new NumericBox();
+ numericBoxX = new NumericBox();
+ numericBoxZerr = new NumericBox();
+ tabPageOriginShift = new System.Windows.Forms.TabPage();
+ flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
+ radioButtonOriginShiftPlus = new System.Windows.Forms.RadioButton();
+ radioButtonOriginShiftMinus = new System.Windows.Forms.RadioButton();
+ buttonOriginShift1 = new System.Windows.Forms.Button();
+ buttonOriginShift2 = new System.Windows.Forms.Button();
+ buttonOriginShift8 = new System.Windows.Forms.Button();
+ buttonOriginShift7 = new System.Windows.Forms.Button();
+ buttonOriginShift6 = new System.Windows.Forms.Button();
+ buttonOriginShift5 = new System.Windows.Forms.Button();
+ buttonOriginShift4 = new System.Windows.Forms.Button();
+ buttonOriginShift3 = new System.Windows.Forms.Button();
+ buttonOriginShift9 = new System.Windows.Forms.Button();
+ label7 = new System.Windows.Forms.Label();
+ buttonOriginShiftCustom = new System.Windows.Forms.Button();
+ numericBoxOriginShiftZ = new NumericBox();
+ numericBoxOriginShiftY = new NumericBox();
+ numericBoxOriginShiftX = new NumericBox();
+ tabPageDebyeWaller = new System.Windows.Forms.TabPage();
+ flowLayoutPanel6 = new System.Windows.Forms.FlowLayoutPanel();
+ label14 = new System.Windows.Forms.Label();
+ labelDimension = new System.Windows.Forms.Label();
+ flowLayoutPanel5 = new System.Windows.Forms.FlowLayoutPanel();
+ label3 = new System.Windows.Forms.Label();
+ radioButtonDebyeWallerTypeU = new System.Windows.Forms.RadioButton();
+ radioButtonDebyeWallerTypeB = new System.Windows.Forms.RadioButton();
+ flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
+ label13 = new System.Windows.Forms.Label();
+ checkBoxDetailsDebyeWallerError = new System.Windows.Forms.CheckBox();
+ flowLayoutPanelAniso2 = new System.Windows.Forms.FlowLayoutPanel();
+ numericBoxB22 = new NumericBox();
+ numericBoxB22err = new NumericBox();
+ numericBoxB23 = new NumericBox();
+ numericBoxB23err = new NumericBox();
+ numericBoxB33 = new NumericBox();
+ numericBoxB33err = new NumericBox();
+ flowLayoutPanelAniso1 = new System.Windows.Forms.FlowLayoutPanel();
+ numericBoxB11 = new NumericBox();
+ numericBoxB11err = new NumericBox();
+ numericBoxB12 = new NumericBox();
+ numericBoxB12err = new NumericBox();
+ numericBoxB13 = new NumericBox();
+ numericBoxB13err = new NumericBox();
+ tabPageScatteringFactor = new System.Windows.Forms.TabPage();
+ richTextBoxIsotope = new System.Windows.Forms.RichTextBox();
+ label34 = new System.Windows.Forms.Label();
+ buttonEditIsotopeAbundance = new System.Windows.Forms.Button();
+ label5 = new System.Windows.Forms.Label();
+ comboBoxScatteringFactorElectron = new System.Windows.Forms.ComboBox();
+ comboBoxNeutron = new System.Windows.Forms.ComboBox();
+ comboBoxScatteringFactorXray = new System.Windows.Forms.ComboBox();
+ label6 = new System.Windows.Forms.Label();
+ label4 = new System.Windows.Forms.Label();
+ tabPageAppearance = new System.Windows.Forms.TabPage();
+ numericBoxAlpha = new NumericBox();
+ numericBoxEmission = new NumericBox();
+ numericBoxShininess = new NumericBox();
+ numericBoxSpecular = new NumericBox();
+ numericBoxDiffusion = new NumericBox();
+ numericBoxAmbient = new NumericBox();
+ checkBoxShowLabel = new System.Windows.Forms.CheckBox();
+ label10 = new System.Windows.Forms.Label();
+ label37 = new System.Windows.Forms.Label();
+ label38 = new System.Windows.Forms.Label();
+ label11 = new System.Windows.Forms.Label();
+ label35 = new System.Windows.Forms.Label();
+ label36 = new System.Windows.Forms.Label();
+ numericBoxAtomRadius = new NumericBox();
+ colorControlAtomColor = new ColorControl();
+ toolTip = new System.Windows.Forms.ToolTip(components);
+ buttonApplyToSameElement = new System.Windows.Forms.Button();
+ buttonAddAtom = new System.Windows.Forms.Button();
+ buttonChange = new System.Windows.Forms.Button();
+ buttonApplyToAllElements = new System.Windows.Forms.Button();
+ buttonAtomUp = new System.Windows.Forms.Button();
+ buttonAtomDown = new System.Windows.Forms.Button();
+ buttonDeleteAtom = new System.Windows.Forms.Button();
+ dataGridView = new System.Windows.Forms.DataGridView();
+ enabledColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ labelDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ elementDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ xDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ yDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ zDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ occDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ multiDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ wyckLetDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ siteSymDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ bindingSource = new System.Windows.Forms.BindingSource(components);
+ dataSet = new DataSet();
+ panel1 = new System.Windows.Forms.Panel();
+ dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ flowLayoutPanelIso.SuspendLayout();
+ tableLayoutPanel4.SuspendLayout();
+ flowLayoutPanel8.SuspendLayout();
+ flowLayoutPanel9.SuspendLayout();
+ tabControl.SuspendLayout();
+ tabPageElementAndPosition.SuspendLayout();
+ tableLayoutPanel1.SuspendLayout();
+ tabPageOriginShift.SuspendLayout();
+ flowLayoutPanel3.SuspendLayout();
+ tabPageDebyeWaller.SuspendLayout();
+ flowLayoutPanel6.SuspendLayout();
+ flowLayoutPanel5.SuspendLayout();
+ flowLayoutPanel4.SuspendLayout();
+ flowLayoutPanelAniso2.SuspendLayout();
+ flowLayoutPanelAniso1.SuspendLayout();
+ tabPageScatteringFactor.SuspendLayout();
+ tabPageAppearance.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)bindingSource).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)dataSet).BeginInit();
+ panel1.SuspendLayout();
+ SuspendLayout();
//
// radioButtonIsotoropy
//
- resources.ApplyResources(this.radioButtonIsotoropy, "radioButtonIsotoropy");
- this.radioButtonIsotoropy.Checked = true;
- this.radioButtonIsotoropy.Name = "radioButtonIsotoropy";
- this.radioButtonIsotoropy.TabStop = true;
- this.radioButtonIsotoropy.CheckedChanged += new System.EventHandler(this.radioButtonIsotoropy_CheckedChanged);
+ resources.ApplyResources(radioButtonIsotoropy, "radioButtonIsotoropy");
+ radioButtonIsotoropy.Checked = true;
+ radioButtonIsotoropy.Name = "radioButtonIsotoropy";
+ radioButtonIsotoropy.TabStop = true;
+ radioButtonIsotoropy.CheckedChanged += radioButtonIsotoropy_CheckedChanged;
//
// radioButtonAnisotropy
//
- resources.ApplyResources(this.radioButtonAnisotropy, "radioButtonAnisotropy");
- this.radioButtonAnisotropy.Name = "radioButtonAnisotropy";
- this.radioButtonAnisotropy.CheckedChanged += new System.EventHandler(this.radioButtonIsotoropy_CheckedChanged);
+ resources.ApplyResources(radioButtonAnisotropy, "radioButtonAnisotropy");
+ radioButtonAnisotropy.Name = "radioButtonAnisotropy";
+ radioButtonAnisotropy.CheckedChanged += radioButtonIsotoropy_CheckedChanged;
//
// flowLayoutPanelIso
//
- resources.ApplyResources(this.flowLayoutPanelIso, "flowLayoutPanelIso");
- this.flowLayoutPanelIso.Controls.Add(this.numericBoxBiso);
- this.flowLayoutPanelIso.Controls.Add(this.numericBoxBisoerr);
- this.flowLayoutPanelIso.Name = "flowLayoutPanelIso";
+ resources.ApplyResources(flowLayoutPanelIso, "flowLayoutPanelIso");
+ flowLayoutPanelIso.Controls.Add(numericBoxBiso);
+ flowLayoutPanelIso.Controls.Add(numericBoxBisoerr);
+ flowLayoutPanelIso.Name = "flowLayoutPanelIso";
//
// numericBoxBiso
//
- resources.ApplyResources(this.numericBoxBiso, "numericBoxBiso");
- this.numericBoxBiso.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxBiso.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxBiso.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxBiso.Name = "numericBoxBiso";
- this.numericBoxBiso.RoundErrorAccuracy = -1;
- this.numericBoxBiso.SkipEventDuringInput = false;
- this.numericBoxBiso.SmartIncrement = true;
- this.numericBoxBiso.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxBiso.ThonsandsSeparator = true;
+ resources.ApplyResources(numericBoxBiso, "numericBoxBiso");
+ numericBoxBiso.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxBiso.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxBiso.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxBiso.Name = "numericBoxBiso";
+ numericBoxBiso.RoundErrorAccuracy = -1;
+ numericBoxBiso.SkipEventDuringInput = false;
+ numericBoxBiso.SmartIncrement = true;
+ numericBoxBiso.ThonsandsSeparator = true;
//
// numericBoxBisoerr
//
- this.numericBoxBisoerr.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxBisoerr, "numericBoxBisoerr");
- this.numericBoxBisoerr.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxBisoerr.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxBisoerr.Name = "numericBoxBisoerr";
- this.numericBoxBisoerr.RoundErrorAccuracy = -1;
- this.numericBoxBisoerr.SkipEventDuringInput = false;
- this.numericBoxBisoerr.SmartIncrement = true;
- this.numericBoxBisoerr.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxBisoerr.ThonsandsSeparator = true;
+ numericBoxBisoerr.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxBisoerr, "numericBoxBisoerr");
+ numericBoxBisoerr.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxBisoerr.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxBisoerr.Name = "numericBoxBisoerr";
+ numericBoxBisoerr.RoundErrorAccuracy = -1;
+ numericBoxBisoerr.SkipEventDuringInput = false;
+ numericBoxBisoerr.SmartIncrement = true;
+ numericBoxBisoerr.ThonsandsSeparator = true;
//
// flowLayoutPanel1
//
- resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
- this.flowLayoutPanel1.Name = "flowLayoutPanel1";
+ resources.ApplyResources(flowLayoutPanel1, "flowLayoutPanel1");
+ flowLayoutPanel1.Name = "flowLayoutPanel1";
//
// labelX_
//
- resources.ApplyResources(this.labelX_, "labelX_");
- this.labelX_.Name = "labelX_";
+ resources.ApplyResources(labelX_, "labelX_");
+ labelX_.Name = "labelX_";
//
// flowLayoutPanelLabel
//
- resources.ApplyResources(this.flowLayoutPanelLabel, "flowLayoutPanelLabel");
- this.flowLayoutPanelLabel.Name = "flowLayoutPanelLabel";
+ resources.ApplyResources(flowLayoutPanelLabel, "flowLayoutPanelLabel");
+ flowLayoutPanelLabel.Name = "flowLayoutPanelLabel";
//
// label1
//
- resources.ApplyResources(this.label1, "label1");
- this.label1.Name = "label1";
- this.toolTip.SetToolTip(this.label1, resources.GetString("label1.ToolTip"));
+ resources.ApplyResources(label1, "label1");
+ label1.Name = "label1";
+ toolTip.SetToolTip(label1, resources.GetString("label1.ToolTip"));
//
// textBoxLabel
//
- resources.ApplyResources(this.textBoxLabel, "textBoxLabel");
- this.textBoxLabel.Name = "textBoxLabel";
- this.toolTip.SetToolTip(this.textBoxLabel, resources.GetString("textBoxLabel.ToolTip"));
+ resources.ApplyResources(textBoxLabel, "textBoxLabel");
+ textBoxLabel.Name = "textBoxLabel";
+ toolTip.SetToolTip(textBoxLabel, resources.GetString("textBoxLabel.ToolTip"));
//
// label2
//
- resources.ApplyResources(this.label2, "label2");
- this.label2.Name = "label2";
- this.toolTip.SetToolTip(this.label2, resources.GetString("label2.ToolTip"));
+ resources.ApplyResources(label2, "label2");
+ label2.Name = "label2";
+ toolTip.SetToolTip(label2, resources.GetString("label2.ToolTip"));
//
// comboBoxAtom
//
- resources.ApplyResources(this.comboBoxAtom, "comboBoxAtom");
- this.comboBoxAtom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBoxAtom.Items.AddRange(new object[] {
- resources.GetString("comboBoxAtom.Items"),
- resources.GetString("comboBoxAtom.Items1"),
- resources.GetString("comboBoxAtom.Items2"),
- resources.GetString("comboBoxAtom.Items3"),
- resources.GetString("comboBoxAtom.Items4"),
- resources.GetString("comboBoxAtom.Items5"),
- resources.GetString("comboBoxAtom.Items6"),
- resources.GetString("comboBoxAtom.Items7"),
- resources.GetString("comboBoxAtom.Items8"),
- resources.GetString("comboBoxAtom.Items9"),
- resources.GetString("comboBoxAtom.Items10"),
- resources.GetString("comboBoxAtom.Items11"),
- resources.GetString("comboBoxAtom.Items12"),
- resources.GetString("comboBoxAtom.Items13"),
- resources.GetString("comboBoxAtom.Items14"),
- resources.GetString("comboBoxAtom.Items15"),
- resources.GetString("comboBoxAtom.Items16"),
- resources.GetString("comboBoxAtom.Items17"),
- resources.GetString("comboBoxAtom.Items18"),
- resources.GetString("comboBoxAtom.Items19"),
- resources.GetString("comboBoxAtom.Items20"),
- resources.GetString("comboBoxAtom.Items21"),
- resources.GetString("comboBoxAtom.Items22"),
- resources.GetString("comboBoxAtom.Items23"),
- resources.GetString("comboBoxAtom.Items24"),
- resources.GetString("comboBoxAtom.Items25"),
- resources.GetString("comboBoxAtom.Items26"),
- resources.GetString("comboBoxAtom.Items27"),
- resources.GetString("comboBoxAtom.Items28"),
- resources.GetString("comboBoxAtom.Items29"),
- resources.GetString("comboBoxAtom.Items30"),
- resources.GetString("comboBoxAtom.Items31"),
- resources.GetString("comboBoxAtom.Items32"),
- resources.GetString("comboBoxAtom.Items33"),
- resources.GetString("comboBoxAtom.Items34"),
- resources.GetString("comboBoxAtom.Items35"),
- resources.GetString("comboBoxAtom.Items36"),
- resources.GetString("comboBoxAtom.Items37"),
- resources.GetString("comboBoxAtom.Items38"),
- resources.GetString("comboBoxAtom.Items39"),
- resources.GetString("comboBoxAtom.Items40"),
- resources.GetString("comboBoxAtom.Items41"),
- resources.GetString("comboBoxAtom.Items42"),
- resources.GetString("comboBoxAtom.Items43"),
- resources.GetString("comboBoxAtom.Items44"),
- resources.GetString("comboBoxAtom.Items45"),
- resources.GetString("comboBoxAtom.Items46"),
- resources.GetString("comboBoxAtom.Items47"),
- resources.GetString("comboBoxAtom.Items48"),
- resources.GetString("comboBoxAtom.Items49"),
- resources.GetString("comboBoxAtom.Items50"),
- resources.GetString("comboBoxAtom.Items51"),
- resources.GetString("comboBoxAtom.Items52"),
- resources.GetString("comboBoxAtom.Items53"),
- resources.GetString("comboBoxAtom.Items54"),
- resources.GetString("comboBoxAtom.Items55"),
- resources.GetString("comboBoxAtom.Items56"),
- resources.GetString("comboBoxAtom.Items57"),
- resources.GetString("comboBoxAtom.Items58"),
- resources.GetString("comboBoxAtom.Items59"),
- resources.GetString("comboBoxAtom.Items60"),
- resources.GetString("comboBoxAtom.Items61"),
- resources.GetString("comboBoxAtom.Items62"),
- resources.GetString("comboBoxAtom.Items63"),
- resources.GetString("comboBoxAtom.Items64"),
- resources.GetString("comboBoxAtom.Items65"),
- resources.GetString("comboBoxAtom.Items66"),
- resources.GetString("comboBoxAtom.Items67"),
- resources.GetString("comboBoxAtom.Items68"),
- resources.GetString("comboBoxAtom.Items69"),
- resources.GetString("comboBoxAtom.Items70"),
- resources.GetString("comboBoxAtom.Items71"),
- resources.GetString("comboBoxAtom.Items72"),
- resources.GetString("comboBoxAtom.Items73"),
- resources.GetString("comboBoxAtom.Items74"),
- resources.GetString("comboBoxAtom.Items75"),
- resources.GetString("comboBoxAtom.Items76"),
- resources.GetString("comboBoxAtom.Items77"),
- resources.GetString("comboBoxAtom.Items78"),
- resources.GetString("comboBoxAtom.Items79"),
- resources.GetString("comboBoxAtom.Items80"),
- resources.GetString("comboBoxAtom.Items81"),
- resources.GetString("comboBoxAtom.Items82"),
- resources.GetString("comboBoxAtom.Items83"),
- resources.GetString("comboBoxAtom.Items84"),
- resources.GetString("comboBoxAtom.Items85"),
- resources.GetString("comboBoxAtom.Items86"),
- resources.GetString("comboBoxAtom.Items87"),
- resources.GetString("comboBoxAtom.Items88"),
- resources.GetString("comboBoxAtom.Items89"),
- resources.GetString("comboBoxAtom.Items90"),
- resources.GetString("comboBoxAtom.Items91"),
- resources.GetString("comboBoxAtom.Items92"),
- resources.GetString("comboBoxAtom.Items93"),
- resources.GetString("comboBoxAtom.Items94"),
- resources.GetString("comboBoxAtom.Items95"),
- resources.GetString("comboBoxAtom.Items96"),
- resources.GetString("comboBoxAtom.Items97")});
- this.comboBoxAtom.Name = "comboBoxAtom";
- this.toolTip.SetToolTip(this.comboBoxAtom, resources.GetString("comboBoxAtom.ToolTip"));
- this.comboBoxAtom.SelectedIndexChanged += new System.EventHandler(this.comboBoxAtom_SelectedIndexChanged);
+ resources.ApplyResources(comboBoxAtom, "comboBoxAtom");
+ comboBoxAtom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ comboBoxAtom.Items.AddRange(new object[] { resources.GetString("comboBoxAtom.Items"), resources.GetString("comboBoxAtom.Items1"), resources.GetString("comboBoxAtom.Items2"), resources.GetString("comboBoxAtom.Items3"), resources.GetString("comboBoxAtom.Items4"), resources.GetString("comboBoxAtom.Items5"), resources.GetString("comboBoxAtom.Items6"), resources.GetString("comboBoxAtom.Items7"), resources.GetString("comboBoxAtom.Items8"), resources.GetString("comboBoxAtom.Items9"), resources.GetString("comboBoxAtom.Items10"), resources.GetString("comboBoxAtom.Items11"), resources.GetString("comboBoxAtom.Items12"), resources.GetString("comboBoxAtom.Items13"), resources.GetString("comboBoxAtom.Items14"), resources.GetString("comboBoxAtom.Items15"), resources.GetString("comboBoxAtom.Items16"), resources.GetString("comboBoxAtom.Items17"), resources.GetString("comboBoxAtom.Items18"), resources.GetString("comboBoxAtom.Items19"), resources.GetString("comboBoxAtom.Items20"), resources.GetString("comboBoxAtom.Items21"), resources.GetString("comboBoxAtom.Items22"), resources.GetString("comboBoxAtom.Items23"), resources.GetString("comboBoxAtom.Items24"), resources.GetString("comboBoxAtom.Items25"), resources.GetString("comboBoxAtom.Items26"), resources.GetString("comboBoxAtom.Items27"), resources.GetString("comboBoxAtom.Items28"), resources.GetString("comboBoxAtom.Items29"), resources.GetString("comboBoxAtom.Items30"), resources.GetString("comboBoxAtom.Items31"), resources.GetString("comboBoxAtom.Items32"), resources.GetString("comboBoxAtom.Items33"), resources.GetString("comboBoxAtom.Items34"), resources.GetString("comboBoxAtom.Items35"), resources.GetString("comboBoxAtom.Items36"), resources.GetString("comboBoxAtom.Items37"), resources.GetString("comboBoxAtom.Items38"), resources.GetString("comboBoxAtom.Items39"), resources.GetString("comboBoxAtom.Items40"), resources.GetString("comboBoxAtom.Items41"), resources.GetString("comboBoxAtom.Items42"), resources.GetString("comboBoxAtom.Items43"), resources.GetString("comboBoxAtom.Items44"), resources.GetString("comboBoxAtom.Items45"), resources.GetString("comboBoxAtom.Items46"), resources.GetString("comboBoxAtom.Items47"), resources.GetString("comboBoxAtom.Items48"), resources.GetString("comboBoxAtom.Items49"), resources.GetString("comboBoxAtom.Items50"), resources.GetString("comboBoxAtom.Items51"), resources.GetString("comboBoxAtom.Items52"), resources.GetString("comboBoxAtom.Items53"), resources.GetString("comboBoxAtom.Items54"), resources.GetString("comboBoxAtom.Items55"), resources.GetString("comboBoxAtom.Items56"), resources.GetString("comboBoxAtom.Items57"), resources.GetString("comboBoxAtom.Items58"), resources.GetString("comboBoxAtom.Items59"), resources.GetString("comboBoxAtom.Items60"), resources.GetString("comboBoxAtom.Items61"), resources.GetString("comboBoxAtom.Items62"), resources.GetString("comboBoxAtom.Items63"), resources.GetString("comboBoxAtom.Items64"), resources.GetString("comboBoxAtom.Items65"), resources.GetString("comboBoxAtom.Items66"), resources.GetString("comboBoxAtom.Items67"), resources.GetString("comboBoxAtom.Items68"), resources.GetString("comboBoxAtom.Items69"), resources.GetString("comboBoxAtom.Items70"), resources.GetString("comboBoxAtom.Items71"), resources.GetString("comboBoxAtom.Items72"), resources.GetString("comboBoxAtom.Items73"), resources.GetString("comboBoxAtom.Items74"), resources.GetString("comboBoxAtom.Items75"), resources.GetString("comboBoxAtom.Items76"), resources.GetString("comboBoxAtom.Items77"), resources.GetString("comboBoxAtom.Items78"), resources.GetString("comboBoxAtom.Items79"), resources.GetString("comboBoxAtom.Items80"), resources.GetString("comboBoxAtom.Items81"), resources.GetString("comboBoxAtom.Items82"), resources.GetString("comboBoxAtom.Items83"), resources.GetString("comboBoxAtom.Items84"), resources.GetString("comboBoxAtom.Items85"), resources.GetString("comboBoxAtom.Items86"), resources.GetString("comboBoxAtom.Items87"), resources.GetString("comboBoxAtom.Items88"), resources.GetString("comboBoxAtom.Items89"), resources.GetString("comboBoxAtom.Items90"), resources.GetString("comboBoxAtom.Items91"), resources.GetString("comboBoxAtom.Items92"), resources.GetString("comboBoxAtom.Items93"), resources.GetString("comboBoxAtom.Items94"), resources.GetString("comboBoxAtom.Items95"), resources.GetString("comboBoxAtom.Items96"), resources.GetString("comboBoxAtom.Items97") });
+ comboBoxAtom.Name = "comboBoxAtom";
+ toolTip.SetToolTip(comboBoxAtom, resources.GetString("comboBoxAtom.ToolTip"));
+ comboBoxAtom.SelectedIndexChanged += comboBoxAtom_SelectedIndexChanged;
//
// flowLayoutPanelPosition
//
- resources.ApplyResources(this.flowLayoutPanelPosition, "flowLayoutPanelPosition");
- this.flowLayoutPanelPosition.Name = "flowLayoutPanelPosition";
+ resources.ApplyResources(flowLayoutPanelPosition, "flowLayoutPanelPosition");
+ flowLayoutPanelPosition.Name = "flowLayoutPanelPosition";
//
// tableLayoutPanel4
//
- resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4");
- this.tableLayoutPanel4.Controls.Add(this.flowLayoutPanel8, 3, 0);
- this.tableLayoutPanel4.Name = "tableLayoutPanel4";
+ resources.ApplyResources(tableLayoutPanel4, "tableLayoutPanel4");
+ tableLayoutPanel4.Controls.Add(flowLayoutPanel8, 3, 0);
+ tableLayoutPanel4.Name = "tableLayoutPanel4";
//
// flowLayoutPanel8
//
- resources.ApplyResources(this.flowLayoutPanel8, "flowLayoutPanel8");
- this.flowLayoutPanel8.Controls.Add(this.label8);
- this.flowLayoutPanel8.Controls.Add(this.numericBox1);
- this.flowLayoutPanel8.Controls.Add(this.label9);
- this.flowLayoutPanel8.Controls.Add(this.numericBox2);
- this.flowLayoutPanel8.Name = "flowLayoutPanel8";
+ resources.ApplyResources(flowLayoutPanel8, "flowLayoutPanel8");
+ flowLayoutPanel8.Controls.Add(label8);
+ flowLayoutPanel8.Controls.Add(numericBox1);
+ flowLayoutPanel8.Controls.Add(label9);
+ flowLayoutPanel8.Controls.Add(numericBox2);
+ flowLayoutPanel8.Name = "flowLayoutPanel8";
//
// label8
//
- resources.ApplyResources(this.label8, "label8");
- this.label8.Name = "label8";
+ resources.ApplyResources(label8, "label8");
+ label8.Name = "label8";
//
// numericBox1
//
- this.numericBox1.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBox1, "numericBox1");
- this.numericBox1.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBox1.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBox1.Name = "numericBox1";
- this.numericBox1.RoundErrorAccuracy = -1;
- this.numericBox1.ShowFraction = true;
- this.numericBox1.SkipEventDuringInput = false;
- this.numericBox1.SmartIncrement = true;
- this.numericBox1.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBox1.ThonsandsSeparator = true;
+ numericBox1.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBox1, "numericBox1");
+ numericBox1.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBox1.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBox1.Name = "numericBox1";
+ numericBox1.RoundErrorAccuracy = -1;
+ numericBox1.ShowFraction = true;
+ numericBox1.SkipEventDuringInput = false;
+ numericBox1.SmartIncrement = true;
+ numericBox1.ThonsandsSeparator = true;
//
// label9
//
- resources.ApplyResources(this.label9, "label9");
- this.label9.Name = "label9";
+ resources.ApplyResources(label9, "label9");
+ label9.Name = "label9";
//
// numericBox2
//
- this.numericBox2.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBox2, "numericBox2");
- this.numericBox2.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBox2.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBox2.Name = "numericBox2";
- this.numericBox2.RoundErrorAccuracy = -1;
- this.numericBox2.ShowFraction = true;
- this.numericBox2.SkipEventDuringInput = false;
- this.numericBox2.SmartIncrement = true;
- this.numericBox2.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBox2.ThonsandsSeparator = true;
+ numericBox2.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBox2, "numericBox2");
+ numericBox2.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBox2.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBox2.Name = "numericBox2";
+ numericBox2.RoundErrorAccuracy = -1;
+ numericBox2.ShowFraction = true;
+ numericBox2.SkipEventDuringInput = false;
+ numericBox2.SmartIncrement = true;
+ numericBox2.ThonsandsSeparator = true;
//
// flowLayoutPanel9
//
- resources.ApplyResources(this.flowLayoutPanel9, "flowLayoutPanel9");
- this.flowLayoutPanel9.Controls.Add(this.label12);
- this.flowLayoutPanel9.Controls.Add(this.numericBox3);
- this.flowLayoutPanel9.Controls.Add(this.label17);
- this.flowLayoutPanel9.Controls.Add(this.numericBox4);
- this.flowLayoutPanel9.Name = "flowLayoutPanel9";
+ resources.ApplyResources(flowLayoutPanel9, "flowLayoutPanel9");
+ flowLayoutPanel9.Controls.Add(label12);
+ flowLayoutPanel9.Controls.Add(numericBox3);
+ flowLayoutPanel9.Controls.Add(label17);
+ flowLayoutPanel9.Controls.Add(numericBox4);
+ flowLayoutPanel9.Name = "flowLayoutPanel9";
//
// label12
//
- resources.ApplyResources(this.label12, "label12");
- this.label12.Name = "label12";
+ resources.ApplyResources(label12, "label12");
+ label12.Name = "label12";
//
// numericBox3
//
- this.numericBox3.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBox3, "numericBox3");
- this.numericBox3.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBox3.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBox3.Name = "numericBox3";
- this.numericBox3.RoundErrorAccuracy = -1;
- this.numericBox3.ShowFraction = true;
- this.numericBox3.SkipEventDuringInput = false;
- this.numericBox3.SmartIncrement = true;
- this.numericBox3.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBox3.ThonsandsSeparator = true;
+ numericBox3.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBox3, "numericBox3");
+ numericBox3.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBox3.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBox3.Name = "numericBox3";
+ numericBox3.RoundErrorAccuracy = -1;
+ numericBox3.ShowFraction = true;
+ numericBox3.SkipEventDuringInput = false;
+ numericBox3.SmartIncrement = true;
+ numericBox3.ThonsandsSeparator = true;
//
// label17
//
- resources.ApplyResources(this.label17, "label17");
- this.label17.Name = "label17";
+ resources.ApplyResources(label17, "label17");
+ label17.Name = "label17";
//
// numericBox4
//
- this.numericBox4.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBox4, "numericBox4");
- this.numericBox4.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBox4.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBox4.Name = "numericBox4";
- this.numericBox4.RoundErrorAccuracy = -1;
- this.numericBox4.ShowFraction = true;
- this.numericBox4.SkipEventDuringInput = false;
- this.numericBox4.SmartIncrement = true;
- this.numericBox4.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBox4.ThonsandsSeparator = true;
+ numericBox4.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBox4, "numericBox4");
+ numericBox4.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBox4.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBox4.Name = "numericBox4";
+ numericBox4.RoundErrorAccuracy = -1;
+ numericBox4.ShowFraction = true;
+ numericBox4.SkipEventDuringInput = false;
+ numericBox4.SmartIncrement = true;
+ numericBox4.ThonsandsSeparator = true;
//
// checkBoxDetailAtomicPositionError
//
- resources.ApplyResources(this.checkBoxDetailAtomicPositionError, "checkBoxDetailAtomicPositionError");
- this.checkBoxDetailAtomicPositionError.Name = "checkBoxDetailAtomicPositionError";
- this.checkBoxDetailAtomicPositionError.UseVisualStyleBackColor = true;
- this.checkBoxDetailAtomicPositionError.CheckedChanged += new System.EventHandler(this.checkBoxAtomicPositionError_CheckedChanged);
+ resources.ApplyResources(checkBoxDetailAtomicPositionError, "checkBoxDetailAtomicPositionError");
+ checkBoxDetailAtomicPositionError.Name = "checkBoxDetailAtomicPositionError";
+ checkBoxDetailAtomicPositionError.UseVisualStyleBackColor = true;
+ checkBoxDetailAtomicPositionError.CheckedChanged += checkBoxAtomicPositionError_CheckedChanged;
//
// flowLayoutPanel2
//
- resources.ApplyResources(this.flowLayoutPanel2, "flowLayoutPanel2");
- this.flowLayoutPanel2.Name = "flowLayoutPanel2";
+ resources.ApplyResources(flowLayoutPanel2, "flowLayoutPanel2");
+ flowLayoutPanel2.Name = "flowLayoutPanel2";
//
// tabControl
//
- this.tabControl.Controls.Add(this.tabPageElementAndPosition);
- this.tabControl.Controls.Add(this.tabPageOriginShift);
- this.tabControl.Controls.Add(this.tabPageDebyeWaller);
- this.tabControl.Controls.Add(this.tabPageScatteringFactor);
- this.tabControl.Controls.Add(this.tabPageAppearance);
- resources.ApplyResources(this.tabControl, "tabControl");
- this.tabControl.HotTrack = true;
- this.tabControl.Multiline = true;
- this.tabControl.Name = "tabControl";
- this.tabControl.SelectedIndex = 0;
- this.tabControl.SelectedIndexChanged += new System.EventHandler(this.tabControl_SelectedIndexChanged);
+ tabControl.Controls.Add(tabPageElementAndPosition);
+ tabControl.Controls.Add(tabPageOriginShift);
+ tabControl.Controls.Add(tabPageDebyeWaller);
+ tabControl.Controls.Add(tabPageScatteringFactor);
+ tabControl.Controls.Add(tabPageAppearance);
+ resources.ApplyResources(tabControl, "tabControl");
+ tabControl.HotTrack = true;
+ tabControl.Multiline = true;
+ tabControl.Name = "tabControl";
+ tabControl.SelectedIndex = 0;
+ tabControl.SelectedIndexChanged += tabControl_SelectedIndexChanged;
//
// tabPageElementAndPosition
//
- this.tabPageElementAndPosition.BackColor = System.Drawing.Color.Transparent;
- this.tabPageElementAndPosition.Controls.Add(this.tableLayoutPanel1);
- this.tabPageElementAndPosition.Controls.Add(this.checkBoxDetailAtomicPositionError);
- this.tabPageElementAndPosition.Controls.Add(this.labelX_);
- this.tabPageElementAndPosition.Controls.Add(this.flowLayoutPanelLabel);
- this.tabPageElementAndPosition.Controls.Add(this.flowLayoutPanelPosition);
- resources.ApplyResources(this.tabPageElementAndPosition, "tabPageElementAndPosition");
- this.tabPageElementAndPosition.Name = "tabPageElementAndPosition";
+ tabPageElementAndPosition.BackColor = System.Drawing.Color.Transparent;
+ tabPageElementAndPosition.Controls.Add(tableLayoutPanel1);
+ tabPageElementAndPosition.Controls.Add(checkBoxDetailAtomicPositionError);
+ tabPageElementAndPosition.Controls.Add(labelX_);
+ tabPageElementAndPosition.Controls.Add(flowLayoutPanelLabel);
+ tabPageElementAndPosition.Controls.Add(flowLayoutPanelPosition);
+ resources.ApplyResources(tabPageElementAndPosition, "tabPageElementAndPosition");
+ tabPageElementAndPosition.Name = "tabPageElementAndPosition";
//
// tableLayoutPanel1
//
- resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
- this.tableLayoutPanel1.Controls.Add(this.numericBoxOccerr, 7, 0);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxOcc, 6, 0);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxZ, 3, 2);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxYerr, 4, 1);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxXerr, 4, 0);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxY, 3, 1);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxX, 3, 0);
- this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
- this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
- this.tableLayoutPanel1.Controls.Add(this.textBoxLabel, 1, 0);
- this.tableLayoutPanel1.Controls.Add(this.comboBoxAtom, 1, 1);
- this.tableLayoutPanel1.Controls.Add(this.numericBoxZerr, 4, 2);
- this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ resources.ApplyResources(tableLayoutPanel1, "tableLayoutPanel1");
+ tableLayoutPanel1.Controls.Add(numericBoxOccerr, 7, 0);
+ tableLayoutPanel1.Controls.Add(numericBoxOcc, 6, 0);
+ tableLayoutPanel1.Controls.Add(numericBoxZ, 3, 2);
+ tableLayoutPanel1.Controls.Add(numericBoxYerr, 4, 1);
+ tableLayoutPanel1.Controls.Add(numericBoxXerr, 4, 0);
+ tableLayoutPanel1.Controls.Add(numericBoxY, 3, 1);
+ tableLayoutPanel1.Controls.Add(numericBoxX, 3, 0);
+ tableLayoutPanel1.Controls.Add(label1, 0, 0);
+ tableLayoutPanel1.Controls.Add(label2, 0, 1);
+ tableLayoutPanel1.Controls.Add(textBoxLabel, 1, 0);
+ tableLayoutPanel1.Controls.Add(comboBoxAtom, 1, 1);
+ tableLayoutPanel1.Controls.Add(numericBoxZerr, 4, 2);
+ tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// numericBoxOccerr
//
- this.numericBoxOccerr.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOccerr.DecimalPlaces = 6;
- resources.ApplyResources(this.numericBoxOccerr, "numericBoxOccerr");
- this.numericBoxOccerr.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOccerr.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOccerr.Name = "numericBoxOccerr";
- this.numericBoxOccerr.RoundErrorAccuracy = -1;
- this.numericBoxOccerr.SkipEventDuringInput = false;
- this.numericBoxOccerr.SmartIncrement = true;
- this.numericBoxOccerr.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxOccerr.ThonsandsSeparator = true;
- this.numericBoxOccerr.TrimEndZero = true;
+ numericBoxOccerr.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxOccerr.DecimalPlaces = 6;
+ resources.ApplyResources(numericBoxOccerr, "numericBoxOccerr");
+ numericBoxOccerr.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOccerr.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOccerr.Name = "numericBoxOccerr";
+ numericBoxOccerr.RoundErrorAccuracy = -1;
+ numericBoxOccerr.SkipEventDuringInput = false;
+ numericBoxOccerr.SmartIncrement = true;
+ numericBoxOccerr.ThonsandsSeparator = true;
+ numericBoxOccerr.TrimEndZero = true;
//
// numericBoxOcc
//
- resources.ApplyResources(this.numericBoxOcc, "numericBoxOcc");
- this.numericBoxOcc.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOcc.DecimalPlaces = 6;
- this.numericBoxOcc.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOcc.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOcc.Name = "numericBoxOcc";
- this.numericBoxOcc.RoundErrorAccuracy = -1;
- this.numericBoxOcc.ShowFraction = true;
- this.numericBoxOcc.SkipEventDuringInput = false;
- this.numericBoxOcc.SmartIncrement = true;
- this.numericBoxOcc.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxOcc.ThonsandsSeparator = true;
- this.toolTip.SetToolTip(this.numericBoxOcc, resources.GetString("numericBoxOcc.ToolTip"));
- this.numericBoxOcc.TrimEndZero = true;
+ resources.ApplyResources(numericBoxOcc, "numericBoxOcc");
+ numericBoxOcc.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxOcc.DecimalPlaces = 6;
+ numericBoxOcc.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOcc.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOcc.Name = "numericBoxOcc";
+ numericBoxOcc.RoundErrorAccuracy = -1;
+ numericBoxOcc.ShowFraction = true;
+ numericBoxOcc.SkipEventDuringInput = false;
+ numericBoxOcc.SmartIncrement = true;
+ numericBoxOcc.ThonsandsSeparator = true;
+ toolTip.SetToolTip(numericBoxOcc, resources.GetString("numericBoxOcc.ToolTip"));
+ numericBoxOcc.TrimEndZero = true;
//
// numericBoxZ
//
- resources.ApplyResources(this.numericBoxZ, "numericBoxZ");
- this.numericBoxZ.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxZ.DecimalPlaces = 6;
- this.numericBoxZ.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxZ.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxZ.Name = "numericBoxZ";
- this.numericBoxZ.RoundErrorAccuracy = -1;
- this.numericBoxZ.ShowFraction = true;
- this.numericBoxZ.SkipEventDuringInput = false;
- this.numericBoxZ.SmartIncrement = true;
- this.numericBoxZ.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxZ.ThonsandsSeparator = true;
- this.numericBoxZ.TrimEndZero = true;
+ resources.ApplyResources(numericBoxZ, "numericBoxZ");
+ numericBoxZ.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxZ.DecimalPlaces = 6;
+ numericBoxZ.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxZ.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxZ.Name = "numericBoxZ";
+ numericBoxZ.RoundErrorAccuracy = -1;
+ numericBoxZ.ShowFraction = true;
+ numericBoxZ.SkipEventDuringInput = false;
+ numericBoxZ.SmartIncrement = true;
+ numericBoxZ.ThonsandsSeparator = true;
+ numericBoxZ.TrimEndZero = true;
//
// numericBoxYerr
//
- this.numericBoxYerr.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxYerr.DecimalPlaces = 6;
- resources.ApplyResources(this.numericBoxYerr, "numericBoxYerr");
- this.numericBoxYerr.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxYerr.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxYerr.Name = "numericBoxYerr";
- this.numericBoxYerr.RoundErrorAccuracy = -1;
- this.numericBoxYerr.SkipEventDuringInput = false;
- this.numericBoxYerr.SmartIncrement = true;
- this.numericBoxYerr.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxYerr.ThonsandsSeparator = true;
- this.numericBoxYerr.TrimEndZero = true;
+ numericBoxYerr.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxYerr.DecimalPlaces = 6;
+ resources.ApplyResources(numericBoxYerr, "numericBoxYerr");
+ numericBoxYerr.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxYerr.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxYerr.Name = "numericBoxYerr";
+ numericBoxYerr.RoundErrorAccuracy = -1;
+ numericBoxYerr.SkipEventDuringInput = false;
+ numericBoxYerr.SmartIncrement = true;
+ numericBoxYerr.ThonsandsSeparator = true;
+ numericBoxYerr.TrimEndZero = true;
//
// numericBoxXerr
//
- this.numericBoxXerr.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxXerr.DecimalPlaces = 6;
- resources.ApplyResources(this.numericBoxXerr, "numericBoxXerr");
- this.numericBoxXerr.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxXerr.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxXerr.Name = "numericBoxXerr";
- this.numericBoxXerr.RoundErrorAccuracy = -1;
- this.numericBoxXerr.SkipEventDuringInput = false;
- this.numericBoxXerr.SmartIncrement = true;
- this.numericBoxXerr.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxXerr.ThonsandsSeparator = true;
- this.numericBoxXerr.TrimEndZero = true;
+ numericBoxXerr.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxXerr.DecimalPlaces = 6;
+ resources.ApplyResources(numericBoxXerr, "numericBoxXerr");
+ numericBoxXerr.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxXerr.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxXerr.Name = "numericBoxXerr";
+ numericBoxXerr.RoundErrorAccuracy = -1;
+ numericBoxXerr.SkipEventDuringInput = false;
+ numericBoxXerr.SmartIncrement = true;
+ numericBoxXerr.ThonsandsSeparator = true;
+ numericBoxXerr.TrimEndZero = true;
//
// numericBoxY
//
- resources.ApplyResources(this.numericBoxY, "numericBoxY");
- this.numericBoxY.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxY.DecimalPlaces = 6;
- this.numericBoxY.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxY.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxY.Name = "numericBoxY";
- this.numericBoxY.RoundErrorAccuracy = -1;
- this.numericBoxY.ShowFraction = true;
- this.numericBoxY.SkipEventDuringInput = false;
- this.numericBoxY.SmartIncrement = true;
- this.numericBoxY.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxY.ThonsandsSeparator = true;
- this.numericBoxY.TrimEndZero = true;
+ resources.ApplyResources(numericBoxY, "numericBoxY");
+ numericBoxY.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxY.DecimalPlaces = 6;
+ numericBoxY.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxY.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxY.Name = "numericBoxY";
+ numericBoxY.RoundErrorAccuracy = -1;
+ numericBoxY.ShowFraction = true;
+ numericBoxY.SkipEventDuringInput = false;
+ numericBoxY.SmartIncrement = true;
+ numericBoxY.ThonsandsSeparator = true;
+ numericBoxY.TrimEndZero = true;
//
// numericBoxX
//
- resources.ApplyResources(this.numericBoxX, "numericBoxX");
- this.numericBoxX.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxX.DecimalPlaces = 6;
- this.numericBoxX.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxX.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxX.Name = "numericBoxX";
- this.numericBoxX.RoundErrorAccuracy = -1;
- this.numericBoxX.ShowFraction = true;
- this.numericBoxX.SkipEventDuringInput = false;
- this.numericBoxX.SmartIncrement = true;
- this.numericBoxX.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxX.ThonsandsSeparator = true;
- this.numericBoxX.TrimEndZero = true;
+ resources.ApplyResources(numericBoxX, "numericBoxX");
+ numericBoxX.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxX.DecimalPlaces = 6;
+ numericBoxX.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxX.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxX.Name = "numericBoxX";
+ numericBoxX.RoundErrorAccuracy = -1;
+ numericBoxX.ShowFraction = true;
+ numericBoxX.SkipEventDuringInput = false;
+ numericBoxX.SmartIncrement = true;
+ numericBoxX.ThonsandsSeparator = true;
+ numericBoxX.TrimEndZero = true;
//
// numericBoxZerr
//
- this.numericBoxZerr.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxZerr.DecimalPlaces = 6;
- resources.ApplyResources(this.numericBoxZerr, "numericBoxZerr");
- this.numericBoxZerr.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxZerr.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxZerr.Name = "numericBoxZerr";
- this.numericBoxZerr.RoundErrorAccuracy = -1;
- this.numericBoxZerr.SkipEventDuringInput = false;
- this.numericBoxZerr.SmartIncrement = true;
- this.numericBoxZerr.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxZerr.ThonsandsSeparator = true;
- this.numericBoxZerr.TrimEndZero = true;
+ numericBoxZerr.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxZerr.DecimalPlaces = 6;
+ resources.ApplyResources(numericBoxZerr, "numericBoxZerr");
+ numericBoxZerr.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxZerr.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxZerr.Name = "numericBoxZerr";
+ numericBoxZerr.RoundErrorAccuracy = -1;
+ numericBoxZerr.SkipEventDuringInput = false;
+ numericBoxZerr.SmartIncrement = true;
+ numericBoxZerr.ThonsandsSeparator = true;
+ numericBoxZerr.TrimEndZero = true;
//
// tabPageOriginShift
//
- this.tabPageOriginShift.Controls.Add(this.flowLayoutPanel3);
- this.tabPageOriginShift.Controls.Add(this.label7);
- this.tabPageOriginShift.Controls.Add(this.buttonOriginShiftCustom);
- this.tabPageOriginShift.Controls.Add(this.numericBoxOriginShiftZ);
- this.tabPageOriginShift.Controls.Add(this.numericBoxOriginShiftY);
- this.tabPageOriginShift.Controls.Add(this.numericBoxOriginShiftX);
- resources.ApplyResources(this.tabPageOriginShift, "tabPageOriginShift");
- this.tabPageOriginShift.Name = "tabPageOriginShift";
+ tabPageOriginShift.Controls.Add(flowLayoutPanel3);
+ tabPageOriginShift.Controls.Add(label7);
+ tabPageOriginShift.Controls.Add(buttonOriginShiftCustom);
+ tabPageOriginShift.Controls.Add(numericBoxOriginShiftZ);
+ tabPageOriginShift.Controls.Add(numericBoxOriginShiftY);
+ tabPageOriginShift.Controls.Add(numericBoxOriginShiftX);
+ resources.ApplyResources(tabPageOriginShift, "tabPageOriginShift");
+ tabPageOriginShift.Name = "tabPageOriginShift";
//
// flowLayoutPanel3
//
- this.flowLayoutPanel3.Controls.Add(this.radioButtonOriginShiftPlus);
- this.flowLayoutPanel3.Controls.Add(this.radioButtonOriginShiftMinus);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift1);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift2);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift8);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift7);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift6);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift5);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift4);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift3);
- this.flowLayoutPanel3.Controls.Add(this.buttonOriginShift9);
- resources.ApplyResources(this.flowLayoutPanel3, "flowLayoutPanel3");
- this.flowLayoutPanel3.Name = "flowLayoutPanel3";
+ flowLayoutPanel3.Controls.Add(radioButtonOriginShiftPlus);
+ flowLayoutPanel3.Controls.Add(radioButtonOriginShiftMinus);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift1);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift2);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift8);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift7);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift6);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift5);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift4);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift3);
+ flowLayoutPanel3.Controls.Add(buttonOriginShift9);
+ resources.ApplyResources(flowLayoutPanel3, "flowLayoutPanel3");
+ flowLayoutPanel3.Name = "flowLayoutPanel3";
//
// radioButtonOriginShiftPlus
//
- resources.ApplyResources(this.radioButtonOriginShiftPlus, "radioButtonOriginShiftPlus");
- this.radioButtonOriginShiftPlus.Checked = true;
- this.radioButtonOriginShiftPlus.Name = "radioButtonOriginShiftPlus";
- this.radioButtonOriginShiftPlus.TabStop = true;
- this.radioButtonOriginShiftPlus.UseVisualStyleBackColor = true;
+ resources.ApplyResources(radioButtonOriginShiftPlus, "radioButtonOriginShiftPlus");
+ radioButtonOriginShiftPlus.Checked = true;
+ radioButtonOriginShiftPlus.Name = "radioButtonOriginShiftPlus";
+ radioButtonOriginShiftPlus.TabStop = true;
+ radioButtonOriginShiftPlus.UseVisualStyleBackColor = true;
//
// radioButtonOriginShiftMinus
//
- resources.ApplyResources(this.radioButtonOriginShiftMinus, "radioButtonOriginShiftMinus");
- this.radioButtonOriginShiftMinus.Name = "radioButtonOriginShiftMinus";
- this.radioButtonOriginShiftMinus.UseVisualStyleBackColor = true;
+ resources.ApplyResources(radioButtonOriginShiftMinus, "radioButtonOriginShiftMinus");
+ radioButtonOriginShiftMinus.Name = "radioButtonOriginShiftMinus";
+ radioButtonOriginShiftMinus.UseVisualStyleBackColor = true;
//
// buttonOriginShift1
//
- resources.ApplyResources(this.buttonOriginShift1, "buttonOriginShift1");
- this.buttonOriginShift1.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift1.Name = "buttonOriginShift1";
- this.buttonOriginShift1.Tag = "0.125 0.125 0.125";
- this.buttonOriginShift1.UseVisualStyleBackColor = false;
- this.buttonOriginShift1.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift1, "buttonOriginShift1");
+ buttonOriginShift1.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift1.Name = "buttonOriginShift1";
+ buttonOriginShift1.Tag = "0.125 0.125 0.125";
+ buttonOriginShift1.UseVisualStyleBackColor = false;
+ buttonOriginShift1.Click += buttonOriginShift_Click;
//
// buttonOriginShift2
//
- resources.ApplyResources(this.buttonOriginShift2, "buttonOriginShift2");
- this.buttonOriginShift2.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift2.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift2.Name = "buttonOriginShift2";
- this.buttonOriginShift2.Tag = "0.25 0.25 0.25";
- this.buttonOriginShift2.UseVisualStyleBackColor = false;
- this.buttonOriginShift2.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift2, "buttonOriginShift2");
+ buttonOriginShift2.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift2.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift2.Name = "buttonOriginShift2";
+ buttonOriginShift2.Tag = "0.25 0.25 0.25";
+ buttonOriginShift2.UseVisualStyleBackColor = false;
+ buttonOriginShift2.Click += buttonOriginShift_Click;
//
// buttonOriginShift8
//
- resources.ApplyResources(this.buttonOriginShift8, "buttonOriginShift8");
- this.buttonOriginShift8.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift8.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift8.Name = "buttonOriginShift8";
- this.buttonOriginShift8.Tag = "0.25 -0.25 0.25";
- this.buttonOriginShift8.UseVisualStyleBackColor = false;
- this.buttonOriginShift8.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift8, "buttonOriginShift8");
+ buttonOriginShift8.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift8.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift8.Name = "buttonOriginShift8";
+ buttonOriginShift8.Tag = "0.25 -0.25 0.25";
+ buttonOriginShift8.UseVisualStyleBackColor = false;
+ buttonOriginShift8.Click += buttonOriginShift_Click;
//
// buttonOriginShift7
//
- resources.ApplyResources(this.buttonOriginShift7, "buttonOriginShift7");
- this.buttonOriginShift7.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift7.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift7.Name = "buttonOriginShift7";
- this.buttonOriginShift7.Tag = "0.25 -0.25 0";
- this.buttonOriginShift7.UseVisualStyleBackColor = false;
- this.buttonOriginShift7.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift7, "buttonOriginShift7");
+ buttonOriginShift7.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift7.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift7.Name = "buttonOriginShift7";
+ buttonOriginShift7.Tag = "0.25 -0.25 0";
+ buttonOriginShift7.UseVisualStyleBackColor = false;
+ buttonOriginShift7.Click += buttonOriginShift_Click;
//
// buttonOriginShift6
//
- resources.ApplyResources(this.buttonOriginShift6, "buttonOriginShift6");
- this.buttonOriginShift6.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift6.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift6.Name = "buttonOriginShift6";
- this.buttonOriginShift6.Tag = "0.25 0.25 0";
- this.buttonOriginShift6.UseVisualStyleBackColor = false;
- this.buttonOriginShift6.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift6, "buttonOriginShift6");
+ buttonOriginShift6.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift6.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift6.Name = "buttonOriginShift6";
+ buttonOriginShift6.Tag = "0.25 0.25 0";
+ buttonOriginShift6.UseVisualStyleBackColor = false;
+ buttonOriginShift6.Click += buttonOriginShift_Click;
//
// buttonOriginShift5
//
- resources.ApplyResources(this.buttonOriginShift5, "buttonOriginShift5");
- this.buttonOriginShift5.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift5.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift5.Name = "buttonOriginShift5";
- this.buttonOriginShift5.Tag = "0 0.25 0.25";
- this.buttonOriginShift5.UseVisualStyleBackColor = false;
- this.buttonOriginShift5.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift5, "buttonOriginShift5");
+ buttonOriginShift5.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift5.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift5.Name = "buttonOriginShift5";
+ buttonOriginShift5.Tag = "0 0.25 0.25";
+ buttonOriginShift5.UseVisualStyleBackColor = false;
+ buttonOriginShift5.Click += buttonOriginShift_Click;
//
// buttonOriginShift4
//
- resources.ApplyResources(this.buttonOriginShift4, "buttonOriginShift4");
- this.buttonOriginShift4.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift4.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift4.Name = "buttonOriginShift4";
- this.buttonOriginShift4.Tag = "0.25 0 0.25";
- this.buttonOriginShift4.UseVisualStyleBackColor = false;
- this.buttonOriginShift4.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift4, "buttonOriginShift4");
+ buttonOriginShift4.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift4.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift4.Name = "buttonOriginShift4";
+ buttonOriginShift4.Tag = "0.25 0 0.25";
+ buttonOriginShift4.UseVisualStyleBackColor = false;
+ buttonOriginShift4.Click += buttonOriginShift_Click;
//
// buttonOriginShift3
//
- resources.ApplyResources(this.buttonOriginShift3, "buttonOriginShift3");
- this.buttonOriginShift3.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift3.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift3.Name = "buttonOriginShift3";
- this.buttonOriginShift3.Tag = "0 0.25 0.125";
- this.buttonOriginShift3.UseVisualStyleBackColor = false;
- this.buttonOriginShift3.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift3, "buttonOriginShift3");
+ buttonOriginShift3.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift3.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift3.Name = "buttonOriginShift3";
+ buttonOriginShift3.Tag = "0 0.25 0.125";
+ buttonOriginShift3.UseVisualStyleBackColor = false;
+ buttonOriginShift3.Click += buttonOriginShift_Click;
//
// buttonOriginShift9
//
- resources.ApplyResources(this.buttonOriginShift9, "buttonOriginShift9");
- this.buttonOriginShift9.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShift9.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShift9.Name = "buttonOriginShift9";
- this.buttonOriginShift9.Tag = "0 0.25 -0.125";
- this.buttonOriginShift9.UseVisualStyleBackColor = false;
- this.buttonOriginShift9.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShift9, "buttonOriginShift9");
+ buttonOriginShift9.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShift9.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShift9.Name = "buttonOriginShift9";
+ buttonOriginShift9.Tag = "0 0.25 -0.125";
+ buttonOriginShift9.UseVisualStyleBackColor = false;
+ buttonOriginShift9.Click += buttonOriginShift_Click;
//
// label7
//
- resources.ApplyResources(this.label7, "label7");
- this.label7.Name = "label7";
+ resources.ApplyResources(label7, "label7");
+ label7.Name = "label7";
//
// buttonOriginShiftCustom
//
- resources.ApplyResources(this.buttonOriginShiftCustom, "buttonOriginShiftCustom");
- this.buttonOriginShiftCustom.BackColor = System.Drawing.Color.MediumSeaGreen;
- this.buttonOriginShiftCustom.ForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.buttonOriginShiftCustom.Name = "buttonOriginShiftCustom";
- this.buttonOriginShiftCustom.Tag = "+0.5";
- this.buttonOriginShiftCustom.UseVisualStyleBackColor = false;
- this.buttonOriginShiftCustom.Click += new System.EventHandler(this.buttonOriginShift_Click);
+ resources.ApplyResources(buttonOriginShiftCustom, "buttonOriginShiftCustom");
+ buttonOriginShiftCustom.BackColor = System.Drawing.Color.MediumSeaGreen;
+ buttonOriginShiftCustom.ForeColor = System.Drawing.SystemColors.ControlLightLight;
+ buttonOriginShiftCustom.Name = "buttonOriginShiftCustom";
+ buttonOriginShiftCustom.Tag = "+0.5";
+ buttonOriginShiftCustom.UseVisualStyleBackColor = false;
+ buttonOriginShiftCustom.Click += buttonOriginShift_Click;
//
// numericBoxOriginShiftZ
//
- resources.ApplyResources(this.numericBoxOriginShiftZ, "numericBoxOriginShiftZ");
- this.numericBoxOriginShiftZ.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftZ.DecimalPlaces = 4;
- this.numericBoxOriginShiftZ.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftZ.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftZ.Maximum = 1D;
- this.numericBoxOriginShiftZ.Minimum = -1D;
- this.numericBoxOriginShiftZ.Name = "numericBoxOriginShiftZ";
- this.numericBoxOriginShiftZ.RoundErrorAccuracy = -1;
- this.numericBoxOriginShiftZ.ShowFraction = true;
- this.numericBoxOriginShiftZ.SkipEventDuringInput = false;
- this.numericBoxOriginShiftZ.SmartIncrement = true;
- this.numericBoxOriginShiftZ.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxOriginShiftZ.ThonsandsSeparator = true;
+ resources.ApplyResources(numericBoxOriginShiftZ, "numericBoxOriginShiftZ");
+ numericBoxOriginShiftZ.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftZ.DecimalPlaces = 4;
+ numericBoxOriginShiftZ.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftZ.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftZ.Maximum = 1D;
+ numericBoxOriginShiftZ.Minimum = -1D;
+ numericBoxOriginShiftZ.Name = "numericBoxOriginShiftZ";
+ numericBoxOriginShiftZ.RoundErrorAccuracy = -1;
+ numericBoxOriginShiftZ.ShowFraction = true;
+ numericBoxOriginShiftZ.SkipEventDuringInput = false;
+ numericBoxOriginShiftZ.SmartIncrement = true;
+ numericBoxOriginShiftZ.ThonsandsSeparator = true;
//
// numericBoxOriginShiftY
//
- resources.ApplyResources(this.numericBoxOriginShiftY, "numericBoxOriginShiftY");
- this.numericBoxOriginShiftY.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftY.DecimalPlaces = 4;
- this.numericBoxOriginShiftY.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftY.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftY.Maximum = 1D;
- this.numericBoxOriginShiftY.Minimum = -1D;
- this.numericBoxOriginShiftY.Name = "numericBoxOriginShiftY";
- this.numericBoxOriginShiftY.RoundErrorAccuracy = -1;
- this.numericBoxOriginShiftY.ShowFraction = true;
- this.numericBoxOriginShiftY.SkipEventDuringInput = false;
- this.numericBoxOriginShiftY.SmartIncrement = true;
- this.numericBoxOriginShiftY.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxOriginShiftY.ThonsandsSeparator = true;
+ resources.ApplyResources(numericBoxOriginShiftY, "numericBoxOriginShiftY");
+ numericBoxOriginShiftY.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftY.DecimalPlaces = 4;
+ numericBoxOriginShiftY.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftY.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftY.Maximum = 1D;
+ numericBoxOriginShiftY.Minimum = -1D;
+ numericBoxOriginShiftY.Name = "numericBoxOriginShiftY";
+ numericBoxOriginShiftY.RoundErrorAccuracy = -1;
+ numericBoxOriginShiftY.ShowFraction = true;
+ numericBoxOriginShiftY.SkipEventDuringInput = false;
+ numericBoxOriginShiftY.SmartIncrement = true;
+ numericBoxOriginShiftY.ThonsandsSeparator = true;
//
// numericBoxOriginShiftX
//
- resources.ApplyResources(this.numericBoxOriginShiftX, "numericBoxOriginShiftX");
- this.numericBoxOriginShiftX.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftX.DecimalPlaces = 4;
- this.numericBoxOriginShiftX.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftX.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxOriginShiftX.Maximum = 1D;
- this.numericBoxOriginShiftX.Minimum = -1D;
- this.numericBoxOriginShiftX.Name = "numericBoxOriginShiftX";
- this.numericBoxOriginShiftX.RoundErrorAccuracy = -1;
- this.numericBoxOriginShiftX.ShowFraction = true;
- this.numericBoxOriginShiftX.SkipEventDuringInput = false;
- this.numericBoxOriginShiftX.SmartIncrement = true;
- this.numericBoxOriginShiftX.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxOriginShiftX.ThonsandsSeparator = true;
+ resources.ApplyResources(numericBoxOriginShiftX, "numericBoxOriginShiftX");
+ numericBoxOriginShiftX.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftX.DecimalPlaces = 4;
+ numericBoxOriginShiftX.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftX.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxOriginShiftX.Maximum = 1D;
+ numericBoxOriginShiftX.Minimum = -1D;
+ numericBoxOriginShiftX.Name = "numericBoxOriginShiftX";
+ numericBoxOriginShiftX.RoundErrorAccuracy = -1;
+ numericBoxOriginShiftX.ShowFraction = true;
+ numericBoxOriginShiftX.SkipEventDuringInput = false;
+ numericBoxOriginShiftX.SmartIncrement = true;
+ numericBoxOriginShiftX.ThonsandsSeparator = true;
//
// tabPageDebyeWaller
//
- this.tabPageDebyeWaller.BackColor = System.Drawing.Color.Transparent;
- this.tabPageDebyeWaller.Controls.Add(this.flowLayoutPanel6);
- this.tabPageDebyeWaller.Controls.Add(this.flowLayoutPanelIso);
- this.tabPageDebyeWaller.Controls.Add(this.flowLayoutPanel5);
- this.tabPageDebyeWaller.Controls.Add(this.flowLayoutPanel4);
- this.tabPageDebyeWaller.Controls.Add(this.checkBoxDetailsDebyeWallerError);
- this.tabPageDebyeWaller.Controls.Add(this.flowLayoutPanelAniso2);
- this.tabPageDebyeWaller.Controls.Add(this.flowLayoutPanelAniso1);
- this.tabPageDebyeWaller.Cursor = System.Windows.Forms.Cursors.Default;
- resources.ApplyResources(this.tabPageDebyeWaller, "tabPageDebyeWaller");
- this.tabPageDebyeWaller.Name = "tabPageDebyeWaller";
- this.toolTip.SetToolTip(this.tabPageDebyeWaller, resources.GetString("tabPageDebyeWaller.ToolTip"));
+ tabPageDebyeWaller.BackColor = System.Drawing.Color.Transparent;
+ tabPageDebyeWaller.Controls.Add(flowLayoutPanel6);
+ tabPageDebyeWaller.Controls.Add(flowLayoutPanelIso);
+ tabPageDebyeWaller.Controls.Add(flowLayoutPanel5);
+ tabPageDebyeWaller.Controls.Add(flowLayoutPanel4);
+ tabPageDebyeWaller.Controls.Add(checkBoxDetailsDebyeWallerError);
+ tabPageDebyeWaller.Controls.Add(flowLayoutPanelAniso2);
+ tabPageDebyeWaller.Controls.Add(flowLayoutPanelAniso1);
+ resources.ApplyResources(tabPageDebyeWaller, "tabPageDebyeWaller");
+ tabPageDebyeWaller.Name = "tabPageDebyeWaller";
+ toolTip.SetToolTip(tabPageDebyeWaller, resources.GetString("tabPageDebyeWaller.ToolTip"));
//
// flowLayoutPanel6
//
- resources.ApplyResources(this.flowLayoutPanel6, "flowLayoutPanel6");
- this.flowLayoutPanel6.Controls.Add(this.label14);
- this.flowLayoutPanel6.Controls.Add(this.labelDimension);
- this.flowLayoutPanel6.Name = "flowLayoutPanel6";
+ resources.ApplyResources(flowLayoutPanel6, "flowLayoutPanel6");
+ flowLayoutPanel6.Controls.Add(label14);
+ flowLayoutPanel6.Controls.Add(labelDimension);
+ flowLayoutPanel6.Name = "flowLayoutPanel6";
//
// label14
//
- resources.ApplyResources(this.label14, "label14");
- this.label14.Name = "label14";
+ resources.ApplyResources(label14, "label14");
+ label14.Name = "label14";
//
// labelDimension
//
- resources.ApplyResources(this.labelDimension, "labelDimension");
- this.labelDimension.Name = "labelDimension";
+ resources.ApplyResources(labelDimension, "labelDimension");
+ labelDimension.Name = "labelDimension";
//
// flowLayoutPanel5
//
- resources.ApplyResources(this.flowLayoutPanel5, "flowLayoutPanel5");
- this.flowLayoutPanel5.Controls.Add(this.label3);
- this.flowLayoutPanel5.Controls.Add(this.radioButtonDebyeWallerTypeU);
- this.flowLayoutPanel5.Controls.Add(this.radioButtonDebyeWallerTypeB);
- this.flowLayoutPanel5.Name = "flowLayoutPanel5";
+ resources.ApplyResources(flowLayoutPanel5, "flowLayoutPanel5");
+ flowLayoutPanel5.Controls.Add(label3);
+ flowLayoutPanel5.Controls.Add(radioButtonDebyeWallerTypeU);
+ flowLayoutPanel5.Controls.Add(radioButtonDebyeWallerTypeB);
+ flowLayoutPanel5.Name = "flowLayoutPanel5";
//
// label3
//
- resources.ApplyResources(this.label3, "label3");
- this.label3.Name = "label3";
+ resources.ApplyResources(label3, "label3");
+ label3.Name = "label3";
//
// radioButtonDebyeWallerTypeU
//
- resources.ApplyResources(this.radioButtonDebyeWallerTypeU, "radioButtonDebyeWallerTypeU");
- this.radioButtonDebyeWallerTypeU.Name = "radioButtonDebyeWallerTypeU";
- this.toolTip.SetToolTip(this.radioButtonDebyeWallerTypeU, resources.GetString("radioButtonDebyeWallerTypeU.ToolTip"));
- this.radioButtonDebyeWallerTypeU.CheckedChanged += new System.EventHandler(this.radioButtonDebyeWallerTypeU_CheckedChanged);
+ resources.ApplyResources(radioButtonDebyeWallerTypeU, "radioButtonDebyeWallerTypeU");
+ radioButtonDebyeWallerTypeU.Name = "radioButtonDebyeWallerTypeU";
+ toolTip.SetToolTip(radioButtonDebyeWallerTypeU, resources.GetString("radioButtonDebyeWallerTypeU.ToolTip"));
+ radioButtonDebyeWallerTypeU.CheckedChanged += radioButtonDebyeWallerTypeU_CheckedChanged;
//
// radioButtonDebyeWallerTypeB
//
- resources.ApplyResources(this.radioButtonDebyeWallerTypeB, "radioButtonDebyeWallerTypeB");
- this.radioButtonDebyeWallerTypeB.Checked = true;
- this.radioButtonDebyeWallerTypeB.Name = "radioButtonDebyeWallerTypeB";
- this.radioButtonDebyeWallerTypeB.TabStop = true;
- this.toolTip.SetToolTip(this.radioButtonDebyeWallerTypeB, resources.GetString("radioButtonDebyeWallerTypeB.ToolTip"));
+ resources.ApplyResources(radioButtonDebyeWallerTypeB, "radioButtonDebyeWallerTypeB");
+ radioButtonDebyeWallerTypeB.Checked = true;
+ radioButtonDebyeWallerTypeB.Name = "radioButtonDebyeWallerTypeB";
+ radioButtonDebyeWallerTypeB.TabStop = true;
+ toolTip.SetToolTip(radioButtonDebyeWallerTypeB, resources.GetString("radioButtonDebyeWallerTypeB.ToolTip"));
//
// flowLayoutPanel4
//
- resources.ApplyResources(this.flowLayoutPanel4, "flowLayoutPanel4");
- this.flowLayoutPanel4.Controls.Add(this.label13);
- this.flowLayoutPanel4.Controls.Add(this.radioButtonIsotoropy);
- this.flowLayoutPanel4.Controls.Add(this.radioButtonAnisotropy);
- this.flowLayoutPanel4.Name = "flowLayoutPanel4";
+ resources.ApplyResources(flowLayoutPanel4, "flowLayoutPanel4");
+ flowLayoutPanel4.Controls.Add(label13);
+ flowLayoutPanel4.Controls.Add(radioButtonIsotoropy);
+ flowLayoutPanel4.Controls.Add(radioButtonAnisotropy);
+ flowLayoutPanel4.Name = "flowLayoutPanel4";
//
// label13
//
- resources.ApplyResources(this.label13, "label13");
- this.label13.Name = "label13";
+ resources.ApplyResources(label13, "label13");
+ label13.Name = "label13";
//
// checkBoxDetailsDebyeWallerError
//
- resources.ApplyResources(this.checkBoxDetailsDebyeWallerError, "checkBoxDetailsDebyeWallerError");
- this.checkBoxDetailsDebyeWallerError.Name = "checkBoxDetailsDebyeWallerError";
- this.checkBoxDetailsDebyeWallerError.UseVisualStyleBackColor = true;
- this.checkBoxDetailsDebyeWallerError.CheckedChanged += new System.EventHandler(this.checkBoxDebyeWallerError_CheckedChanged);
+ resources.ApplyResources(checkBoxDetailsDebyeWallerError, "checkBoxDetailsDebyeWallerError");
+ checkBoxDetailsDebyeWallerError.Name = "checkBoxDetailsDebyeWallerError";
+ checkBoxDetailsDebyeWallerError.UseVisualStyleBackColor = true;
+ checkBoxDetailsDebyeWallerError.CheckedChanged += checkBoxDebyeWallerError_CheckedChanged;
//
// flowLayoutPanelAniso2
//
- resources.ApplyResources(this.flowLayoutPanelAniso2, "flowLayoutPanelAniso2");
- this.flowLayoutPanelAniso2.Controls.Add(this.numericBoxB22);
- this.flowLayoutPanelAniso2.Controls.Add(this.numericBoxB22err);
- this.flowLayoutPanelAniso2.Controls.Add(this.numericBoxB23);
- this.flowLayoutPanelAniso2.Controls.Add(this.numericBoxB23err);
- this.flowLayoutPanelAniso2.Controls.Add(this.numericBoxB33);
- this.flowLayoutPanelAniso2.Controls.Add(this.numericBoxB33err);
- this.flowLayoutPanelAniso2.Name = "flowLayoutPanelAniso2";
+ resources.ApplyResources(flowLayoutPanelAniso2, "flowLayoutPanelAniso2");
+ flowLayoutPanelAniso2.Controls.Add(numericBoxB22);
+ flowLayoutPanelAniso2.Controls.Add(numericBoxB22err);
+ flowLayoutPanelAniso2.Controls.Add(numericBoxB23);
+ flowLayoutPanelAniso2.Controls.Add(numericBoxB23err);
+ flowLayoutPanelAniso2.Controls.Add(numericBoxB33);
+ flowLayoutPanelAniso2.Controls.Add(numericBoxB33err);
+ flowLayoutPanelAniso2.Name = "flowLayoutPanelAniso2";
//
// numericBoxB22
//
- this.numericBoxB22.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB22, "numericBoxB22");
- this.numericBoxB22.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB22.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB22.Name = "numericBoxB22";
- this.numericBoxB22.RoundErrorAccuracy = -1;
- this.numericBoxB22.SkipEventDuringInput = false;
- this.numericBoxB22.SmartIncrement = true;
- this.numericBoxB22.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB22.ThonsandsSeparator = true;
+ numericBoxB22.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB22, "numericBoxB22");
+ numericBoxB22.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB22.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB22.Name = "numericBoxB22";
+ numericBoxB22.RoundErrorAccuracy = -1;
+ numericBoxB22.SkipEventDuringInput = false;
+ numericBoxB22.SmartIncrement = true;
+ numericBoxB22.ThonsandsSeparator = true;
//
// numericBoxB22err
//
- this.numericBoxB22err.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB22err, "numericBoxB22err");
- this.numericBoxB22err.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB22err.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB22err.Name = "numericBoxB22err";
- this.numericBoxB22err.RoundErrorAccuracy = -1;
- this.numericBoxB22err.SkipEventDuringInput = false;
- this.numericBoxB22err.SmartIncrement = true;
- this.numericBoxB22err.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB22err.ThonsandsSeparator = true;
+ numericBoxB22err.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB22err, "numericBoxB22err");
+ numericBoxB22err.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB22err.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB22err.Name = "numericBoxB22err";
+ numericBoxB22err.RoundErrorAccuracy = -1;
+ numericBoxB22err.SkipEventDuringInput = false;
+ numericBoxB22err.SmartIncrement = true;
+ numericBoxB22err.ThonsandsSeparator = true;
//
// numericBoxB23
//
- this.numericBoxB23.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB23, "numericBoxB23");
- this.numericBoxB23.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB23.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB23.Name = "numericBoxB23";
- this.numericBoxB23.RoundErrorAccuracy = -1;
- this.numericBoxB23.SkipEventDuringInput = false;
- this.numericBoxB23.SmartIncrement = true;
- this.numericBoxB23.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB23.ThonsandsSeparator = true;
+ numericBoxB23.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB23, "numericBoxB23");
+ numericBoxB23.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB23.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB23.Name = "numericBoxB23";
+ numericBoxB23.RoundErrorAccuracy = -1;
+ numericBoxB23.SkipEventDuringInput = false;
+ numericBoxB23.SmartIncrement = true;
+ numericBoxB23.ThonsandsSeparator = true;
//
// numericBoxB23err
//
- this.numericBoxB23err.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB23err, "numericBoxB23err");
- this.numericBoxB23err.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB23err.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB23err.Name = "numericBoxB23err";
- this.numericBoxB23err.RoundErrorAccuracy = -1;
- this.numericBoxB23err.SkipEventDuringInput = false;
- this.numericBoxB23err.SmartIncrement = true;
- this.numericBoxB23err.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB23err.ThonsandsSeparator = true;
+ numericBoxB23err.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB23err, "numericBoxB23err");
+ numericBoxB23err.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB23err.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB23err.Name = "numericBoxB23err";
+ numericBoxB23err.RoundErrorAccuracy = -1;
+ numericBoxB23err.SkipEventDuringInput = false;
+ numericBoxB23err.SmartIncrement = true;
+ numericBoxB23err.ThonsandsSeparator = true;
//
// numericBoxB33
//
- this.numericBoxB33.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB33, "numericBoxB33");
- this.numericBoxB33.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB33.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB33.Name = "numericBoxB33";
- this.numericBoxB33.RoundErrorAccuracy = -1;
- this.numericBoxB33.SkipEventDuringInput = false;
- this.numericBoxB33.SmartIncrement = true;
- this.numericBoxB33.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB33.ThonsandsSeparator = true;
+ numericBoxB33.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB33, "numericBoxB33");
+ numericBoxB33.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB33.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB33.Name = "numericBoxB33";
+ numericBoxB33.RoundErrorAccuracy = -1;
+ numericBoxB33.SkipEventDuringInput = false;
+ numericBoxB33.SmartIncrement = true;
+ numericBoxB33.ThonsandsSeparator = true;
//
// numericBoxB33err
//
- this.numericBoxB33err.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB33err, "numericBoxB33err");
- this.numericBoxB33err.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB33err.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB33err.Name = "numericBoxB33err";
- this.numericBoxB33err.RoundErrorAccuracy = -1;
- this.numericBoxB33err.SkipEventDuringInput = false;
- this.numericBoxB33err.SmartIncrement = true;
- this.numericBoxB33err.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB33err.ThonsandsSeparator = true;
+ numericBoxB33err.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB33err, "numericBoxB33err");
+ numericBoxB33err.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB33err.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB33err.Name = "numericBoxB33err";
+ numericBoxB33err.RoundErrorAccuracy = -1;
+ numericBoxB33err.SkipEventDuringInput = false;
+ numericBoxB33err.SmartIncrement = true;
+ numericBoxB33err.ThonsandsSeparator = true;
//
// flowLayoutPanelAniso1
//
- resources.ApplyResources(this.flowLayoutPanelAniso1, "flowLayoutPanelAniso1");
- this.flowLayoutPanelAniso1.Controls.Add(this.numericBoxB11);
- this.flowLayoutPanelAniso1.Controls.Add(this.numericBoxB11err);
- this.flowLayoutPanelAniso1.Controls.Add(this.numericBoxB12);
- this.flowLayoutPanelAniso1.Controls.Add(this.numericBoxB12err);
- this.flowLayoutPanelAniso1.Controls.Add(this.numericBoxB13);
- this.flowLayoutPanelAniso1.Controls.Add(this.numericBoxB13err);
- this.flowLayoutPanelAniso1.Name = "flowLayoutPanelAniso1";
+ resources.ApplyResources(flowLayoutPanelAniso1, "flowLayoutPanelAniso1");
+ flowLayoutPanelAniso1.Controls.Add(numericBoxB11);
+ flowLayoutPanelAniso1.Controls.Add(numericBoxB11err);
+ flowLayoutPanelAniso1.Controls.Add(numericBoxB12);
+ flowLayoutPanelAniso1.Controls.Add(numericBoxB12err);
+ flowLayoutPanelAniso1.Controls.Add(numericBoxB13);
+ flowLayoutPanelAniso1.Controls.Add(numericBoxB13err);
+ flowLayoutPanelAniso1.Name = "flowLayoutPanelAniso1";
//
// numericBoxB11
//
- this.numericBoxB11.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB11, "numericBoxB11");
- this.numericBoxB11.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB11.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB11.Name = "numericBoxB11";
- this.numericBoxB11.RoundErrorAccuracy = -1;
- this.numericBoxB11.SkipEventDuringInput = false;
- this.numericBoxB11.SmartIncrement = true;
- this.numericBoxB11.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB11.ThonsandsSeparator = true;
+ numericBoxB11.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB11, "numericBoxB11");
+ numericBoxB11.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB11.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB11.Name = "numericBoxB11";
+ numericBoxB11.RoundErrorAccuracy = -1;
+ numericBoxB11.SkipEventDuringInput = false;
+ numericBoxB11.SmartIncrement = true;
+ numericBoxB11.ThonsandsSeparator = true;
//
// numericBoxB11err
//
- this.numericBoxB11err.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB11err, "numericBoxB11err");
- this.numericBoxB11err.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB11err.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB11err.Name = "numericBoxB11err";
- this.numericBoxB11err.RoundErrorAccuracy = -1;
- this.numericBoxB11err.SkipEventDuringInput = false;
- this.numericBoxB11err.SmartIncrement = true;
- this.numericBoxB11err.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB11err.ThonsandsSeparator = true;
+ numericBoxB11err.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB11err, "numericBoxB11err");
+ numericBoxB11err.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB11err.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB11err.Name = "numericBoxB11err";
+ numericBoxB11err.RoundErrorAccuracy = -1;
+ numericBoxB11err.SkipEventDuringInput = false;
+ numericBoxB11err.SmartIncrement = true;
+ numericBoxB11err.ThonsandsSeparator = true;
//
// numericBoxB12
//
- this.numericBoxB12.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB12, "numericBoxB12");
- this.numericBoxB12.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB12.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB12.Name = "numericBoxB12";
- this.numericBoxB12.RoundErrorAccuracy = -1;
- this.numericBoxB12.SkipEventDuringInput = false;
- this.numericBoxB12.SmartIncrement = true;
- this.numericBoxB12.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB12.ThonsandsSeparator = true;
+ numericBoxB12.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB12, "numericBoxB12");
+ numericBoxB12.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB12.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB12.Name = "numericBoxB12";
+ numericBoxB12.RoundErrorAccuracy = -1;
+ numericBoxB12.SkipEventDuringInput = false;
+ numericBoxB12.SmartIncrement = true;
+ numericBoxB12.ThonsandsSeparator = true;
//
// numericBoxB12err
//
- this.numericBoxB12err.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB12err, "numericBoxB12err");
- this.numericBoxB12err.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB12err.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB12err.Name = "numericBoxB12err";
- this.numericBoxB12err.RoundErrorAccuracy = -1;
- this.numericBoxB12err.SkipEventDuringInput = false;
- this.numericBoxB12err.SmartIncrement = true;
- this.numericBoxB12err.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB12err.ThonsandsSeparator = true;
+ numericBoxB12err.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB12err, "numericBoxB12err");
+ numericBoxB12err.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB12err.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB12err.Name = "numericBoxB12err";
+ numericBoxB12err.RoundErrorAccuracy = -1;
+ numericBoxB12err.SkipEventDuringInput = false;
+ numericBoxB12err.SmartIncrement = true;
+ numericBoxB12err.ThonsandsSeparator = true;
//
// numericBoxB13
//
- this.numericBoxB13.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB13, "numericBoxB13");
- this.numericBoxB13.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB13.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB13.Name = "numericBoxB13";
- this.numericBoxB13.RoundErrorAccuracy = -1;
- this.numericBoxB13.SkipEventDuringInput = false;
- this.numericBoxB13.SmartIncrement = true;
- this.numericBoxB13.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB13.ThonsandsSeparator = true;
+ numericBoxB13.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB13, "numericBoxB13");
+ numericBoxB13.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB13.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB13.Name = "numericBoxB13";
+ numericBoxB13.RoundErrorAccuracy = -1;
+ numericBoxB13.SkipEventDuringInput = false;
+ numericBoxB13.SmartIncrement = true;
+ numericBoxB13.ThonsandsSeparator = true;
//
// numericBoxB13err
//
- this.numericBoxB13err.BackColor = System.Drawing.SystemColors.Control;
- resources.ApplyResources(this.numericBoxB13err, "numericBoxB13err");
- this.numericBoxB13err.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB13err.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxB13err.Name = "numericBoxB13err";
- this.numericBoxB13err.RoundErrorAccuracy = -1;
- this.numericBoxB13err.SkipEventDuringInput = false;
- this.numericBoxB13err.SmartIncrement = true;
- this.numericBoxB13err.TextFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxB13err.ThonsandsSeparator = true;
+ numericBoxB13err.BackColor = System.Drawing.SystemColors.Control;
+ resources.ApplyResources(numericBoxB13err, "numericBoxB13err");
+ numericBoxB13err.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB13err.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxB13err.Name = "numericBoxB13err";
+ numericBoxB13err.RoundErrorAccuracy = -1;
+ numericBoxB13err.SkipEventDuringInput = false;
+ numericBoxB13err.SmartIncrement = true;
+ numericBoxB13err.ThonsandsSeparator = true;
//
// tabPageScatteringFactor
//
- this.tabPageScatteringFactor.BackColor = System.Drawing.Color.Transparent;
- this.tabPageScatteringFactor.Controls.Add(this.richTextBoxIsotope);
- this.tabPageScatteringFactor.Controls.Add(this.label34);
- this.tabPageScatteringFactor.Controls.Add(this.buttonEditIsotopeAbundance);
- this.tabPageScatteringFactor.Controls.Add(this.label5);
- this.tabPageScatteringFactor.Controls.Add(this.comboBoxScatteringFactorElectron);
- this.tabPageScatteringFactor.Controls.Add(this.comboBoxNeutron);
- this.tabPageScatteringFactor.Controls.Add(this.comboBoxScatteringFactorXray);
- this.tabPageScatteringFactor.Controls.Add(this.label6);
- this.tabPageScatteringFactor.Controls.Add(this.label4);
- this.tabPageScatteringFactor.Cursor = System.Windows.Forms.Cursors.Default;
- resources.ApplyResources(this.tabPageScatteringFactor, "tabPageScatteringFactor");
- this.tabPageScatteringFactor.Name = "tabPageScatteringFactor";
+ tabPageScatteringFactor.BackColor = System.Drawing.Color.Transparent;
+ tabPageScatteringFactor.Controls.Add(richTextBoxIsotope);
+ tabPageScatteringFactor.Controls.Add(label34);
+ tabPageScatteringFactor.Controls.Add(buttonEditIsotopeAbundance);
+ tabPageScatteringFactor.Controls.Add(label5);
+ tabPageScatteringFactor.Controls.Add(comboBoxScatteringFactorElectron);
+ tabPageScatteringFactor.Controls.Add(comboBoxNeutron);
+ tabPageScatteringFactor.Controls.Add(comboBoxScatteringFactorXray);
+ tabPageScatteringFactor.Controls.Add(label6);
+ tabPageScatteringFactor.Controls.Add(label4);
+ resources.ApplyResources(tabPageScatteringFactor, "tabPageScatteringFactor");
+ tabPageScatteringFactor.Name = "tabPageScatteringFactor";
//
// richTextBoxIsotope
//
- resources.ApplyResources(this.richTextBoxIsotope, "richTextBoxIsotope");
- this.richTextBoxIsotope.BackColor = System.Drawing.SystemColors.Control;
- this.richTextBoxIsotope.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.richTextBoxIsotope.Name = "richTextBoxIsotope";
- this.richTextBoxIsotope.ReadOnly = true;
+ resources.ApplyResources(richTextBoxIsotope, "richTextBoxIsotope");
+ richTextBoxIsotope.BackColor = System.Drawing.SystemColors.Control;
+ richTextBoxIsotope.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ richTextBoxIsotope.Name = "richTextBoxIsotope";
+ richTextBoxIsotope.ReadOnly = true;
//
// label34
//
- resources.ApplyResources(this.label34, "label34");
- this.label34.Name = "label34";
+ resources.ApplyResources(label34, "label34");
+ label34.Name = "label34";
//
// buttonEditIsotopeAbundance
//
- this.buttonEditIsotopeAbundance.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- resources.ApplyResources(this.buttonEditIsotopeAbundance, "buttonEditIsotopeAbundance");
- this.buttonEditIsotopeAbundance.Name = "buttonEditIsotopeAbundance";
- this.buttonEditIsotopeAbundance.UseVisualStyleBackColor = true;
- this.buttonEditIsotopeAbundance.Click += new System.EventHandler(this.buttonEditIsotopeAbundance_Click);
+ buttonEditIsotopeAbundance.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ resources.ApplyResources(buttonEditIsotopeAbundance, "buttonEditIsotopeAbundance");
+ buttonEditIsotopeAbundance.Name = "buttonEditIsotopeAbundance";
+ buttonEditIsotopeAbundance.UseVisualStyleBackColor = true;
+ buttonEditIsotopeAbundance.Click += buttonEditIsotopeAbundance_Click;
//
// label5
//
- resources.ApplyResources(this.label5, "label5");
- this.label5.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.label5.Name = "label5";
+ resources.ApplyResources(label5, "label5");
+ label5.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ label5.Name = "label5";
//
// comboBoxScatteringFactorElectron
//
- this.comboBoxScatteringFactorElectron.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.comboBoxScatteringFactorElectron.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBoxScatteringFactorElectron.DropDownWidth = 120;
- resources.ApplyResources(this.comboBoxScatteringFactorElectron, "comboBoxScatteringFactorElectron");
- this.comboBoxScatteringFactorElectron.Name = "comboBoxScatteringFactorElectron";
- this.toolTip.SetToolTip(this.comboBoxScatteringFactorElectron, resources.GetString("comboBoxScatteringFactorElectron.ToolTip"));
- this.comboBoxScatteringFactorElectron.SelectedIndexChanged += new System.EventHandler(this.comboBoxAtomSub_SelectedIndexChanged);
+ comboBoxScatteringFactorElectron.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ comboBoxScatteringFactorElectron.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ comboBoxScatteringFactorElectron.DropDownWidth = 120;
+ resources.ApplyResources(comboBoxScatteringFactorElectron, "comboBoxScatteringFactorElectron");
+ comboBoxScatteringFactorElectron.Name = "comboBoxScatteringFactorElectron";
+ toolTip.SetToolTip(comboBoxScatteringFactorElectron, resources.GetString("comboBoxScatteringFactorElectron.ToolTip"));
+ comboBoxScatteringFactorElectron.SelectedIndexChanged += comboBoxAtomSub_SelectedIndexChanged;
//
// comboBoxNeutron
//
- this.comboBoxNeutron.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.comboBoxNeutron.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBoxNeutron.DropDownWidth = 120;
- resources.ApplyResources(this.comboBoxNeutron, "comboBoxNeutron");
- this.comboBoxNeutron.Items.AddRange(new object[] {
- resources.GetString("comboBoxNeutron.Items"),
- resources.GetString("comboBoxNeutron.Items1")});
- this.comboBoxNeutron.Name = "comboBoxNeutron";
- this.comboBoxNeutron.SelectedIndexChanged += new System.EventHandler(this.comboBoxNeutron_SelectedIndexChanged);
+ comboBoxNeutron.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ comboBoxNeutron.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ comboBoxNeutron.DropDownWidth = 120;
+ resources.ApplyResources(comboBoxNeutron, "comboBoxNeutron");
+ comboBoxNeutron.Items.AddRange(new object[] { resources.GetString("comboBoxNeutron.Items"), resources.GetString("comboBoxNeutron.Items1") });
+ comboBoxNeutron.Name = "comboBoxNeutron";
+ comboBoxNeutron.SelectedIndexChanged += comboBoxNeutron_SelectedIndexChanged;
//
// comboBoxScatteringFactorXray
//
- this.comboBoxScatteringFactorXray.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.comboBoxScatteringFactorXray.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBoxScatteringFactorXray.DropDownWidth = 120;
- resources.ApplyResources(this.comboBoxScatteringFactorXray, "comboBoxScatteringFactorXray");
- this.comboBoxScatteringFactorXray.Name = "comboBoxScatteringFactorXray";
- this.toolTip.SetToolTip(this.comboBoxScatteringFactorXray, resources.GetString("comboBoxScatteringFactorXray.ToolTip"));
- this.comboBoxScatteringFactorXray.SelectedIndexChanged += new System.EventHandler(this.comboBoxAtomSub_SelectedIndexChanged);
+ comboBoxScatteringFactorXray.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ comboBoxScatteringFactorXray.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ comboBoxScatteringFactorXray.DropDownWidth = 120;
+ resources.ApplyResources(comboBoxScatteringFactorXray, "comboBoxScatteringFactorXray");
+ comboBoxScatteringFactorXray.Name = "comboBoxScatteringFactorXray";
+ toolTip.SetToolTip(comboBoxScatteringFactorXray, resources.GetString("comboBoxScatteringFactorXray.ToolTip"));
+ comboBoxScatteringFactorXray.SelectedIndexChanged += comboBoxAtomSub_SelectedIndexChanged;
//
// label6
//
- resources.ApplyResources(this.label6, "label6");
- this.label6.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.label6.Name = "label6";
+ resources.ApplyResources(label6, "label6");
+ label6.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ label6.Name = "label6";
//
// label4
//
- resources.ApplyResources(this.label4, "label4");
- this.label4.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.label4.Name = "label4";
+ resources.ApplyResources(label4, "label4");
+ label4.Cursor = System.Windows.Forms.Cursors.WaitCursor;
+ label4.Name = "label4";
//
// tabPageAppearance
//
- this.tabPageAppearance.Controls.Add(this.numericBoxAlpha);
- this.tabPageAppearance.Controls.Add(this.numericBoxEmission);
- this.tabPageAppearance.Controls.Add(this.numericBoxShininess);
- this.tabPageAppearance.Controls.Add(this.numericBoxSpecular);
- this.tabPageAppearance.Controls.Add(this.numericBoxDiffusion);
- this.tabPageAppearance.Controls.Add(this.numericBoxAmbient);
- this.tabPageAppearance.Controls.Add(this.checkBoxShowLabel);
- this.tabPageAppearance.Controls.Add(this.label10);
- this.tabPageAppearance.Controls.Add(this.label37);
- this.tabPageAppearance.Controls.Add(this.label38);
- this.tabPageAppearance.Controls.Add(this.label11);
- this.tabPageAppearance.Controls.Add(this.label35);
- this.tabPageAppearance.Controls.Add(this.label36);
- this.tabPageAppearance.Controls.Add(this.numericBoxAtomRadius);
- this.tabPageAppearance.Controls.Add(this.colorControlAtomColor);
- resources.ApplyResources(this.tabPageAppearance, "tabPageAppearance");
- this.tabPageAppearance.Name = "tabPageAppearance";
+ tabPageAppearance.Controls.Add(numericBoxAlpha);
+ tabPageAppearance.Controls.Add(numericBoxEmission);
+ tabPageAppearance.Controls.Add(numericBoxShininess);
+ tabPageAppearance.Controls.Add(numericBoxSpecular);
+ tabPageAppearance.Controls.Add(numericBoxDiffusion);
+ tabPageAppearance.Controls.Add(numericBoxAmbient);
+ tabPageAppearance.Controls.Add(checkBoxShowLabel);
+ tabPageAppearance.Controls.Add(label10);
+ tabPageAppearance.Controls.Add(label37);
+ tabPageAppearance.Controls.Add(label38);
+ tabPageAppearance.Controls.Add(label11);
+ tabPageAppearance.Controls.Add(label35);
+ tabPageAppearance.Controls.Add(label36);
+ tabPageAppearance.Controls.Add(numericBoxAtomRadius);
+ tabPageAppearance.Controls.Add(colorControlAtomColor);
+ resources.ApplyResources(tabPageAppearance, "tabPageAppearance");
+ tabPageAppearance.Name = "tabPageAppearance";
//
// numericBoxAlpha
//
- resources.ApplyResources(this.numericBoxAlpha, "numericBoxAlpha");
- this.numericBoxAlpha.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAlpha.DecimalPlaces = 1;
- this.numericBoxAlpha.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAlpha.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAlpha.Maximum = 1D;
- this.numericBoxAlpha.Minimum = 0D;
- this.numericBoxAlpha.Name = "numericBoxAlpha";
- this.numericBoxAlpha.RoundErrorAccuracy = -1;
- this.numericBoxAlpha.ShowUpDown = true;
- this.numericBoxAlpha.SkipEventDuringInput = false;
- this.numericBoxAlpha.SmartIncrement = true;
- this.numericBoxAlpha.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.numericBoxAlpha.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxAlpha.ThonsandsSeparator = true;
- this.numericBoxAlpha.UpDown_Increment = 0.1D;
+ resources.ApplyResources(numericBoxAlpha, "numericBoxAlpha");
+ numericBoxAlpha.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxAlpha.DecimalPlaces = 1;
+ numericBoxAlpha.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxAlpha.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxAlpha.Maximum = 1D;
+ numericBoxAlpha.Minimum = 0D;
+ numericBoxAlpha.Name = "numericBoxAlpha";
+ numericBoxAlpha.RoundErrorAccuracy = -1;
+ numericBoxAlpha.ShowUpDown = true;
+ numericBoxAlpha.SkipEventDuringInput = false;
+ numericBoxAlpha.SmartIncrement = true;
+ numericBoxAlpha.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ numericBoxAlpha.ThonsandsSeparator = true;
+ numericBoxAlpha.UpDown_Increment = 0.1D;
//
// numericBoxEmission
//
- resources.ApplyResources(this.numericBoxEmission, "numericBoxEmission");
- this.numericBoxEmission.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxEmission.DecimalPlaces = 1;
- this.numericBoxEmission.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxEmission.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxEmission.Maximum = 1D;
- this.numericBoxEmission.Minimum = 0D;
- this.numericBoxEmission.Name = "numericBoxEmission";
- this.numericBoxEmission.RoundErrorAccuracy = -1;
- this.numericBoxEmission.ShowUpDown = true;
- this.numericBoxEmission.SkipEventDuringInput = false;
- this.numericBoxEmission.SmartIncrement = true;
- this.numericBoxEmission.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.numericBoxEmission.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxEmission.ThonsandsSeparator = true;
- this.numericBoxEmission.UpDown_Increment = 0.1D;
+ resources.ApplyResources(numericBoxEmission, "numericBoxEmission");
+ numericBoxEmission.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxEmission.DecimalPlaces = 1;
+ numericBoxEmission.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxEmission.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxEmission.Maximum = 1D;
+ numericBoxEmission.Minimum = 0D;
+ numericBoxEmission.Name = "numericBoxEmission";
+ numericBoxEmission.RoundErrorAccuracy = -1;
+ numericBoxEmission.ShowUpDown = true;
+ numericBoxEmission.SkipEventDuringInput = false;
+ numericBoxEmission.SmartIncrement = true;
+ numericBoxEmission.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ numericBoxEmission.ThonsandsSeparator = true;
+ numericBoxEmission.UpDown_Increment = 0.1D;
//
// numericBoxShininess
//
- resources.ApplyResources(this.numericBoxShininess, "numericBoxShininess");
- this.numericBoxShininess.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxShininess.DecimalPlaces = 1;
- this.numericBoxShininess.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxShininess.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxShininess.Maximum = 20D;
- this.numericBoxShininess.Minimum = 0D;
- this.numericBoxShininess.Name = "numericBoxShininess";
- this.numericBoxShininess.RoundErrorAccuracy = -1;
- this.numericBoxShininess.ShowUpDown = true;
- this.numericBoxShininess.SkipEventDuringInput = false;
- this.numericBoxShininess.SmartIncrement = true;
- this.numericBoxShininess.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.numericBoxShininess.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxShininess.ThonsandsSeparator = true;
- this.numericBoxShininess.UpDown_Increment = 0.1D;
+ resources.ApplyResources(numericBoxShininess, "numericBoxShininess");
+ numericBoxShininess.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxShininess.DecimalPlaces = 1;
+ numericBoxShininess.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxShininess.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxShininess.Maximum = 20D;
+ numericBoxShininess.Minimum = 0D;
+ numericBoxShininess.Name = "numericBoxShininess";
+ numericBoxShininess.RoundErrorAccuracy = -1;
+ numericBoxShininess.ShowUpDown = true;
+ numericBoxShininess.SkipEventDuringInput = false;
+ numericBoxShininess.SmartIncrement = true;
+ numericBoxShininess.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ numericBoxShininess.ThonsandsSeparator = true;
+ numericBoxShininess.UpDown_Increment = 0.1D;
//
// numericBoxSpecular
//
- resources.ApplyResources(this.numericBoxSpecular, "numericBoxSpecular");
- this.numericBoxSpecular.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxSpecular.DecimalPlaces = 1;
- this.numericBoxSpecular.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxSpecular.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxSpecular.Maximum = 1D;
- this.numericBoxSpecular.Minimum = 0D;
- this.numericBoxSpecular.Name = "numericBoxSpecular";
- this.numericBoxSpecular.RoundErrorAccuracy = -1;
- this.numericBoxSpecular.ShowUpDown = true;
- this.numericBoxSpecular.SkipEventDuringInput = false;
- this.numericBoxSpecular.SmartIncrement = true;
- this.numericBoxSpecular.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.numericBoxSpecular.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxSpecular.ThonsandsSeparator = true;
- this.numericBoxSpecular.UpDown_Increment = 0.1D;
+ resources.ApplyResources(numericBoxSpecular, "numericBoxSpecular");
+ numericBoxSpecular.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxSpecular.DecimalPlaces = 1;
+ numericBoxSpecular.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxSpecular.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxSpecular.Maximum = 1D;
+ numericBoxSpecular.Minimum = 0D;
+ numericBoxSpecular.Name = "numericBoxSpecular";
+ numericBoxSpecular.RoundErrorAccuracy = -1;
+ numericBoxSpecular.ShowUpDown = true;
+ numericBoxSpecular.SkipEventDuringInput = false;
+ numericBoxSpecular.SmartIncrement = true;
+ numericBoxSpecular.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ numericBoxSpecular.ThonsandsSeparator = true;
+ numericBoxSpecular.UpDown_Increment = 0.1D;
//
// numericBoxDiffusion
//
- resources.ApplyResources(this.numericBoxDiffusion, "numericBoxDiffusion");
- this.numericBoxDiffusion.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxDiffusion.DecimalPlaces = 1;
- this.numericBoxDiffusion.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxDiffusion.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxDiffusion.Maximum = 1D;
- this.numericBoxDiffusion.Minimum = 0D;
- this.numericBoxDiffusion.Name = "numericBoxDiffusion";
- this.numericBoxDiffusion.RoundErrorAccuracy = -1;
- this.numericBoxDiffusion.ShowUpDown = true;
- this.numericBoxDiffusion.SkipEventDuringInput = false;
- this.numericBoxDiffusion.SmartIncrement = true;
- this.numericBoxDiffusion.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.numericBoxDiffusion.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxDiffusion.ThonsandsSeparator = true;
- this.numericBoxDiffusion.UpDown_Increment = 0.1D;
+ resources.ApplyResources(numericBoxDiffusion, "numericBoxDiffusion");
+ numericBoxDiffusion.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxDiffusion.DecimalPlaces = 1;
+ numericBoxDiffusion.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxDiffusion.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxDiffusion.Maximum = 1D;
+ numericBoxDiffusion.Minimum = 0D;
+ numericBoxDiffusion.Name = "numericBoxDiffusion";
+ numericBoxDiffusion.RoundErrorAccuracy = -1;
+ numericBoxDiffusion.ShowUpDown = true;
+ numericBoxDiffusion.SkipEventDuringInput = false;
+ numericBoxDiffusion.SmartIncrement = true;
+ numericBoxDiffusion.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ numericBoxDiffusion.ThonsandsSeparator = true;
+ numericBoxDiffusion.UpDown_Increment = 0.1D;
//
// numericBoxAmbient
//
- resources.ApplyResources(this.numericBoxAmbient, "numericBoxAmbient");
- this.numericBoxAmbient.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAmbient.DecimalPlaces = 1;
- this.numericBoxAmbient.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAmbient.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAmbient.Maximum = 1D;
- this.numericBoxAmbient.Minimum = 0D;
- this.numericBoxAmbient.Name = "numericBoxAmbient";
- this.numericBoxAmbient.RoundErrorAccuracy = -1;
- this.numericBoxAmbient.ShowUpDown = true;
- this.numericBoxAmbient.SkipEventDuringInput = false;
- this.numericBoxAmbient.SmartIncrement = true;
- this.numericBoxAmbient.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.numericBoxAmbient.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxAmbient.ThonsandsSeparator = true;
- this.numericBoxAmbient.UpDown_Increment = 0.1D;
+ resources.ApplyResources(numericBoxAmbient, "numericBoxAmbient");
+ numericBoxAmbient.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxAmbient.DecimalPlaces = 1;
+ numericBoxAmbient.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxAmbient.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxAmbient.Maximum = 1D;
+ numericBoxAmbient.Minimum = 0D;
+ numericBoxAmbient.Name = "numericBoxAmbient";
+ numericBoxAmbient.RoundErrorAccuracy = -1;
+ numericBoxAmbient.ShowUpDown = true;
+ numericBoxAmbient.SkipEventDuringInput = false;
+ numericBoxAmbient.SmartIncrement = true;
+ numericBoxAmbient.TextBoxForeColor = System.Drawing.SystemColors.ActiveCaptionText;
+ numericBoxAmbient.ThonsandsSeparator = true;
+ numericBoxAmbient.UpDown_Increment = 0.1D;
//
// checkBoxShowLabel
//
- resources.ApplyResources(this.checkBoxShowLabel, "checkBoxShowLabel");
- this.checkBoxShowLabel.Name = "checkBoxShowLabel";
- this.checkBoxShowLabel.UseVisualStyleBackColor = true;
+ resources.ApplyResources(checkBoxShowLabel, "checkBoxShowLabel");
+ checkBoxShowLabel.Name = "checkBoxShowLabel";
+ checkBoxShowLabel.UseVisualStyleBackColor = true;
//
// label10
//
- resources.ApplyResources(this.label10, "label10");
- this.label10.Name = "label10";
+ resources.ApplyResources(label10, "label10");
+ label10.Name = "label10";
//
// label37
//
- resources.ApplyResources(this.label37, "label37");
- this.label37.Name = "label37";
+ resources.ApplyResources(label37, "label37");
+ label37.Name = "label37";
//
// label38
//
- resources.ApplyResources(this.label38, "label38");
- this.label38.Name = "label38";
+ resources.ApplyResources(label38, "label38");
+ label38.Name = "label38";
//
// label11
//
- resources.ApplyResources(this.label11, "label11");
- this.label11.Name = "label11";
+ resources.ApplyResources(label11, "label11");
+ label11.Name = "label11";
//
// label35
//
- resources.ApplyResources(this.label35, "label35");
- this.label35.Name = "label35";
+ resources.ApplyResources(label35, "label35");
+ label35.Name = "label35";
//
// label36
//
- resources.ApplyResources(this.label36, "label36");
- this.label36.Name = "label36";
+ resources.ApplyResources(label36, "label36");
+ label36.Name = "label36";
//
// numericBoxAtomRadius
//
- resources.ApplyResources(this.numericBoxAtomRadius, "numericBoxAtomRadius");
- this.numericBoxAtomRadius.BackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAtomRadius.DecimalPlaces = 3;
- this.numericBoxAtomRadius.FooterBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAtomRadius.HeaderBackColor = System.Drawing.SystemColors.Control;
- this.numericBoxAtomRadius.Name = "numericBoxAtomRadius";
- this.numericBoxAtomRadius.RoundErrorAccuracy = -1;
- this.numericBoxAtomRadius.ShowUpDown = true;
- this.numericBoxAtomRadius.SkipEventDuringInput = false;
- this.numericBoxAtomRadius.SmartIncrement = true;
- this.numericBoxAtomRadius.TextBoxForeColor = System.Drawing.SystemColors.ControlText;
- this.numericBoxAtomRadius.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.numericBoxAtomRadius.ThonsandsSeparator = true;
- this.toolTip.SetToolTip(this.numericBoxAtomRadius, resources.GetString("numericBoxAtomRadius.ToolTip"));
+ resources.ApplyResources(numericBoxAtomRadius, "numericBoxAtomRadius");
+ numericBoxAtomRadius.BackColor = System.Drawing.SystemColors.Control;
+ numericBoxAtomRadius.DecimalPlaces = 3;
+ numericBoxAtomRadius.FooterBackColor = System.Drawing.SystemColors.Control;
+ numericBoxAtomRadius.HeaderBackColor = System.Drawing.SystemColors.Control;
+ numericBoxAtomRadius.Name = "numericBoxAtomRadius";
+ numericBoxAtomRadius.RoundErrorAccuracy = -1;
+ numericBoxAtomRadius.ShowUpDown = true;
+ numericBoxAtomRadius.SkipEventDuringInput = false;
+ numericBoxAtomRadius.SmartIncrement = true;
+ numericBoxAtomRadius.TextBoxForeColor = System.Drawing.SystemColors.ControlText;
+ numericBoxAtomRadius.ThonsandsSeparator = true;
+ toolTip.SetToolTip(numericBoxAtomRadius, resources.GetString("numericBoxAtomRadius.ToolTip"));
//
// colorControlAtomColor
//
- this.colorControlAtomColor.Argb = -986896;
- resources.ApplyResources(this.colorControlAtomColor, "colorControlAtomColor");
- this.colorControlAtomColor.Blue = 240;
- this.colorControlAtomColor.BlueF = 0.9411765F;
- this.colorControlAtomColor.BoxSize = new System.Drawing.Size(20, 20);
- this.colorControlAtomColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
- this.colorControlAtomColor.FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight;
- this.colorControlAtomColor.Green = 240;
- this.colorControlAtomColor.GreenF = 0.9411765F;
- this.colorControlAtomColor.Name = "colorControlAtomColor";
- this.colorControlAtomColor.Red = 240;
- this.colorControlAtomColor.RedF = 0.9411765F;
+ colorControlAtomColor.Argb = -986896;
+ resources.ApplyResources(colorControlAtomColor, "colorControlAtomColor");
+ colorControlAtomColor.Blue = 240;
+ colorControlAtomColor.BlueF = 0.9411765F;
+ colorControlAtomColor.BoxSize = new System.Drawing.Size(20, 20);
+ colorControlAtomColor.Color = System.Drawing.Color.FromArgb(240, 240, 240);
+ colorControlAtomColor.FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight;
+ colorControlAtomColor.Green = 240;
+ colorControlAtomColor.GreenF = 0.9411765F;
+ colorControlAtomColor.Name = "colorControlAtomColor";
+ colorControlAtomColor.Red = 240;
+ colorControlAtomColor.RedF = 0.9411765F;
//
// buttonApplyToSameElement
//
- resources.ApplyResources(this.buttonApplyToSameElement, "buttonApplyToSameElement");
- this.buttonApplyToSameElement.BackColor = System.Drawing.Color.SteelBlue;
- this.buttonApplyToSameElement.ForeColor = System.Drawing.SystemColors.HighlightText;
- this.buttonApplyToSameElement.Name = "buttonApplyToSameElement";
- this.toolTip.SetToolTip(this.buttonApplyToSameElement, resources.GetString("buttonApplyToSameElement.ToolTip"));
- this.buttonApplyToSameElement.UseVisualStyleBackColor = false;
- this.buttonApplyToSameElement.Click += new System.EventHandler(this.buttonChangeToSameElement_Click);
+ resources.ApplyResources(buttonApplyToSameElement, "buttonApplyToSameElement");
+ buttonApplyToSameElement.BackColor = System.Drawing.Color.SteelBlue;
+ buttonApplyToSameElement.ForeColor = System.Drawing.SystemColors.HighlightText;
+ buttonApplyToSameElement.Name = "buttonApplyToSameElement";
+ toolTip.SetToolTip(buttonApplyToSameElement, resources.GetString("buttonApplyToSameElement.ToolTip"));
+ buttonApplyToSameElement.UseVisualStyleBackColor = false;
+ buttonApplyToSameElement.Click += buttonChangeToSameElement_Click;
//
// buttonAddAtom
//
- resources.ApplyResources(this.buttonAddAtom, "buttonAddAtom");
- this.buttonAddAtom.BackColor = System.Drawing.Color.SteelBlue;
- this.buttonAddAtom.ForeColor = System.Drawing.SystemColors.HighlightText;
- this.buttonAddAtom.Name = "buttonAddAtom";
- this.toolTip.SetToolTip(this.buttonAddAtom, resources.GetString("buttonAddAtom.ToolTip"));
- this.buttonAddAtom.UseVisualStyleBackColor = false;
- this.buttonAddAtom.Click += new System.EventHandler(this.buttonAdd_Click);
+ resources.ApplyResources(buttonAddAtom, "buttonAddAtom");
+ buttonAddAtom.BackColor = System.Drawing.Color.SteelBlue;
+ buttonAddAtom.ForeColor = System.Drawing.SystemColors.HighlightText;
+ buttonAddAtom.Name = "buttonAddAtom";
+ toolTip.SetToolTip(buttonAddAtom, resources.GetString("buttonAddAtom.ToolTip"));
+ buttonAddAtom.UseVisualStyleBackColor = false;
+ buttonAddAtom.Click += buttonAdd_Click;
//
// buttonChange
//
- resources.ApplyResources(this.buttonChange, "buttonChange");
- this.buttonChange.BackColor = System.Drawing.Color.SteelBlue;
- this.buttonChange.ForeColor = System.Drawing.SystemColors.HighlightText;
- this.buttonChange.Name = "buttonChange";
- this.toolTip.SetToolTip(this.buttonChange, resources.GetString("buttonChange.ToolTip"));
- this.buttonChange.UseVisualStyleBackColor = false;
- this.buttonChange.Click += new System.EventHandler(this.buttonChange_Click);
+ resources.ApplyResources(buttonChange, "buttonChange");
+ buttonChange.BackColor = System.Drawing.Color.SteelBlue;
+ buttonChange.ForeColor = System.Drawing.SystemColors.HighlightText;
+ buttonChange.Name = "buttonChange";
+ toolTip.SetToolTip(buttonChange, resources.GetString("buttonChange.ToolTip"));
+ buttonChange.UseVisualStyleBackColor = false;
+ buttonChange.Click += buttonChange_Click;
//
// buttonApplyToAllElements
//
- resources.ApplyResources(this.buttonApplyToAllElements, "buttonApplyToAllElements");
- this.buttonApplyToAllElements.BackColor = System.Drawing.Color.SteelBlue;
- this.buttonApplyToAllElements.ForeColor = System.Drawing.SystemColors.HighlightText;
- this.buttonApplyToAllElements.Name = "buttonApplyToAllElements";
- this.toolTip.SetToolTip(this.buttonApplyToAllElements, resources.GetString("buttonApplyToAllElements.ToolTip"));
- this.buttonApplyToAllElements.UseVisualStyleBackColor = false;
- this.buttonApplyToAllElements.Click += new System.EventHandler(this.buttonApplyToAllElements_Click);
+ resources.ApplyResources(buttonApplyToAllElements, "buttonApplyToAllElements");
+ buttonApplyToAllElements.BackColor = System.Drawing.Color.SteelBlue;
+ buttonApplyToAllElements.ForeColor = System.Drawing.SystemColors.HighlightText;
+ buttonApplyToAllElements.Name = "buttonApplyToAllElements";
+ toolTip.SetToolTip(buttonApplyToAllElements, resources.GetString("buttonApplyToAllElements.ToolTip"));
+ buttonApplyToAllElements.UseVisualStyleBackColor = false;
+ buttonApplyToAllElements.Click += buttonApplyToAllElements_Click;
//
// buttonAtomUp
//
- resources.ApplyResources(this.buttonAtomUp, "buttonAtomUp");
- this.buttonAtomUp.BackColor = System.Drawing.SystemColors.Control;
- this.buttonAtomUp.ForeColor = System.Drawing.SystemColors.ControlText;
- this.buttonAtomUp.Name = "buttonAtomUp";
- this.toolTip.SetToolTip(this.buttonAtomUp, resources.GetString("buttonAtomUp.ToolTip"));
- this.buttonAtomUp.UseVisualStyleBackColor = true;
- this.buttonAtomUp.Click += new System.EventHandler(this.buttonUp_Click);
+ resources.ApplyResources(buttonAtomUp, "buttonAtomUp");
+ buttonAtomUp.BackColor = System.Drawing.SystemColors.Control;
+ buttonAtomUp.ForeColor = System.Drawing.SystemColors.ControlText;
+ buttonAtomUp.Name = "buttonAtomUp";
+ toolTip.SetToolTip(buttonAtomUp, resources.GetString("buttonAtomUp.ToolTip"));
+ buttonAtomUp.UseVisualStyleBackColor = true;
+ buttonAtomUp.Click += buttonUp_Click;
//
// buttonAtomDown
//
- resources.ApplyResources(this.buttonAtomDown, "buttonAtomDown");
- this.buttonAtomDown.BackColor = System.Drawing.SystemColors.Control;
- this.buttonAtomDown.ForeColor = System.Drawing.SystemColors.ControlText;
- this.buttonAtomDown.Name = "buttonAtomDown";
- this.toolTip.SetToolTip(this.buttonAtomDown, resources.GetString("buttonAtomDown.ToolTip"));
- this.buttonAtomDown.UseVisualStyleBackColor = true;
- this.buttonAtomDown.Click += new System.EventHandler(this.buttonDown_Click);
+ resources.ApplyResources(buttonAtomDown, "buttonAtomDown");
+ buttonAtomDown.BackColor = System.Drawing.SystemColors.Control;
+ buttonAtomDown.ForeColor = System.Drawing.SystemColors.ControlText;
+ buttonAtomDown.Name = "buttonAtomDown";
+ toolTip.SetToolTip(buttonAtomDown, resources.GetString("buttonAtomDown.ToolTip"));
+ buttonAtomDown.UseVisualStyleBackColor = true;
+ buttonAtomDown.Click += buttonDown_Click;
//
// buttonDeleteAtom
//
- resources.ApplyResources(this.buttonDeleteAtom, "buttonDeleteAtom");
- this.buttonDeleteAtom.BackColor = System.Drawing.Color.IndianRed;
- this.buttonDeleteAtom.ForeColor = System.Drawing.Color.White;
- this.buttonDeleteAtom.Name = "buttonDeleteAtom";
- this.toolTip.SetToolTip(this.buttonDeleteAtom, resources.GetString("buttonDeleteAtom.ToolTip"));
- this.buttonDeleteAtom.UseVisualStyleBackColor = false;
- this.buttonDeleteAtom.Click += new System.EventHandler(this.buttonDelete_Click);
+ resources.ApplyResources(buttonDeleteAtom, "buttonDeleteAtom");
+ buttonDeleteAtom.BackColor = System.Drawing.Color.IndianRed;
+ buttonDeleteAtom.ForeColor = System.Drawing.Color.White;
+ buttonDeleteAtom.Name = "buttonDeleteAtom";
+ toolTip.SetToolTip(buttonDeleteAtom, resources.GetString("buttonDeleteAtom.ToolTip"));
+ buttonDeleteAtom.UseVisualStyleBackColor = false;
+ buttonDeleteAtom.Click += buttonDelete_Click;
//
// dataGridView
//
- this.dataGridView.AllowUserToAddRows = false;
- this.dataGridView.AllowUserToDeleteRows = false;
- this.dataGridView.AllowUserToResizeRows = false;
- this.dataGridView.AutoGenerateColumns = false;
+ dataGridView.AllowUserToAddRows = false;
+ dataGridView.AllowUserToDeleteRows = false;
+ dataGridView.AllowUserToResizeRows = false;
+ dataGridView.AutoGenerateColumns = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("メイリオ", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
@@ -1490,208 +1352,197 @@ private void InitializeComponent()
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
- this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.enabledColumn,
- this.labelDataGridViewTextBoxColumn,
- this.elementDataGridViewTextBoxColumn,
- this.xDataGridViewTextBoxColumn,
- this.yDataGridViewTextBoxColumn,
- this.zDataGridViewTextBoxColumn,
- this.occDataGridViewTextBoxColumn,
- this.multiDataGridViewTextBoxColumn,
- this.wyckLetDataGridViewTextBoxColumn,
- this.siteSymDataGridViewTextBoxColumn});
- this.dataGridView.DataSource = this.bindingSource;
- resources.ApplyResources(this.dataGridView, "dataGridView");
- this.dataGridView.MultiSelect = false;
- this.dataGridView.Name = "dataGridView";
- this.dataGridView.RowHeadersVisible = false;
- this.dataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- this.dataGridView.RowTemplate.Height = 21;
- this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dataGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewAtom_CellValueChanged);
- this.dataGridView.CurrentCellDirtyStateChanged += new System.EventHandler(this.dataGridView_CurrentCellDirtyStateChanged);
+ dataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { enabledColumn, labelDataGridViewTextBoxColumn, elementDataGridViewTextBoxColumn, xDataGridViewTextBoxColumn, yDataGridViewTextBoxColumn, zDataGridViewTextBoxColumn, occDataGridViewTextBoxColumn, multiDataGridViewTextBoxColumn, wyckLetDataGridViewTextBoxColumn, siteSymDataGridViewTextBoxColumn });
+ dataGridView.DataSource = bindingSource;
+ resources.ApplyResources(dataGridView, "dataGridView");
+ dataGridView.MultiSelect = false;
+ dataGridView.Name = "dataGridView";
+ dataGridView.RowHeadersVisible = false;
+ dataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+ dataGridView.RowTemplate.Height = 21;
+ dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ dataGridView.CellValueChanged += dataGridViewAtom_CellValueChanged;
+ dataGridView.CurrentCellDirtyStateChanged += dataGridView_CurrentCellDirtyStateChanged;
//
// enabledColumn
//
- this.enabledColumn.DataPropertyName = "Enabled";
- resources.ApplyResources(this.enabledColumn, "enabledColumn");
- this.enabledColumn.Name = "enabledColumn";
- this.enabledColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ enabledColumn.DataPropertyName = "Enabled";
+ resources.ApplyResources(enabledColumn, "enabledColumn");
+ enabledColumn.Name = "enabledColumn";
+ enabledColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// labelDataGridViewTextBoxColumn
//
- this.labelDataGridViewTextBoxColumn.DataPropertyName = "Label";
+ labelDataGridViewTextBoxColumn.DataPropertyName = "Label";
dataGridViewCellStyle2.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.labelDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
- resources.ApplyResources(this.labelDataGridViewTextBoxColumn, "labelDataGridViewTextBoxColumn");
- this.labelDataGridViewTextBoxColumn.Name = "labelDataGridViewTextBoxColumn";
- this.labelDataGridViewTextBoxColumn.ReadOnly = true;
- this.labelDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ labelDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
+ resources.ApplyResources(labelDataGridViewTextBoxColumn, "labelDataGridViewTextBoxColumn");
+ labelDataGridViewTextBoxColumn.Name = "labelDataGridViewTextBoxColumn";
+ labelDataGridViewTextBoxColumn.ReadOnly = true;
+ labelDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// elementDataGridViewTextBoxColumn
//
- this.elementDataGridViewTextBoxColumn.DataPropertyName = "Element";
+ elementDataGridViewTextBoxColumn.DataPropertyName = "Element";
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.elementDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
- resources.ApplyResources(this.elementDataGridViewTextBoxColumn, "elementDataGridViewTextBoxColumn");
- this.elementDataGridViewTextBoxColumn.Name = "elementDataGridViewTextBoxColumn";
- this.elementDataGridViewTextBoxColumn.ReadOnly = true;
- this.elementDataGridViewTextBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.elementDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ elementDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
+ resources.ApplyResources(elementDataGridViewTextBoxColumn, "elementDataGridViewTextBoxColumn");
+ elementDataGridViewTextBoxColumn.Name = "elementDataGridViewTextBoxColumn";
+ elementDataGridViewTextBoxColumn.ReadOnly = true;
+ elementDataGridViewTextBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ elementDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// xDataGridViewTextBoxColumn
//
- this.xDataGridViewTextBoxColumn.DataPropertyName = "X";
+ xDataGridViewTextBoxColumn.DataPropertyName = "X";
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.xDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
- resources.ApplyResources(this.xDataGridViewTextBoxColumn, "xDataGridViewTextBoxColumn");
- this.xDataGridViewTextBoxColumn.Name = "xDataGridViewTextBoxColumn";
- this.xDataGridViewTextBoxColumn.ReadOnly = true;
- this.xDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ xDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
+ resources.ApplyResources(xDataGridViewTextBoxColumn, "xDataGridViewTextBoxColumn");
+ xDataGridViewTextBoxColumn.Name = "xDataGridViewTextBoxColumn";
+ xDataGridViewTextBoxColumn.ReadOnly = true;
+ xDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// yDataGridViewTextBoxColumn
//
- this.yDataGridViewTextBoxColumn.DataPropertyName = "Y";
+ yDataGridViewTextBoxColumn.DataPropertyName = "Y";
dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.yDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
- resources.ApplyResources(this.yDataGridViewTextBoxColumn, "yDataGridViewTextBoxColumn");
- this.yDataGridViewTextBoxColumn.Name = "yDataGridViewTextBoxColumn";
- this.yDataGridViewTextBoxColumn.ReadOnly = true;
- this.yDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ yDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
+ resources.ApplyResources(yDataGridViewTextBoxColumn, "yDataGridViewTextBoxColumn");
+ yDataGridViewTextBoxColumn.Name = "yDataGridViewTextBoxColumn";
+ yDataGridViewTextBoxColumn.ReadOnly = true;
+ yDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// zDataGridViewTextBoxColumn
//
- this.zDataGridViewTextBoxColumn.DataPropertyName = "Z";
+ zDataGridViewTextBoxColumn.DataPropertyName = "Z";
dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.zDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6;
- resources.ApplyResources(this.zDataGridViewTextBoxColumn, "zDataGridViewTextBoxColumn");
- this.zDataGridViewTextBoxColumn.Name = "zDataGridViewTextBoxColumn";
- this.zDataGridViewTextBoxColumn.ReadOnly = true;
- this.zDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ zDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6;
+ resources.ApplyResources(zDataGridViewTextBoxColumn, "zDataGridViewTextBoxColumn");
+ zDataGridViewTextBoxColumn.Name = "zDataGridViewTextBoxColumn";
+ zDataGridViewTextBoxColumn.ReadOnly = true;
+ zDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// occDataGridViewTextBoxColumn
//
- this.occDataGridViewTextBoxColumn.DataPropertyName = "Occ.";
+ occDataGridViewTextBoxColumn.DataPropertyName = "Occ.";
dataGridViewCellStyle7.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.occDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle7;
- resources.ApplyResources(this.occDataGridViewTextBoxColumn, "occDataGridViewTextBoxColumn");
- this.occDataGridViewTextBoxColumn.Name = "occDataGridViewTextBoxColumn";
- this.occDataGridViewTextBoxColumn.ReadOnly = true;
- this.occDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ occDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle7;
+ resources.ApplyResources(occDataGridViewTextBoxColumn, "occDataGridViewTextBoxColumn");
+ occDataGridViewTextBoxColumn.Name = "occDataGridViewTextBoxColumn";
+ occDataGridViewTextBoxColumn.ReadOnly = true;
+ occDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// multiDataGridViewTextBoxColumn
//
- this.multiDataGridViewTextBoxColumn.DataPropertyName = "Multi.";
+ multiDataGridViewTextBoxColumn.DataPropertyName = "Multi.";
dataGridViewCellStyle8.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.multiDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8;
- resources.ApplyResources(this.multiDataGridViewTextBoxColumn, "multiDataGridViewTextBoxColumn");
- this.multiDataGridViewTextBoxColumn.Name = "multiDataGridViewTextBoxColumn";
- this.multiDataGridViewTextBoxColumn.ReadOnly = true;
- this.multiDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ multiDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8;
+ resources.ApplyResources(multiDataGridViewTextBoxColumn, "multiDataGridViewTextBoxColumn");
+ multiDataGridViewTextBoxColumn.Name = "multiDataGridViewTextBoxColumn";
+ multiDataGridViewTextBoxColumn.ReadOnly = true;
+ multiDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// wyckLetDataGridViewTextBoxColumn
//
- this.wyckLetDataGridViewTextBoxColumn.DataPropertyName = "Wyck. Let.";
+ wyckLetDataGridViewTextBoxColumn.DataPropertyName = "Wyck. Let.";
dataGridViewCellStyle9.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.wyckLetDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9;
- resources.ApplyResources(this.wyckLetDataGridViewTextBoxColumn, "wyckLetDataGridViewTextBoxColumn");
- this.wyckLetDataGridViewTextBoxColumn.Name = "wyckLetDataGridViewTextBoxColumn";
- this.wyckLetDataGridViewTextBoxColumn.ReadOnly = true;
- this.wyckLetDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ wyckLetDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9;
+ resources.ApplyResources(wyckLetDataGridViewTextBoxColumn, "wyckLetDataGridViewTextBoxColumn");
+ wyckLetDataGridViewTextBoxColumn.Name = "wyckLetDataGridViewTextBoxColumn";
+ wyckLetDataGridViewTextBoxColumn.ReadOnly = true;
+ wyckLetDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// siteSymDataGridViewTextBoxColumn
//
- this.siteSymDataGridViewTextBoxColumn.DataPropertyName = "Site Sym.";
+ siteSymDataGridViewTextBoxColumn.DataPropertyName = "Site Sym.";
dataGridViewCellStyle10.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.siteSymDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle10;
- resources.ApplyResources(this.siteSymDataGridViewTextBoxColumn, "siteSymDataGridViewTextBoxColumn");
- this.siteSymDataGridViewTextBoxColumn.Name = "siteSymDataGridViewTextBoxColumn";
- this.siteSymDataGridViewTextBoxColumn.ReadOnly = true;
- this.siteSymDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ siteSymDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle10;
+ resources.ApplyResources(siteSymDataGridViewTextBoxColumn, "siteSymDataGridViewTextBoxColumn");
+ siteSymDataGridViewTextBoxColumn.Name = "siteSymDataGridViewTextBoxColumn";
+ siteSymDataGridViewTextBoxColumn.ReadOnly = true;
+ siteSymDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// bindingSource
//
- this.bindingSource.DataMember = "DataTableAtom";
- this.bindingSource.DataSource = this.dataSet;
- this.bindingSource.CurrentChanged += new System.EventHandler(this.bindingSource_PositionChanged);
- this.bindingSource.PositionChanged += new System.EventHandler(this.bindingSource_PositionChanged);
+ bindingSource.DataMember = "DataTableAtom";
+ bindingSource.DataSource = dataSet;
+ bindingSource.CurrentChanged += bindingSource_PositionChanged;
+ bindingSource.PositionChanged += bindingSource_PositionChanged;
//
// dataSet
//
- this.dataSet.DataSetName = "DataSet";
- this.dataSet.Namespace = "http://tempuri.org/DataSet1.xsd";
- this.dataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+ dataSet.DataSetName = "DataSet";
+ dataSet.Namespace = "http://tempuri.org/DataSet1.xsd";
+ dataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// panel1
//
- this.panel1.Controls.Add(this.buttonAtomUp);
- this.panel1.Controls.Add(this.buttonAtomDown);
- this.panel1.Controls.Add(this.buttonDeleteAtom);
- this.panel1.Controls.Add(this.buttonApplyToAllElements);
- this.panel1.Controls.Add(this.buttonApplyToSameElement);
- this.panel1.Controls.Add(this.buttonChange);
- this.panel1.Controls.Add(this.buttonAddAtom);
- resources.ApplyResources(this.panel1, "panel1");
- this.panel1.Name = "panel1";
+ panel1.Controls.Add(buttonAtomUp);
+ panel1.Controls.Add(buttonAtomDown);
+ panel1.Controls.Add(buttonDeleteAtom);
+ panel1.Controls.Add(buttonApplyToAllElements);
+ panel1.Controls.Add(buttonApplyToSameElement);
+ panel1.Controls.Add(buttonChange);
+ panel1.Controls.Add(buttonAddAtom);
+ resources.ApplyResources(panel1, "panel1");
+ panel1.Name = "panel1";
//
// dataGridViewTextBoxColumn1
//
- this.dataGridViewTextBoxColumn1.DataPropertyName = "Atom";
- resources.ApplyResources(this.dataGridViewTextBoxColumn1, "dataGridViewTextBoxColumn1");
- this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
- this.dataGridViewTextBoxColumn1.ReadOnly = true;
+ dataGridViewTextBoxColumn1.DataPropertyName = "Atom";
+ resources.ApplyResources(dataGridViewTextBoxColumn1, "dataGridViewTextBoxColumn1");
+ dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+ dataGridViewTextBoxColumn1.ReadOnly = true;
//
// AtomControl
//
resources.ApplyResources(this, "$this");
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
- this.Controls.Add(this.dataGridView);
- this.Controls.Add(this.panel1);
- this.Controls.Add(this.flowLayoutPanel2);
- this.Controls.Add(this.flowLayoutPanel1);
- this.Controls.Add(this.tabControl);
- this.Name = "AtomControl";
- this.flowLayoutPanelIso.ResumeLayout(false);
- this.tableLayoutPanel4.ResumeLayout(false);
- this.tableLayoutPanel4.PerformLayout();
- this.flowLayoutPanel8.ResumeLayout(false);
- this.flowLayoutPanel8.PerformLayout();
- this.flowLayoutPanel9.ResumeLayout(false);
- this.flowLayoutPanel9.PerformLayout();
- this.tabControl.ResumeLayout(false);
- this.tabPageElementAndPosition.ResumeLayout(false);
- this.tabPageElementAndPosition.PerformLayout();
- this.tableLayoutPanel1.ResumeLayout(false);
- this.tableLayoutPanel1.PerformLayout();
- this.tabPageOriginShift.ResumeLayout(false);
- this.tabPageOriginShift.PerformLayout();
- this.flowLayoutPanel3.ResumeLayout(false);
- this.flowLayoutPanel3.PerformLayout();
- this.tabPageDebyeWaller.ResumeLayout(false);
- this.tabPageDebyeWaller.PerformLayout();
- this.flowLayoutPanel6.ResumeLayout(false);
- this.flowLayoutPanel6.PerformLayout();
- this.flowLayoutPanel5.ResumeLayout(false);
- this.flowLayoutPanel5.PerformLayout();
- this.flowLayoutPanel4.ResumeLayout(false);
- this.flowLayoutPanel4.PerformLayout();
- this.flowLayoutPanelAniso2.ResumeLayout(false);
- this.flowLayoutPanelAniso1.ResumeLayout(false);
- this.tabPageScatteringFactor.ResumeLayout(false);
- this.tabPageScatteringFactor.PerformLayout();
- this.tabPageAppearance.ResumeLayout(false);
- this.tabPageAppearance.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataSet)).EndInit();
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ Controls.Add(dataGridView);
+ Controls.Add(panel1);
+ Controls.Add(flowLayoutPanel2);
+ Controls.Add(flowLayoutPanel1);
+ Controls.Add(tabControl);
+ Name = "AtomControl";
+ flowLayoutPanelIso.ResumeLayout(false);
+ tableLayoutPanel4.ResumeLayout(false);
+ tableLayoutPanel4.PerformLayout();
+ flowLayoutPanel8.ResumeLayout(false);
+ flowLayoutPanel8.PerformLayout();
+ flowLayoutPanel9.ResumeLayout(false);
+ flowLayoutPanel9.PerformLayout();
+ tabControl.ResumeLayout(false);
+ tabPageElementAndPosition.ResumeLayout(false);
+ tabPageElementAndPosition.PerformLayout();
+ tableLayoutPanel1.ResumeLayout(false);
+ tableLayoutPanel1.PerformLayout();
+ tabPageOriginShift.ResumeLayout(false);
+ tabPageOriginShift.PerformLayout();
+ flowLayoutPanel3.ResumeLayout(false);
+ flowLayoutPanel3.PerformLayout();
+ tabPageDebyeWaller.ResumeLayout(false);
+ tabPageDebyeWaller.PerformLayout();
+ flowLayoutPanel6.ResumeLayout(false);
+ flowLayoutPanel6.PerformLayout();
+ flowLayoutPanel5.ResumeLayout(false);
+ flowLayoutPanel5.PerformLayout();
+ flowLayoutPanel4.ResumeLayout(false);
+ flowLayoutPanel4.PerformLayout();
+ flowLayoutPanelAniso2.ResumeLayout(false);
+ flowLayoutPanelAniso1.ResumeLayout(false);
+ tabPageScatteringFactor.ResumeLayout(false);
+ tabPageScatteringFactor.PerformLayout();
+ tabPageAppearance.ResumeLayout(false);
+ tabPageAppearance.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
+ ((System.ComponentModel.ISupportInitialize)bindingSource).EndInit();
+ ((System.ComponentModel.ISupportInitialize)dataSet).EndInit();
+ panel1.ResumeLayout(false);
+ panel1.PerformLayout();
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
diff --git a/Crystallography.Controls/Crystal/AtomControl.cs b/Crystallography.Controls/Crystal/AtomControl.cs
index 0ec8505..1fc6c0e 100644
--- a/Crystallography.Controls/Crystal/AtomControl.cs
+++ b/Crystallography.Controls/Crystal/AtomControl.cs
@@ -7,828 +7,836 @@
using System.Reflection;
using System.Windows.Forms;
-namespace Crystallography.Controls
+namespace Crystallography.Controls;
+public partial class AtomControl : UserControl
{
- public partial class AtomControl : UserControl
+ #region プロパティ, フィールド, イベントハンドラ
+ public new bool DesignMode
{
- #region プロパティ, フィールド, イベントハンドラ
-
- public Crystal Crystal
+ get
{
- get => crystal;
- set
+ if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
+ return true;
+ Control ctrl = this;
+ while (ctrl != null)
{
- crystal = value;
-
- if (crystal != null)
- {
- SuspendLayout();
- table.Clear();
- AddRange(Crystal.Atoms);
- //なぜかEnabledカラムのVisibleが予期せず変わってしまうことがあるので、appearanceTabVisibleを使う.
- dataGridView.Columns["enabledColumn"].Visible = appearanceTabVisible;
- ResumeLayout();
- }
+ if (ctrl.Site != null && ctrl.Site.DesignMode)
+ return true;
+ ctrl = ctrl.Parent;
}
+ return false;
}
- private Crystal crystal = null;
-
- public int SymmetrySeriesNumber { get => crystal != null ? crystal.SymmetrySeriesNumber : 0; }
+ }
+ public Crystal Crystal
+ {
+ get => crystal;
+ set
+ {
+ crystal = value;
- DataSet.DataTableAtomDataTable table;
- public bool SkipEvent { get; set; } = false;
+ if (crystal != null)
+ {
+ SuspendLayout();
+ table.Clear();
+ AddRange(Crystal.Atoms);
+ //なぜかEnabledカラムのVisibleが予期せず変わってしまうことがあるので、appearanceTabVisibleを使う.
+ dataGridView.Columns["enabledColumn"].Visible = appearanceTabVisible;
+ ResumeLayout();
+ }
+ }
+ }
+ private Crystal crystal = null;
+ public int SymmetrySeriesNumber { get => crystal != null ? crystal.SymmetrySeriesNumber : 0; }
+ readonly DataSet.DataTableAtomDataTable table;
+ public bool SkipEvent { get; set; } = false;
- public bool AtomicPositionError
+ public bool AtomicPositionError
+ {
+ set
{
- set
+ atmicPositionError = value;
+ if (value == false)
{
- atmicPositionError = value;
- if (value == false)
- {
- tableLayoutPanel1.ColumnStyles[4].SizeType = tableLayoutPanel1.ColumnStyles[7].SizeType = SizeType.Absolute;
- tableLayoutPanel1.ColumnStyles[4].Width = tableLayoutPanel1.ColumnStyles[7].Width = 0;
+ tableLayoutPanel1.ColumnStyles[4].SizeType = tableLayoutPanel1.ColumnStyles[7].SizeType = SizeType.Absolute;
+ tableLayoutPanel1.ColumnStyles[4].Width = tableLayoutPanel1.ColumnStyles[7].Width = 0;
- numericBoxXerr.TabStop = numericBoxYerr.TabStop = numericBoxZerr.TabStop = numericBoxOccerr.TabStop = false;
- }
- else
- {
- tableLayoutPanel1.ColumnStyles[1].SizeType = tableLayoutPanel1.ColumnStyles[3].SizeType = tableLayoutPanel1.ColumnStyles[4].SizeType =
- tableLayoutPanel1.ColumnStyles[6].SizeType = tableLayoutPanel1.ColumnStyles[7].SizeType = SizeType.Percent;
+ numericBoxXerr.TabStop = numericBoxYerr.TabStop = numericBoxZerr.TabStop = numericBoxOccerr.TabStop = false;
+ }
+ else
+ {
+ tableLayoutPanel1.ColumnStyles[1].SizeType = tableLayoutPanel1.ColumnStyles[3].SizeType = tableLayoutPanel1.ColumnStyles[4].SizeType =
+ tableLayoutPanel1.ColumnStyles[6].SizeType = tableLayoutPanel1.ColumnStyles[7].SizeType = SizeType.Percent;
- tableLayoutPanel1.ColumnStyles[1].Width = tableLayoutPanel1.ColumnStyles[3].Width = tableLayoutPanel1.ColumnStyles[4].Width
- = tableLayoutPanel1.ColumnStyles[6].Width = tableLayoutPanel1.ColumnStyles[7].Width = 20;
+ tableLayoutPanel1.ColumnStyles[1].Width = tableLayoutPanel1.ColumnStyles[3].Width = tableLayoutPanel1.ColumnStyles[4].Width
+ = tableLayoutPanel1.ColumnStyles[6].Width = tableLayoutPanel1.ColumnStyles[7].Width = 20;
- numericBoxXerr.TabStop = numericBoxYerr.TabStop = numericBoxZerr.TabStop = numericBoxOccerr.TabStop = true;
- }
+ numericBoxXerr.TabStop = numericBoxYerr.TabStop = numericBoxZerr.TabStop = numericBoxOccerr.TabStop = true;
}
- get => atmicPositionError;
}
- private bool atmicPositionError = false;
+ get => atmicPositionError;
+ }
+ private bool atmicPositionError = false;
- public bool DebyeWallerError
+ public bool DebyeWallerError
+ {
+ set
{
- set
+ debyeWallerError = value;
+ if (value == false)
{
- debyeWallerError = value;
- if (value == false)
- {
- //numericBoxBiso.Width = numericBoxB11.Width = numericBoxB12.Width =
- // numericBoxB13.Width = numericBoxB22.Width = numericBoxB23.Width = numericBoxB33.Width = 60;
+ //numericBoxBiso.Width = numericBoxB11.Width = numericBoxB12.Width =
+ // numericBoxB13.Width = numericBoxB22.Width = numericBoxB23.Width = numericBoxB33.Width = 60;
- numericBoxBisoerr.Visible = numericBoxB11err.Visible = numericBoxB12err.Visible = numericBoxB13err.Visible = numericBoxB22err.Visible
- = numericBoxB23err.Visible = numericBoxB33err.Visible = false;
- }
- else
- {
- //numericBoxBiso.Width = numericBoxB11.Width = numericBoxB12.Width =
- // numericBoxB13.Width = numericBoxB22.Width = numericBoxB23.Width = numericBoxB33.Width = 45;
+ numericBoxBisoerr.Visible = numericBoxB11err.Visible = numericBoxB12err.Visible = numericBoxB13err.Visible = numericBoxB22err.Visible
+ = numericBoxB23err.Visible = numericBoxB33err.Visible = false;
+ }
+ else
+ {
+ //numericBoxBiso.Width = numericBoxB11.Width = numericBoxB12.Width =
+ // numericBoxB13.Width = numericBoxB22.Width = numericBoxB23.Width = numericBoxB33.Width = 45;
- numericBoxBisoerr.Visible = numericBoxBiso.Visible =
- numericBoxB33err.Visible = numericBoxB23err.Visible =
- numericBoxB22err.Visible = numericBoxB13err.Visible =
- numericBoxB12err.Visible = numericBoxB11err.Visible = true;
- }
+ numericBoxBisoerr.Visible = numericBoxBiso.Visible =
+ numericBoxB33err.Visible = numericBoxB23err.Visible =
+ numericBoxB22err.Visible = numericBoxB13err.Visible =
+ numericBoxB12err.Visible = numericBoxB11err.Visible = true;
}
- get => debyeWallerError;
}
- private bool debyeWallerError = false;
+ get => debyeWallerError;
+ }
+ private bool debyeWallerError = false;
- public bool UseIsotropy
+ public bool UseIsotropy
+ {
+ set
{
- set
- {
- if (value)
- radioButtonIsotoropy.Checked = true;
- else
- radioButtonAnisotropy.Checked = true;
- }
- get => radioButtonIsotoropy.Checked;
+ if (value)
+ radioButtonIsotoropy.Checked = true;
+ else
+ radioButtonAnisotropy.Checked = true;
}
+ get => radioButtonIsotoropy.Checked;
+ }
- public bool UseTypeU
+ public bool UseTypeU
+ {
+ set
{
- set
- {
- if (value)
- radioButtonDebyeWallerTypeU.Checked = true;
- else
- radioButtonDebyeWallerTypeB.Checked = true;
- }
- get => radioButtonDebyeWallerTypeU.Checked;
+ if (value)
+ radioButtonDebyeWallerTypeU.Checked = true;
+ else
+ radioButtonDebyeWallerTypeB.Checked = true;
}
+ get => radioButtonDebyeWallerTypeU.Checked;
+ }
- #region 温度因子 プロパティ
- [Category("Atom")]
- public double Iso { set => numericBoxBiso.Value = value; get => numericBoxBiso.Value; }
- [Category("Atom")]
- public double IsoErr { set => numericBoxBisoerr.Value = value; get => numericBoxBisoerr.Value; }
- [Category("Atom")]
- public double Aniso11 { set => numericBoxB11.Value = value; get => numericBoxB11.Value; }
- [Category("Atom")]
- public double Aniso11Err { set => numericBoxB11err.Value = value; get => numericBoxB11err.Value; }
- [Category("Atom")]
- public double Aniso12 { set => numericBoxB12.Value = value; get => numericBoxB12.Value; }
- [Category("Atom")]
- public double Aniso12Err { set => numericBoxB12err.Value = value; get => numericBoxB12err.Value; }
- [Category("Atom")]
- public double Aniso13 { set => numericBoxB13.Value = value; get => numericBoxB13.Value; }
- [Category("Atom")]
- public double Aniso13Err { set => numericBoxB13err.Value = value; get => numericBoxB13err.Value; }
- [Category("Atom")]
- public double Aniso22 { set => numericBoxB22.Value = value; get => numericBoxB22.Value; }
- [Category("Atom")]
- public double Aniso22Err { set => numericBoxB22err.Value = value; get => numericBoxB22err.Value; }
- [Category("Atom")]
- public double Aniso23 { set => numericBoxB23.Value = value; get { return numericBoxB23.Value; } }
- [Category("Atom")]
- public double Aniso23Err { set { numericBoxB23err.Value = value; } get { return numericBoxB23err.Value; } }
- [Category("Atom")]
- public double Aniso33 { set { numericBoxB33.Value = value; } get { return numericBoxB33.Value; } }
- [Category("Atom")]
- public double Aniso33Err { set { numericBoxB33err.Value = value; } get { return numericBoxB33err.Value; } }
- #endregion
-
- #region 原子位置 プロパティ
- [Category("Atom")]
- public double X { set { numericBoxX.Value = value; } get { return numericBoxX.Value; } }
-
- [Category("Atom")]
- public double XErr { set { numericBoxXerr.Value = value; } get { return numericBoxXerr.Value; } }
-
- [Category("Atom")]
- public double Y { set { numericBoxY.Value = value; } get { return numericBoxY.Value; } }
-
- [Category("Atom")]
- public double YErr { set { numericBoxYerr.Value = value; } get { return numericBoxYerr.Value; } }
-
- [Category("Atom")]
- public double Z { set { numericBoxZ.Value = value; } get { return numericBoxZ.Value; } }
-
- [Category("Atom")]
- public double ZErr { set => numericBoxZerr.Value = value; get => numericBoxZerr.Value; }
- #endregion
-
- [Category("Atom")]
- public double Occ { set => numericBoxOcc.Value = value; get => numericBoxOcc.Value; }
- [Category("Atom")]
- public double OccErr { set => numericBoxOccerr.Value = value; get => numericBoxOccerr.Value; }
- [Category("Atom")]
- public string Label { set => textBoxLabel.Text = value; get => textBoxLabel.Text; }
- [Category("Atom")]
- public int AtomNo { set => comboBoxAtom.SelectedIndex = value - 1; get => comboBoxAtom.SelectedIndex + 1; }
-
- [Category("Atom")]
- public int AtomSubNoXray { set => comboBoxScatteringFactorXray.SelectedIndex = value; get => comboBoxScatteringFactorXray.SelectedIndex; }
-
- [Category("Atom")]
- public int AtomSubNoElectron { set => comboBoxScatteringFactorElectron.SelectedIndex = value; get => comboBoxScatteringFactorElectron.SelectedIndex; }
-
- private double[] isotopicComposition;
- public double[] IsotopicComposition
+ #region 温度因子 プロパティ
+ [Category("Atom")]
+ public double Iso { set => numericBoxBiso.Value = value; get => numericBoxBiso.Value; }
+ [Category("Atom")]
+ public double IsoErr { set => numericBoxBisoerr.Value = value; get => numericBoxBisoerr.Value; }
+ [Category("Atom")]
+ public double Aniso11 { set => numericBoxB11.Value = value; get => numericBoxB11.Value; }
+ [Category("Atom")]
+ public double Aniso11Err { set => numericBoxB11err.Value = value; get => numericBoxB11err.Value; }
+ [Category("Atom")]
+ public double Aniso12 { set => numericBoxB12.Value = value; get => numericBoxB12.Value; }
+ [Category("Atom")]
+ public double Aniso12Err { set => numericBoxB12err.Value = value; get => numericBoxB12err.Value; }
+ [Category("Atom")]
+ public double Aniso13 { set => numericBoxB13.Value = value; get => numericBoxB13.Value; }
+ [Category("Atom")]
+ public double Aniso13Err { set => numericBoxB13err.Value = value; get => numericBoxB13err.Value; }
+ [Category("Atom")]
+ public double Aniso22 { set => numericBoxB22.Value = value; get => numericBoxB22.Value; }
+ [Category("Atom")]
+ public double Aniso22Err { set => numericBoxB22err.Value = value; get => numericBoxB22err.Value; }
+ [Category("Atom")]
+ public double Aniso23 { set => numericBoxB23.Value = value; get { return numericBoxB23.Value; } }
+ [Category("Atom")]
+ public double Aniso23Err { set { numericBoxB23err.Value = value; } get { return numericBoxB23err.Value; } }
+ [Category("Atom")]
+ public double Aniso33 { set { numericBoxB33.Value = value; } get { return numericBoxB33.Value; } }
+ [Category("Atom")]
+ public double Aniso33Err { set { numericBoxB33err.Value = value; } get { return numericBoxB33err.Value; } }
+ #endregion
+
+ #region 原子位置 プロパティ
+ [Category("Atom")]
+ public double X { set { numericBoxX.Value = value; } get { return numericBoxX.Value; } }
+
+ [Category("Atom")]
+ public double XErr { set { numericBoxXerr.Value = value; } get { return numericBoxXerr.Value; } }
+
+ [Category("Atom")]
+ public double Y { set { numericBoxY.Value = value; } get { return numericBoxY.Value; } }
+
+ [Category("Atom")]
+ public double YErr { set { numericBoxYerr.Value = value; } get { return numericBoxYerr.Value; } }
+
+ [Category("Atom")]
+ public double Z { set { numericBoxZ.Value = value; } get { return numericBoxZ.Value; } }
+
+ [Category("Atom")]
+ public double ZErr { set => numericBoxZerr.Value = value; get => numericBoxZerr.Value; }
+ #endregion
+
+ [Category("Atom")]
+ public double Occ { set => numericBoxOcc.Value = value; get => numericBoxOcc.Value; }
+ [Category("Atom")]
+ public double OccErr { set => numericBoxOccerr.Value = value; get => numericBoxOccerr.Value; }
+ [Category("Atom")]
+ public string Label { set => textBoxLabel.Text = value; get => textBoxLabel.Text; }
+ [Category("Atom")]
+ public int AtomNo { set => comboBoxAtom.SelectedIndex = value - 1; get => comboBoxAtom.SelectedIndex + 1; }
+
+ [Category("Atom")]
+ public int AtomSubNoXray { set => comboBoxScatteringFactorXray.SelectedIndex = value; get => comboBoxScatteringFactorXray.SelectedIndex; }
+
+ [Category("Atom")]
+ public int AtomSubNoElectron { set => comboBoxScatteringFactorElectron.SelectedIndex = value; get => comboBoxScatteringFactorElectron.SelectedIndex; }
+
+ private double[] isotopicComposition;
+ public double[] IsotopicComposition
+ {
+ set
{
- set
- {
- isotopicComposition = value;
- if (isotopicComposition == null || isotopicComposition.Length != AtomStatic.IsotopeAbundance[AtomNo].Count)
- comboBoxNeutron.SelectedIndex = 0;
- else
- comboBoxNeutron.SelectedIndex = 1;
+ isotopicComposition = value;
+ if (isotopicComposition == null || isotopicComposition.Length != AtomStatic.IsotopeAbundance[AtomNo].Count)
+ comboBoxNeutron.SelectedIndex = 0;
+ else
+ comboBoxNeutron.SelectedIndex = 1;
- comboBoxNeutron_SelectedIndexChanged(new object(), new EventArgs());
- }
- get => isotopicComposition;
+ comboBoxNeutron_SelectedIndexChanged(new object(), new EventArgs());
}
+ get => isotopicComposition;
+ }
- #region マテリアル プロパティ
- [Category("Material properties")]
- public float Ambient { get => (float)numericBoxAmbient.Value; set => numericBoxAmbient.Value = value; }
- [Category("Material properties")]
- public float Diffusion { get => (float)numericBoxDiffusion.Value; set => numericBoxDiffusion.Value = value; }
- [Category("Material properties")]
- public float Specular { get => (float)numericBoxSpecular.Value; set => numericBoxSpecular.Value = value; }
- [Category("Material properties")]
- public float Shininess { get => (float)numericBoxShininess.Value; set => numericBoxShininess.Value = value; }
- [Category("Material properties")]
- public float Emission { get => (float)numericBoxEmission.Value; set => numericBoxEmission.Value = value; }
- [Category("Material properties")]
- public float Alpha { get => (float)numericBoxAlpha.Value; set => numericBoxAlpha.Value = value; }
- [Category("Material properties")]
- public double Radius { get => numericBoxAtomRadius.Value; set => numericBoxAtomRadius.Value = value; }
- [Category("Material properties")]
- public Color AtomColor { get => colorControlAtomColor.Color; set => colorControlAtomColor.Color = value; }
- [Category("Material properties")]
- public bool ShowLabel { get => checkBoxShowLabel.Checked; set => checkBoxShowLabel.Checked = value; }
-
-
- #endregion
+ #region マテリアル プロパティ
+ [Category("Material properties")]
+ public float Ambient { get => (float)numericBoxAmbient.Value; set => numericBoxAmbient.Value = value; }
+ [Category("Material properties")]
+ public float Diffusion { get => (float)numericBoxDiffusion.Value; set => numericBoxDiffusion.Value = value; }
+ [Category("Material properties")]
+ public float Specular { get => (float)numericBoxSpecular.Value; set => numericBoxSpecular.Value = value; }
+ [Category("Material properties")]
+ public float Shininess { get => (float)numericBoxShininess.Value; set => numericBoxShininess.Value = value; }
+ [Category("Material properties")]
+ public float Emission { get => (float)numericBoxEmission.Value; set => numericBoxEmission.Value = value; }
+ [Category("Material properties")]
+ public float Alpha { get => (float)numericBoxAlpha.Value; set => numericBoxAlpha.Value = value; }
+ [Category("Material properties")]
+ public double Radius { get => numericBoxAtomRadius.Value; set => numericBoxAtomRadius.Value = value; }
+ [Category("Material properties")]
+ public Color AtomColor { get => colorControlAtomColor.Color; set => colorControlAtomColor.Color = value; }
+ [Category("Material properties")]
+ public bool ShowLabel { get => checkBoxShowLabel.Checked; set => checkBoxShowLabel.Checked = value; }
+
+
+ #endregion
+
+
+ #region Tabの表示/非表示 プロパティ
+ [Category("Tab")]
+ public bool ElementAndPositionTabVisible { set { elementAndPositionTabVisible = value; setTabPages(); } get => elementAndPositionTabVisible; }
+ private bool elementAndPositionTabVisible = true;
+
+ [Category("Tab")]
+ public bool OriginShiftVisible { set { originShiftTabVisible = value; setTabPages(); } get => originShiftTabVisible; }
+ private bool originShiftTabVisible = true;
+
+ [Category("Tab")]
+ public bool DebyeWallerTabVisible { set { debyeWallerTabVisible = value; setTabPages(); } get => debyeWallerTabVisible; }
+ private bool debyeWallerTabVisible = true;
+
+ [Category("Tab")]
+ public bool ScatteringFactorTabVisible { set { scatteringFactorTabVisible = value; setTabPages(); } get => scatteringFactorTabVisible; }
+ private bool scatteringFactorTabVisible = true;
+
+ [Category("Tab")]
+ public bool AppearanceTabVisible { set { appearanceTabVisible = value; setTabPages(); } get => appearanceTabVisible; }
+ private bool appearanceTabVisible = true;
+
+ [Category("Tab")]
+ public int SelectedTabIndex { get => tabControl.SelectedIndex; set => tabControl.SelectedIndex = value; }
+ #endregion
+
+ ///
+ /// 原子のパラメータが変更された時のイベント
+ ///
+ public event EventHandler ItemsChanged;
+
+ ///
+ /// GLEnabledチェックが変更された時だけのイベント. (今のところFormStructureだけが受け取る)
+ ///
+ public event EventHandler GLEnableChanged;
+
+ #endregion プロパティ
+
+ #region コンストラクタ
+ public AtomControl()
+ {
+ if (DesignMode) return;
+ InitializeComponent();
+ SkipEvent = true;
+ table = dataSet.DataTableAtom;
+ comboBoxAtom.SelectedIndex = 0;
+ comboBoxNeutron.SelectedIndex = 0;
+ // toolTip.SetTooltipToUsercontrol(this);
+ //なぜか一部のnumericBoxのUp/Downが消えてしまうので、対処
+ numericBoxAmbient.ShowUpDown = numericBoxDiffusion.ShowUpDown = numericBoxSpecular.ShowUpDown = numericBoxShininess.ShowUpDown =
+ numericBoxEmission.ShowUpDown = numericBoxAlpha.ShowUpDown = numericBoxAtomRadius.ShowUpDown = true;
- #region Tabの表示/非表示 プロパティ
- [Category("Tab")]
- public bool ElementAndPositionTabVisible { set { elementAndPositionTabVisible = value; setTabPages(); } get => elementAndPositionTabVisible; }
- private bool elementAndPositionTabVisible = true;
+ dataGridView.Columns["enabledColumn"].Visible = false;
+ SkipEvent = false;
- [Category("Tab")]
- public bool OriginShiftVisible { set { originShiftTabVisible = value; setTabPages(); } get => originShiftTabVisible; }
- private bool originShiftTabVisible = true;
+ typeof(DataGridView).GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(dataGridView, true, null);
- [Category("Tab")]
- public bool DebyeWallerTabVisible { set { debyeWallerTabVisible = value; setTabPages(); } get => debyeWallerTabVisible; }
- private bool debyeWallerTabVisible = true;
+ }
- [Category("Tab")]
- public bool ScatteringFactorTabVisible { set { scatteringFactorTabVisible = value; setTabPages(); } get => scatteringFactorTabVisible; }
- private bool scatteringFactorTabVisible = true;
+ #endregion
- [Category("Tab")]
- public bool AppearanceTabVisible { set { appearanceTabVisible = value; setTabPages(); } get => appearanceTabVisible; }
- private bool appearanceTabVisible = true;
+ #region タブベージの表示/非表示制御
+ private void setTabPages()
+ {
+ tabControl.TabPages.Clear();
+ if (ElementAndPositionTabVisible)
+ tabControl.TabPages.Add(tabPageElementAndPosition);
- [Category("Tab")]
- public int SelectedTabIndex { get => tabControl.SelectedIndex; set => tabControl.SelectedIndex = value; }
- #endregion
+ if (originShiftTabVisible)
+ tabControl.TabPages.Add(tabPageOriginShift);
- ///
- /// 原子のパラメータが変更された時のイベント
- ///
- public event EventHandler ItemsChanged;
+ if (DebyeWallerTabVisible)
+ tabControl.TabPages.Add(tabPageDebyeWaller);
- ///
- /// GLEnabledチェックが変更された時だけのイベント. (今のところFormStructureだけが受け取る)
- ///
- public event EventHandler GLEnableChanged;
+ if (ScatteringFactorTabVisible)
+ tabControl.TabPages.Add(tabPageScatteringFactor);
- #endregion プロパティ
+ if (AppearanceTabVisible)
+ tabControl.TabPages.Add(tabPageAppearance);
+ }
- #region コンストラクタ
- public AtomControl()
- {
- InitializeComponent();
- SkipEvent = true;
- table = dataSet.DataTableAtom;
- comboBoxAtom.SelectedIndex = 0;
- comboBoxNeutron.SelectedIndex = 0;
- // toolTip.SetTooltipToUsercontrol(this);
+ #endregion
- //なぜか一部のnumericBoxのUp/Downが消えてしまうので、対処
- numericBoxAmbient.ShowUpDown = numericBoxDiffusion.ShowUpDown = numericBoxSpecular.ShowUpDown = numericBoxShininess.ShowUpDown =
- numericBoxEmission.ShowUpDown = numericBoxAlpha.ShowUpDown = numericBoxAtomRadius.ShowUpDown = true;
+ private void radioButtonIsotoropy_CheckedChanged(object sender, EventArgs e)
+ {
+ flowLayoutPanelAniso1.Visible = flowLayoutPanelAniso2.Visible = !radioButtonIsotoropy.Checked;
+ flowLayoutPanelIso.Visible = radioButtonIsotoropy.Checked;
- dataGridView.Columns["enabledColumn"].Visible = false;
- SkipEvent = false;
+ labelDimension.Text = radioButtonDebyeWallerTypeB.Checked && radioButtonAnisotropy.Checked ? "None" : "Ų";
+ }
- typeof(DataGridView).GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(dataGridView, true, null);
+ private void radioButtonDebyeWallerTypeU_CheckedChanged(object sender, EventArgs e)
+ {
+ var U = radioButtonDebyeWallerTypeU.Checked;
+ numericBoxBiso.HeaderText = U ? "Uiso" : "Biso";
+ numericBoxB11.HeaderText = U ? "U11" : "B11";
+ numericBoxB22.HeaderText = U ? "U22" : "B22";
+ numericBoxB33.HeaderText = U ? "U33" : "B33";
+ numericBoxB12.HeaderText = U ? "U12" : "B12";
+ numericBoxB23.HeaderText = U ? "U23" : "B23";
+ numericBoxB13.HeaderText = U ? "U13" : "B13";
- }
+ labelDimension.Text = radioButtonDebyeWallerTypeB.Checked && radioButtonAnisotropy.Checked ? "None" : "Ų";
- #endregion
+ }
- #region タブベージの表示/非表示制御
- private void setTabPages()
- {
- tabControl.TabPages.Clear();
- if (ElementAndPositionTabVisible)
- tabControl.TabPages.Add(tabPageElementAndPosition);
+ //原子番号コンボ
+ private void comboBoxAtom_SelectedIndexChanged(object sender, System.EventArgs e)
+ {
+ if (SkipEvent) return;
+ if (comboBoxAtom.SelectedIndex < 0) return;
+ comboBoxScatteringFactorXray.Items.Clear();
+ comboBoxScatteringFactorElectron.Items.Clear();
- if (originShiftTabVisible)
- tabControl.TabPages.Add(tabPageOriginShift);
+ for (int i = 0; i < AtomStatic.XrayScatteringWK[AtomNo].Length; i++)
+ comboBoxScatteringFactorXray.Items.Add(AtomStatic.XrayScatteringWK[AtomNo][i].Method);
- if (DebyeWallerTabVisible)
- tabControl.TabPages.Add(tabPageDebyeWaller);
+ for (int i = 0; i < AtomStatic.ElectronScatteringPeng[AtomNo].Length; i++)
+ comboBoxScatteringFactorElectron.Items.Add(AtomStatic.ElectronScatteringPeng[AtomNo][i].Method);
- if (ScatteringFactorTabVisible)
- tabControl.TabPages.Add(tabPageScatteringFactor);
+ comboBoxScatteringFactorXray.SelectedIndex = 0;
+ comboBoxScatteringFactorElectron.SelectedIndex = 0;
+ comboBoxNeutron.SelectedIndex = 0;
+ comboBoxNeutron_SelectedIndexChanged(new object(), new EventArgs());
+ }
- if (AppearanceTabVisible)
- tabControl.TabPages.Add(tabPageAppearance);
- }
+ //散乱因子を選択変更されたら
+ private void comboBoxAtomSub_SelectedIndexChanged(object sender, System.EventArgs e)
+ {
+ /* AtomicScatteringFactor asf;
+ for (int n = 1; n <= 211; n++)
+ {
+ asf = AtomicScatteringFactor.GetCoefficientForXray(n);
+ if (asf.Methods == (string)comboBoxScatteringFactorXray.SelectedItem)
+ atomSeriesNum = n;
+ }*/
+ }
- #endregion
- private void radioButtonIsotoropy_CheckedChanged(object sender, EventArgs e)
- {
- flowLayoutPanelAniso1.Visible = flowLayoutPanelAniso2.Visible = !radioButtonIsotoropy.Checked;
- flowLayoutPanelIso.Visible = radioButtonIsotoropy.Checked;
+ private void checkBoxAtomicPositionError_CheckedChanged(object sender, EventArgs e) => AtomicPositionError = checkBoxDetailAtomicPositionError.Checked;
- labelDimension.Text = radioButtonDebyeWallerTypeB.Checked && radioButtonAnisotropy.Checked ? "None" : "Ų";
- }
+ private void checkBoxDebyeWallerError_CheckedChanged(object sender, EventArgs e) => DebyeWallerError = checkBoxDetailsDebyeWallerError.Checked;
- private void radioButtonDebyeWallerTypeU_CheckedChanged(object sender, EventArgs e)
- {
- var U = radioButtonDebyeWallerTypeU.Checked;
- numericBoxBiso.HeaderText = U ? "Uiso" : "Biso";
- numericBoxB11.HeaderText = U ? "U11" : "B11";
- numericBoxB22.HeaderText = U ? "U22" : "B22";
- numericBoxB33.HeaderText = U ? "U33" : "B33";
- numericBoxB12.HeaderText = U ? "U12" : "B12";
- numericBoxB23.HeaderText = U ? "U23" : "B23";
- numericBoxB13.HeaderText = U ? "U13" : "B13";
- labelDimension.Text = radioButtonDebyeWallerTypeB.Checked && radioButtonAnisotropy.Checked ? "None" : "Ų";
+ #region 中性子関連
+ private void comboBoxNeutron_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (SkipEvent) return;
- }
+ buttonEditIsotopeAbundance.Enabled = comboBoxNeutron.SelectedIndex == 1;
- //原子番号コンボ
- private void comboBoxAtom_SelectedIndexChanged(object sender, System.EventArgs e)
+ richTextBoxIsotope.Clear();
+ int n = 0;
+ foreach (int z in AtomStatic.IsotopeAbundance[AtomNo].Keys)
{
- if (SkipEvent) return;
- if (comboBoxAtom.SelectedIndex < 0) return;
- comboBoxScatteringFactorXray.Items.Clear();
- comboBoxScatteringFactorElectron.Items.Clear();
+ richTextBoxIsotope.SelectionColor = Color.DarkBlue;
+ if (richTextBoxIsotope.Text != "")
+ richTextBoxIsotope.SelectedText = ", ";
- for (int i = 0; i < AtomStatic.XrayScatteringWK[AtomNo].Length; i++)
- comboBoxScatteringFactorXray.Items.Add(AtomStatic.XrayScatteringWK[AtomNo][i].Method);
+ richTextBoxIsotope.SelectionCharOffset = 3;
+ richTextBoxIsotope.SelectionFont = new Font("Tahoma", 6f, FontStyle.Regular);
+ richTextBoxIsotope.SelectedText = z.ToString();
- for (int i = 0; i < AtomStatic.ElectronScatteringPeng[AtomNo].Length; i++)
- comboBoxScatteringFactorElectron.Items.Add(AtomStatic.ElectronScatteringPeng[AtomNo][i].Method);
+ richTextBoxIsotope.SelectionCharOffset = 0;
+ richTextBoxIsotope.SelectionFont = new Font("Tahoma", 9f, FontStyle.Regular);
+ richTextBoxIsotope.SelectedText = AtomStatic.AtomicName(AtomNo) + ": ";
- comboBoxScatteringFactorXray.SelectedIndex = 0;
- comboBoxScatteringFactorElectron.SelectedIndex = 0;
- comboBoxNeutron.SelectedIndex = 0;
- comboBoxNeutron_SelectedIndexChanged(new object(), new EventArgs());
- }
+ richTextBoxIsotope.SelectionColor = Color.Black;
+ if (comboBoxNeutron.SelectedIndex == 0 || isotopicComposition == null || isotopicComposition.Length != AtomStatic.IsotopeAbundance[AtomNo].Count)
+ richTextBoxIsotope.SelectedText = AtomStatic.IsotopeAbundance[AtomNo][z].ToString();
+ else
+ richTextBoxIsotope.SelectedText = isotopicComposition[n++].ToString();
- //散乱因子を選択変更されたら
- private void comboBoxAtomSub_SelectedIndexChanged(object sender, System.EventArgs e)
- {
- /* AtomicScatteringFactor asf;
- for (int n = 1; n <= 211; n++)
- {
- asf = AtomicScatteringFactor.GetCoefficientForXray(n);
- if (asf.Methods == (string)comboBoxScatteringFactorXray.SelectedItem)
- atomSeriesNum = n;
- }*/
+ richTextBoxIsotope.SelectionColor = Color.DarkBlue;
+ richTextBoxIsotope.SelectionFont = new Font("Tahoma", 9f, FontStyle.Regular);
+ richTextBoxIsotope.SelectedText = "%";
+ //labelIsotopeAbundance.Text += + ":" + AtomConstants.IsotopeAbundance[AtomNo][z].ToString() + "%, ";
}
+ }
+ private void buttonEditIsotopeAbundance_Click(object sender, EventArgs e)
+ {
+ var formIsotopeComposition = new FormIsotopeComposition { AtomNumber = AtomNo, IsotopicComposition = isotopicComposition };
+ if (formIsotopeComposition.ShowDialog() == DialogResult.OK)
+ IsotopicComposition = formIsotopeComposition.IsotopicComposition;
+ }
+ #endregion
- private void checkBoxAtomicPositionError_CheckedChanged(object sender, EventArgs e) => AtomicPositionError = checkBoxDetailAtomicPositionError.Checked;
-
- private void checkBoxDebyeWallerError_CheckedChanged(object sender, EventArgs e) => DebyeWallerError = checkBoxDetailsDebyeWallerError.Checked;
-
-
- #region 中性子関連
- private void comboBoxNeutron_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (SkipEvent) return;
-
- buttonEditIsotopeAbundance.Enabled = comboBoxNeutron.SelectedIndex == 1;
- richTextBoxIsotope.Clear();
- int n = 0;
- foreach (int z in AtomStatic.IsotopeAbundance[AtomNo].Keys)
- {
- richTextBoxIsotope.SelectionColor = Color.DarkBlue;
- if (richTextBoxIsotope.Text != "")
- richTextBoxIsotope.SelectedText = ", ";
-
- richTextBoxIsotope.SelectionCharOffset = 3;
- richTextBoxIsotope.SelectionFont = new Font("Tahoma", 6f, FontStyle.Regular);
- richTextBoxIsotope.SelectedText = z.ToString();
-
- richTextBoxIsotope.SelectionCharOffset = 0;
- richTextBoxIsotope.SelectionFont = new Font("Tahoma", 9f, FontStyle.Regular);
- richTextBoxIsotope.SelectedText = AtomStatic.AtomicName(AtomNo) + ": ";
-
- richTextBoxIsotope.SelectionColor = Color.Black;
- if (comboBoxNeutron.SelectedIndex == 0 || isotopicComposition == null || isotopicComposition.Length != AtomStatic.IsotopeAbundance[AtomNo].Count)
- richTextBoxIsotope.SelectedText = AtomStatic.IsotopeAbundance[AtomNo][z].ToString();
- else
- richTextBoxIsotope.SelectedText = isotopicComposition[n++].ToString();
-
- richTextBoxIsotope.SelectionColor = Color.DarkBlue;
- richTextBoxIsotope.SelectionFont = new Font("Tahoma", 9f, FontStyle.Regular);
- richTextBoxIsotope.SelectedText = "%";
- //labelIsotopeAbundance.Text += + ":" + AtomConstants.IsotopeAbundance[AtomNo][z].ToString() + "%, ";
- }
- }
-
- private void buttonEditIsotopeAbundance_Click(object sender, EventArgs e)
- {
- var formIsotopeComposition = new FormIsotopeComposition { AtomNumber = AtomNo, IsotopicComposition = isotopicComposition };
- if (formIsotopeComposition.ShowDialog() == DialogResult.OK)
- IsotopicComposition = formIsotopeComposition.IsotopicComposition;
- }
- #endregion
+ #region データベース操作
+ ///
+ /// データベースに原子を追加する
+ ///
+ ///
+ public void Add(Atoms atoms)
+ {
+ if (atoms != null)
+ table.Add(atoms);
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- #region データベース操作
- ///
- /// データベースに原子を追加する
- ///
- ///
- public void Add(Atoms atoms)
+ ///
+ /// データベースに原子を追加する
+ ///
+ ///
+ public void AddRange(IEnumerable atoms)
+ {
+ if (atoms != null)
{
- if (atoms != null)
- table.Add(atoms);
-
+ SkipEvent = true;
+ dataGridView.SuspendLayout();
+ foreach (var a in atoms)
+ table.Add(a);
+ dataGridView.ResumeLayout();
+ SkipEvent = false;
ItemsChanged?.Invoke(this, new EventArgs());
+ bindingSource_PositionChanged(new object(), new EventArgs());
}
+ }
- ///
- /// データベースに原子を追加する
- ///
- ///
- public void AddRange(IEnumerable atoms)
- {
- if (atoms != null)
- {
- SkipEvent = true;
- dataGridView.SuspendLayout();
- foreach (var a in atoms)
- table.Add(a);
- dataGridView.ResumeLayout();
- SkipEvent = false;
- ItemsChanged?.Invoke(this, new EventArgs());
- bindingSource_PositionChanged(new object(), new EventArgs());
- }
- }
-
- ///
- /// i番目の原子を削除
- ///
- ///
- public void Delete(int i)
- {
- table.Remove(i);
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ ///
+ /// i番目の原子を削除
+ ///
+ ///
+ public void Delete(int i)
+ {
+ table.Remove(i);
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// 引数の原子をi番目と入れ替え
- ///
- ///
- ///
- public void Replace(Atoms atoms, int i)
- {
- table.Replace(atoms, i);
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ ///
+ /// 引数の原子をi番目と入れ替え
+ ///
+ ///
+ ///
+ public void Replace(Atoms atoms, int i)
+ {
+ table.Replace(atoms, i);
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// データベースの原子を削除する
- ///
- ///
- public void Clear()
- {
- table.Rows.Clear();
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ ///
+ /// データベースの原子を削除する
+ ///
+ ///
+ public void Clear()
+ {
+ table.Rows.Clear();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// 指定した空間群番号に従って全ての原子の情報を再設定する。
- ///
- public void ResetSymmetry(int symmetrySeriesNumber)
+ ///
+ /// 指定した空間群番号に従って全ての原子の情報を再設定する。
+ ///
+ public void ResetSymmetry(int symmetrySeriesNumber)
+ {
+ //SymmetrySeriesNumber = symmetrySeriesNumber;
+ for (int i = 0; i < table.Rows.Count; i++)
{
- //SymmetrySeriesNumber = symmetrySeriesNumber;
- for (int i = 0; i < table.Rows.Count; i++)
- {
- var a = table.Get(i);
- a.ResetSymmetry(SymmetrySeriesNumber);
- table.Replace(a, i);
- }
- ItemsChanged?.Invoke(this, new EventArgs());
+ var a = table.Get(i);
+ a.ResetSymmetry(SymmetrySeriesNumber);
+ table.Replace(a, i);
}
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// データベース中の全ての原子を取得
- ///
- ///
- public Atoms[] GetAll() => table.GetAll();
-
+ ///
+ /// データベース中の全ての原子を取得
+ ///
+ ///
+ public Atoms[] GetAll() => table.GetAll();
- #endregion
+ #endregion
- #region Atomクラスを画面下部から生成/に表示
- ///
- /// 引数のAtomを、画面下部に表示する
- ///
- ///
- public void SetToInterface(Atoms atoms)
- {
- Label = atoms.Label; AtomNo = atoms.AtomicNumber;
- AtomSubNoXray = atoms.SubNumberXray;
- AtomSubNoElectron = atoms.SubNumberElectron;
- IsotopicComposition = atoms.Isotope;
+ #region Atomクラスを画面下部から生成/に表示
+ ///
+ /// 引数のAtomを、画面下部に表示する
+ ///
+ ///
+ public void SetToInterface(Atoms atoms)
+ {
+ Label = atoms.Label; AtomNo = atoms.AtomicNumber;
- #region 原子位置、占有率
- X = atoms.X; XErr = atoms.X_err;
- Y = atoms.Y; YErr = atoms.Y_err;
- Z = atoms.Z; ZErr = atoms.Z_err;
- Occ = atoms.Occ; OccErr = atoms.Occ_err;
- #endregion
+ AtomSubNoXray = atoms.SubNumberXray;
+ AtomSubNoElectron = atoms.SubNumberElectron;
+ IsotopicComposition = atoms.Isotope;
+ #region 原子位置、占有率
+ X = atoms.X; XErr = atoms.X_err;
+ Y = atoms.Y; YErr = atoms.Y_err;
+ Z = atoms.Z; ZErr = atoms.Z_err;
+ Occ = atoms.Occ; OccErr = atoms.Occ_err;
+ #endregion
- #region 温度因子関係
- UseIsotropy = atoms.Dsf.UseIso;
- UseTypeU = atoms.Dsf.OriginalType == DiffuseScatteringFactor.Type.U;
+ #region 温度因子関係
+ UseIsotropy = atoms.Dsf.UseIso;
+ UseTypeU = atoms.Dsf.OriginalType == DiffuseScatteringFactor.Type.U;
- Iso = UseTypeU ? atoms.Dsf.Uiso * 100 : atoms.Dsf.Biso * 100;
- Aniso11 = UseTypeU ? atoms.Dsf.U11 * 100 : atoms.Dsf.B11;
- Aniso12 = UseTypeU ? atoms.Dsf.U12 * 100 : atoms.Dsf.B12;
- Aniso13 = UseTypeU ? atoms.Dsf.U31 * 100 : atoms.Dsf.B31;
- Aniso22 = UseTypeU ? atoms.Dsf.U22 * 100 : atoms.Dsf.B22;
- Aniso23 = UseTypeU ? atoms.Dsf.U23 * 100 : atoms.Dsf.B23;
- Aniso33 = UseTypeU ? atoms.Dsf.U31 * 100 : atoms.Dsf.B31;
+ Iso = UseTypeU ? atoms.Dsf.Uiso * 100 : atoms.Dsf.Biso * 100;
+ Aniso11 = UseTypeU ? atoms.Dsf.U11 * 100 : atoms.Dsf.B11;
+ Aniso12 = UseTypeU ? atoms.Dsf.U12 * 100 : atoms.Dsf.B12;
+ Aniso13 = UseTypeU ? atoms.Dsf.U31 * 100 : atoms.Dsf.B31;
+ Aniso22 = UseTypeU ? atoms.Dsf.U22 * 100 : atoms.Dsf.B22;
+ Aniso23 = UseTypeU ? atoms.Dsf.U23 * 100 : atoms.Dsf.B23;
+ Aniso33 = UseTypeU ? atoms.Dsf.U33 * 100 : atoms.Dsf.B33;
- IsoErr = UseTypeU ? atoms.Dsf.Uiso_err * 100 : atoms.Dsf.Biso_err * 100;
- Aniso11Err = UseTypeU ? atoms.Dsf.U11_err * 100 : atoms.Dsf.B11_err;
- Aniso12Err = UseTypeU ? atoms.Dsf.U12_err * 100 : atoms.Dsf.B12_err;
- Aniso13Err = UseTypeU ? atoms.Dsf.U31_err * 100 : atoms.Dsf.B31_err;
- Aniso22Err = UseTypeU ? atoms.Dsf.U22_err * 100 : atoms.Dsf.B22_err;
- Aniso23Err = UseTypeU ? atoms.Dsf.U23_err * 100 : atoms.Dsf.B23_err;
- Aniso33Err = UseTypeU ? atoms.Dsf.U31_err * 100 : atoms.Dsf.B31_err;
+ IsoErr = UseTypeU ? atoms.Dsf.Uiso_err * 100 : atoms.Dsf.Biso_err * 100;
+ Aniso11Err = UseTypeU ? atoms.Dsf.U11_err * 100 : atoms.Dsf.B11_err;
+ Aniso12Err = UseTypeU ? atoms.Dsf.U12_err * 100 : atoms.Dsf.B12_err;
+ Aniso13Err = UseTypeU ? atoms.Dsf.U31_err * 100 : atoms.Dsf.B31_err;
+ Aniso22Err = UseTypeU ? atoms.Dsf.U22_err * 100 : atoms.Dsf.B22_err;
+ Aniso23Err = UseTypeU ? atoms.Dsf.U23_err * 100 : atoms.Dsf.B23_err;
+ Aniso33Err = UseTypeU ? atoms.Dsf.U33_err * 100 : atoms.Dsf.B33_err;
- #endregion
+ #endregion
- #region Appearance関連
+ #region Appearance関連
- Ambient = atoms.Ambient;
- Diffusion = atoms.Diffusion;
- Emission = atoms.Emission;
- Shininess = atoms.Shininess;
- Specular = atoms.Specular;
+ Ambient = atoms.Ambient;
+ Diffusion = atoms.Diffusion;
+ Emission = atoms.Emission;
+ Shininess = atoms.Shininess;
+ Specular = atoms.Specular;
- Radius = atoms.Radius;
- AtomColor = Color.FromArgb(atoms.Argb);
- Alpha = Color.FromArgb(atoms.Argb).A / 255f;
+ Radius = atoms.Radius;
+ AtomColor = Color.FromArgb(atoms.Argb);
+ Alpha = Color.FromArgb(atoms.Argb).A / 255f;
- ShowLabel = atoms.ShowLabel;
+ ShowLabel = atoms.ShowLabel;
- #endregion
- }
+ #endregion
+ }
- ///
- /// 画面下部の情報から、Atomを生成する
- ///
- ///
- private Atoms GetFromInterface()
- {
+ ///
+ /// 画面下部の情報から、Atomを生成する
+ ///
+ ///
+ private Atoms GetFromInterface()
+ {
- var aniso = UseTypeU ?
- new[] { Aniso11 / 100, Aniso22 / 100, Aniso33 / 100, Aniso12 / 100, Aniso23 / 100, Aniso13 / 100 } :
- new[] { Aniso11, Aniso22, Aniso33, Aniso12, Aniso23, Aniso13 };
+ var aniso = UseTypeU ?
+ new[] { Aniso11 / 100, Aniso22 / 100, Aniso33 / 100, Aniso12 / 100, Aniso23 / 100, Aniso13 / 100 } :
+ new[] { Aniso11, Aniso22, Aniso33, Aniso12, Aniso23, Aniso13 };
- var anisoErr = UseTypeU ?
- new[] { Aniso11Err / 100, Aniso22Err / 100, Aniso33Err / 100, Aniso12Err / 100, Aniso23Err / 100, Aniso13Err / 100 } :
- new[] { Aniso11Err, Aniso22Err, Aniso33Err, Aniso12Err, Aniso23Err, Aniso13Err };
+ var anisoErr = UseTypeU ?
+ new[] { Aniso11Err / 100, Aniso22Err / 100, Aniso33Err / 100, Aniso12Err / 100, Aniso23Err / 100, Aniso13Err / 100 } :
+ new[] { Aniso11Err, Aniso22Err, Aniso33Err, Aniso12Err, Aniso23Err, Aniso13Err };
- var dsf = new DiffuseScatteringFactor(UseTypeU ? DiffuseScatteringFactor.Type.U : DiffuseScatteringFactor.Type.B,
- UseIsotropy, Iso / 100, IsoErr / 100, aniso, anisoErr, Crystal.CellValue);
+ var dsf = new DiffuseScatteringFactor(UseTypeU ? DiffuseScatteringFactor.Type.U : DiffuseScatteringFactor.Type.B,
+ UseIsotropy, Iso / 100, IsoErr / 100, aniso, anisoErr, Crystal.CellValue);
- var material = new Material(AtomColor.ToArgb(), (Ambient, Diffusion, Specular, Shininess, Emission), Alpha);
+ var material = new Material(AtomColor.ToArgb(), (Ambient, Diffusion, Specular, Shininess, Emission), Alpha);
- var atoms = new Atoms(Label, AtomNo, AtomSubNoXray, AtomSubNoElectron, IsotopicComposition,
- SymmetrySeriesNumber, new Vector3D(X, Y, Z), new Vector3D(XErr, YErr, ZErr), Occ, OccErr, dsf,
- material, (float)Radius, true, ShowLabel);
- return atoms;
- }
- #endregion
+ var atoms = new Atoms(Label, AtomNo, AtomSubNoXray, AtomSubNoElectron, IsotopicComposition,
+ SymmetrySeriesNumber, new Vector3D(X, Y, Z), new Vector3D(XErr, YErr, ZErr), Occ, OccErr, dsf,
+ material, (float)Radius, true, ShowLabel);
+ return atoms;
+ }
+ #endregion
- #region 原子追加、削除などのボタン
- //原子追加ボタン
- private void buttonAdd_Click(object sender, System.EventArgs e)
+ #region 原子追加、削除などのボタン
+ //原子追加ボタン
+ private void buttonAdd_Click(object sender, System.EventArgs e)
+ {
+ var atoms = GetFromInterface();
+ if (atoms != null)
{
- var atoms = GetFromInterface();
- if (atoms != null)
- {
- Add(atoms);
- bindingSource.Position = bindingSource.Count - 1;
- }
+ Add(atoms);
+ bindingSource.Position = bindingSource.Count - 1;
}
+ }
- //原子変更ボタン
- private void buttonChange_Click(object sender, System.EventArgs e)
+ //原子変更ボタン
+ private void buttonChange_Click(object sender, System.EventArgs e)
+ {
+ var pos = bindingSource.Position;
+ if (pos >= 0)
{
- var pos = bindingSource.Position;
- if (pos >= 0)
- {
- Replace(GetFromInterface(), pos);
- bindingSource.Position = pos;
- }
+ Replace(GetFromInterface(), pos);
+ bindingSource.Position = pos;
}
+ }
- //編集内容を同種の元素にすべて適用する
- private void buttonChangeToSameElement_Click(object sender, EventArgs e)
+ //編集内容を同種の元素にすべて適用する
+ private void buttonChangeToSameElement_Click(object sender, EventArgs e)
+ {
+ var pos = bindingSource.Position;
+ if (pos >= 0)
{
- var pos = bindingSource.Position;
- if (pos >= 0)
- {
- var atoms = GetFromInterface();
- Replace(atoms, pos);
+ var atoms = GetFromInterface();
+ Replace(atoms, pos);
- if (tabControl.SelectedTab == tabPageAppearance)
- CopyAppearance(atoms, pos);
- else if (tabControl.SelectedTab == tabPageDebyeWaller)
- CopyDebyeWaller(atoms, pos, true);
+ if (tabControl.SelectedTab == tabPageAppearance)
+ CopyAppearance(atoms, pos);
+ else if (tabControl.SelectedTab == tabPageDebyeWaller)
+ CopyDebyeWaller(atoms, pos, true);
- bindingSource.Position = pos;
- }
+ bindingSource.Position = pos;
}
+ }
- //編集内容を全ての原子に適用する
- private void buttonApplyToAllElements_Click(object sender, EventArgs e)
+ //編集内容を全ての原子に適用する
+ private void buttonApplyToAllElements_Click(object sender, EventArgs e)
+ {
+ var pos = bindingSource.Position;
+ if (pos >= 0)
{
- var pos = bindingSource.Position;
- if (pos >= 0)
- {
- var atoms = GetFromInterface();
- Replace(atoms, pos);
+ var atoms = GetFromInterface();
+ Replace(atoms, pos);
- if (tabControl.SelectedTab == tabPageDebyeWaller)
- CopyDebyeWaller(atoms, pos, false);
+ if (tabControl.SelectedTab == tabPageDebyeWaller)
+ CopyDebyeWaller(atoms, pos, false);
- bindingSource.Position = pos;
- }
+ bindingSource.Position = pos;
}
+ }
- ///
- /// 引数原子をi番目に設定し、そのAppearance (Material Property)をさらに引数と同じ元素に対して適用
- ///
- ///
- public void CopyAppearance(Atoms atoms, int i)
+ ///
+ /// 引数原子をi番目に設定し、そのAppearance (Material Property)をさらに引数と同じ元素に対して適用
+ ///
+ ///
+ public void CopyAppearance(Atoms atoms, int i)
+ {
+ var others = dataSet.DataTableAtom.GetAll().Where(a => a.AtomicNumber == atoms.AtomicNumber);
+ foreach (var a in others)
{
- var others = dataSet.DataTableAtom.GetAll().Where(a => a.AtomicNumber == atoms.AtomicNumber);
- foreach (var a in others)
- {
- a.Texture = atoms.Texture;
- a.Radius = atoms.Radius;
- a.Argb = atoms.Argb;
- a.ShowLabel = atoms.ShowLabel;
- }
- ItemsChanged?.Invoke(this, new EventArgs());
+ a.Texture = atoms.Texture;
+ a.Radius = atoms.Radius;
+ a.Argb = atoms.Argb;
+ a.ShowLabel = atoms.ShowLabel;
}
- ///
- /// 引数原子をi番目に設定し、さらにそのDebyeWaller因子を 同じ元素 あるいは 全元素 に対して適用
- ///
- ///
- public void CopyDebyeWaller(Atoms atoms, int i, bool onlySameElements)
- {
- var others = onlySameElements ?
- dataSet.DataTableAtom.GetAll().Where(a => a.AtomicNumber == atoms.AtomicNumber) :
- dataSet.DataTableAtom.GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
+ ///
+ /// 引数原子をi番目に設定し、さらにそのDebyeWaller因子を 同じ元素 あるいは 全元素 に対して適用
+ ///
+ ///
+ public void CopyDebyeWaller(Atoms atoms, int i, bool onlySameElements)
+ {
+ var others = onlySameElements ?
+ dataSet.DataTableAtom.GetAll().Where(a => a.AtomicNumber == atoms.AtomicNumber) :
+ dataSet.DataTableAtom.GetAll();
- foreach (var a in others)
- a.Dsf = atoms.Dsf;
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ foreach (var a in others)
+ a.Dsf = atoms.Dsf;
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- //原子削除ボタン
- private void buttonDelete_Click(object sender, System.EventArgs e)
- {
- int pos = bindingSource.Position;
- if (pos >= 0)
- {
- SkipEvent = true;//bindingSourceAtoms_PositionChangedが呼ばれるのを防ぐ
- Delete(pos);
- SkipEvent = false;
- bindingSource.Position = bindingSource.Count > pos ? pos : pos - 1;//選択列を選択しなおす
- }
- }
- private void buttonUp_Click(object sender, EventArgs e)
+ //原子削除ボタン
+ private void buttonDelete_Click(object sender, System.EventArgs e)
+ {
+ int pos = bindingSource.Position;
+ if (pos >= 0)
{
- int n = bindingSource.Position;
- if (n <= 0) return;
- table.MoveItem(n, n - 1);
- bindingSource.Position = n - 1;
+ SkipEvent = true;//bindingSourceAtoms_PositionChangedが呼ばれるのを防ぐ
+ Delete(pos);
+ SkipEvent = false;
+ bindingSource.Position = bindingSource.Count > pos ? pos : pos - 1;//選択列を選択しなおす
}
+ }
+ private void buttonUp_Click(object sender, EventArgs e)
+ {
+ int n = bindingSource.Position;
+ if (n <= 0) return;
+ table.MoveItem(n, n - 1);
+ bindingSource.Position = n - 1;
+ }
- private void buttonDown_Click(object sender, EventArgs e)
- {
- int n = bindingSource.Position;
- if (n >= bindingSource.Count - 1) return;
- table.MoveItem(n, n + 1);
- bindingSource.Position = n + 1;
- }
+ private void buttonDown_Click(object sender, EventArgs e)
+ {
+ int n = bindingSource.Position;
+ if (n >= bindingSource.Count - 1) return;
+ table.MoveItem(n, n + 1);
+ bindingSource.Position = n + 1;
+ }
- #endregion
+ #endregion
- //選択Atomが変更されたとき
- private void bindingSource_PositionChanged(object sender, System.EventArgs e)
- {
- if (SkipEvent) return;
+ //選択Atomが変更されたとき
+ private void bindingSource_PositionChanged(object sender, System.EventArgs e)
+ {
+ if (SkipEvent) return;
- if (bindingSource.Position >= 0 && bindingSource.Count > 0)
- SetToInterface(dataSet.DataTableAtom.Get(bindingSource.Position));
- }
+ if (bindingSource.Position >= 0 && bindingSource.Count > 0)
+ SetToInterface(dataSet.DataTableAtom.Get(bindingSource.Position));
+ }
- private void listBoxAtoms_MouseUp(object sender, MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Left)
+ private void listBoxAtoms_MouseUp(object sender, MouseEventArgs e)
+ {
+ if (e.Button == MouseButtons.Left)
+ {
+ /*Atoms atoms;
+ if (listBoxAtoms.SelectedIndex >= 0)
+ atoms = (Atoms)listBoxAtoms.SelectedItem;
+ else
+ return;
+ string str = "No.\tx\t y\t z\r\n";
+ for (int i = 0; i < atoms.Atom.Count; i++)
+ str += (i + 1).ToString() + "\t" + Atoms.GetStringFromDouble(atoms.Atom[i].X) + "\t " + Atoms.GetStringFromDouble(atoms.Atom[i].Y) + "\t " + Atoms.GetStringFromDouble(atoms.Atom[i].Z) + "\r\n";
+
+ this.toolTip.SetToolTip(this.listBoxAtoms, str); ;
+ */
+ /*str = "";
+ for (int j = 0; j < listBoxAtoms.Items.Count; j++)
{
- /*Atoms atoms;
- if (listBoxAtoms.SelectedIndex >= 0)
- atoms = (Atoms)listBoxAtoms.SelectedItem;
- else
- return;
- string str = "No.\tx\t y\t z\r\n";
+ atoms = (Atoms)listBoxAtoms.Items[j];
for (int i = 0; i < atoms.Atom.Count; i++)
- str += (i + 1).ToString() + "\t" + Atoms.GetStringFromDouble(atoms.Atom[i].X) + "\t " + Atoms.GetStringFromDouble(atoms.Atom[i].Y) + "\t " + Atoms.GetStringFromDouble(atoms.Atom[i].Z) + "\r\n";
-
- this.toolTip.SetToolTip(this.listBoxAtoms, str); ;
- */
- /*str = "";
- for (int j = 0; j < listBoxAtoms.Items.Count; j++)
{
- atoms = (Atoms)listBoxAtoms.Items[j];
- for (int i = 0; i < atoms.Atom.Count; i++)
- {
- string element = atoms.ElementName.Substring(atoms.ElementName.IndexOf(' ')+1); ;
- str += element + "," + Atoms.GetStringFromDouble(atoms.Atom[i].X) + "," + Atoms.GetStringFromDouble(atoms.Atom[i].Y) + "," + Atoms.GetStringFromDouble(atoms.Atom[i].Z) + "\r\n";
- }
+ string element = atoms.ElementName.Substring(atoms.ElementName.IndexOf(' ')+1); ;
+ str += element + "," + Atoms.GetStringFromDouble(atoms.Atom[i].X) + "," + Atoms.GetStringFromDouble(atoms.Atom[i].Y) + "," + Atoms.GetStringFromDouble(atoms.Atom[i].Z) + "\r\n";
}
- Clipboard.SetDataObject(str, false);*/
}
+ Clipboard.SetDataObject(str, false);*/
+ }
- /*
- else if (e.Button == MouseButtons.Right)
+ /*
+ else if (e.Button == MouseButtons.Right)
+ {
+ if (listBoxAtoms.SelectedIndex == listBoxAtoms.IndexFromPoint(new Point(e.X, e.Y)))
{
- if (listBoxAtoms.SelectedIndex == listBoxAtoms.IndexFromPoint(new Point(e.X, e.Y)))
+ formAtomDetailedInfo = new FormAtomDetailedInfo
{
- formAtomDetailedInfo = new FormAtomDetailedInfo
- {
- Atoms = (Atoms)listBoxAtoms.SelectedItem,
- Location = listBoxAtoms.PointToScreen(new Point(e.X, e.Y))
- };
+ Atoms = (Atoms)listBoxAtoms.SelectedItem,
+ Location = listBoxAtoms.PointToScreen(new Point(e.X, e.Y))
+ };
- formAtomDetailedInfo.ShowDialog();
- }
+ formAtomDetailedInfo.ShowDialog();
}
- */
- }
-
- private void listBoxAtoms_MouseLeave(object sender, EventArgs e)
- {
- // this.toolTip.SetToolTip(this.listBoxAtoms, "displya element, position, symmetry seeting for each atoms.");
}
+ */
+ }
+ private void listBoxAtoms_MouseLeave(object sender, EventArgs e)
+ {
+ // this.toolTip.SetToolTip(this.listBoxAtoms, "displya element, position, symmetry seeting for each atoms.");
+ }
+ private void buttonOriginShift_Click(object sender, EventArgs e)
+ {
+ var button = sender as Button;
+ var shift = button.Name.Contains("Custom") ?
+ new Vector3DBase(numericBoxOriginShiftX.Value, numericBoxOriginShiftY.Value, numericBoxOriginShiftZ.Value) :
+ new Vector3DBase((button.Tag as string).Split(" ", true).Select(s => s.ToDouble()).ToArray()) * (radioButtonOriginShiftPlus.Checked ? 1 : -1);
+
+ SkipEvent = true;
+ var atomArray = GetAll();
+ for (int i = 0; i < atomArray.Length; i++)
+ //foreach(var atoms in GetAll())
+ {
+ var atoms = atomArray[i];
+ atoms = Deep.Copy(atoms);
+ atoms.X += shift.X;
+ atoms.Y += shift.Y;
+ atoms.Z += shift.Y;
+ atoms.ResetSymmetry(SymmetrySeriesNumber);
+ table.Replace(atoms, i);
+ }
+ SkipEvent = false;
+ bindingSource_PositionChanged(sender, e);
+ ItemsChanged?.Invoke(this, e);
- private void buttonOriginShift_Click(object sender, EventArgs e)
- {
- var button = sender as Button;
- var shift = button.Name.Contains("Custom") ?
- new Vector3DBase(numericBoxOriginShiftX.Value, numericBoxOriginShiftY.Value, numericBoxOriginShiftZ.Value) :
- new Vector3DBase((button.Tag as string).Split(" ", true).Select(s => s.ToDouble()).ToArray()) * (radioButtonOriginShiftPlus.Checked ? 1 : -1);
-
- SkipEvent = true;
- var atomArray = GetAll();
- for (int i = 0; i < atomArray.Length; i++)
- //foreach(var atoms in GetAll())
- {
- var atoms = atomArray[i];
- atoms = Deep.Copy(atoms);
- atoms.X += shift.X;
- atoms.Y += shift.Y;
- atoms.Z += shift.Y;
- atoms.ResetSymmetry(SymmetrySeriesNumber);
- table.Replace(atoms, i);
- }
- SkipEvent = false;
- bindingSource_PositionChanged(sender, e);
-
- ItemsChanged?.Invoke(this, e);
-
- }
+ }
- private void tabControl_SelectedIndexChanged(object sender, EventArgs e)
- {
- buttonApplyToSameElement.Visible = tabControl.SelectedTab == tabPageAppearance || tabControl.SelectedTab == tabPageDebyeWaller;
- buttonApplyToAllElements.Visible = tabControl.SelectedTab == tabPageDebyeWaller;
- }
+ private void tabControl_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ buttonApplyToSameElement.Visible = tabControl.SelectedTab == tabPageAppearance || tabControl.SelectedTab == tabPageDebyeWaller;
+ buttonApplyToAllElements.Visible = tabControl.SelectedTab == tabPageDebyeWaller;
+ }
- private void dataGridViewAtom_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ private void dataGridViewAtom_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex >= 0 && e.ColumnIndex == 0)
{
- if (e.RowIndex >= 0 && e.ColumnIndex == 0)
- {
- Crystal.Atoms[e.RowIndex].GLEnabled = table.Get(e.RowIndex).GLEnabled
- = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- GLEnableChanged?.Invoke(this, new EventArgs());
- }
+ Crystal.Atoms[e.RowIndex].GLEnabled = table.Get(e.RowIndex).GLEnabled
+ = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ GLEnableChanged?.Invoke(this, new EventArgs());
}
+ }
- private void dataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e)
- {
- //チェックボックスが変わると即座に反映させる
- var x = dataGridView.CurrentCellAddress.X;
- if ((x == 0) && dataGridView.IsCurrentCellDirty)
- dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);//コミットする
- }
+ private void dataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e)
+ {
+ //チェックボックスが変わると即座に反映させる
+ var x = dataGridView.CurrentCellAddress.X;
+ if ((x == 0) && dataGridView.IsCurrentCellDirty)
+ dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);//コミットする
+ }
- }
}
\ No newline at end of file
diff --git a/Crystallography.Controls/Crystal/AtomControl.resx b/Crystallography.Controls/Crystal/AtomControl.resx
index f9495c1..c3db423 100644
--- a/Crystallography.Controls/Crystal/AtomControl.resx
+++ b/Crystallography.Controls/Crystal/AtomControl.resx
@@ -175,6 +175,9 @@
0
+
+ Arial, 9.75pt
+
numericBoxBiso
@@ -217,6 +220,9 @@
1
+
+ Arial, 9.75pt
+
numericBoxBisoerr
@@ -898,6 +904,9 @@
85
+
+ Arial, 9.75pt
+
numericBox1
@@ -970,6 +979,9 @@
91
+
+ Arial, 9.75pt
+
numericBox2
@@ -1093,6 +1105,9 @@
93
+
+ Arial, 9.75pt
+
numericBox3
@@ -1165,6 +1180,9 @@
94
+
+ Arial, 9.75pt
+
numericBox4
@@ -1286,6 +1304,9 @@
0
+
+ Arial, 9.75pt
+
numericBoxOccerr
@@ -1331,6 +1352,9 @@
8
+
+ Arial, 9.75pt
+
Site occupancy
@@ -1382,6 +1406,9 @@
4
+
+ Arial, 9.75pt
+
Fractional coordinates of c-axis. Fractional format (e.g. 3/4) is acceptable.
@@ -1421,6 +1448,9 @@
9
+
+ Arial, 9.75pt
+
numericBoxYerr
@@ -1457,6 +1487,9 @@
10
+
+ Arial, 9.75pt
+
numericBoxXerr
@@ -1502,6 +1535,9 @@
3
+
+ Arial, 9.75pt
+
Fractional coordinates of b-axis. Fractional format (e.g. 3/4) is acceptable.
@@ -1550,6 +1586,9 @@
2
+
+ Arial, 9.75pt
+
Fractional coordinates of a-axis. Fractional format (e.g. 3/4) is acceptable.
@@ -1589,6 +1628,9 @@
11
+
+ Arial, 9.75pt
+
numericBoxZerr
@@ -2240,6 +2282,9 @@
3
+
+ Segoe UI Symbol, 9pt
+
numericBoxOriginShiftZ
@@ -2285,6 +2330,9 @@
2
+
+ Segoe UI Symbol, 9pt
+
numericBoxOriginShiftY
@@ -2330,6 +2378,9 @@
1
+
+ Segoe UI Symbol, 9pt
+
numericBoxOriginShiftX
@@ -2746,6 +2797,9 @@ B = 8 pi^2 * U.
0
+
+ Arial, 9.75pt
+
numericBoxB22
@@ -2788,6 +2842,9 @@ B = 8 pi^2 * U.
1
+
+ Arial, 9.75pt
+
numericBoxB22err
@@ -2830,6 +2887,9 @@ B = 8 pi^2 * U.
2
+
+ Arial, 9.75pt
+
numericBoxB23
@@ -2872,6 +2932,9 @@ B = 8 pi^2 * U.
3
+
+ Arial, 9.75pt
+
numericBoxB23err
@@ -2914,6 +2977,9 @@ B = 8 pi^2 * U.
4
+
+ Arial, 9.75pt
+
numericBoxB33
@@ -2956,6 +3022,9 @@ B = 8 pi^2 * U.
5
+
+ Arial, 9.75pt
+
numericBoxB33err
@@ -3025,6 +3094,9 @@ B = 8 pi^2 * U.
0
+
+ Arial, 9.75pt
+
numericBoxB11
@@ -3067,6 +3139,9 @@ B = 8 pi^2 * U.
1
+
+ Arial, 9.75pt
+
numericBoxB11err
@@ -3109,6 +3184,9 @@ B = 8 pi^2 * U.
2
+
+ Arial, 9.75pt
+
numericBoxB12
@@ -3151,6 +3229,9 @@ B = 8 pi^2 * U.
3
+
+ Arial, 9.75pt
+
numericBoxB12err
@@ -3193,6 +3274,9 @@ B = 8 pi^2 * U.
4
+
+ Arial, 9.75pt
+
numericBoxB13
@@ -3235,6 +3319,9 @@ B = 8 pi^2 * U.
5
+
+ Arial, 9.75pt
+
numericBoxB13err
@@ -3664,6 +3751,9 @@ B = 8 pi^2 * U.
7
+
+ Segoe UI Symbol, 9pt
+
numericBoxAlpha
@@ -3709,6 +3799,9 @@ B = 8 pi^2 * U.
6
+
+ Segoe UI Symbol, 9pt
+
numericBoxEmission
@@ -3754,6 +3847,9 @@ B = 8 pi^2 * U.
5
+
+ Segoe UI Symbol, 9pt
+
numericBoxShininess
@@ -3799,6 +3895,9 @@ B = 8 pi^2 * U.
4
+
+ Segoe UI Symbol, 9pt
+
numericBoxSpecular
@@ -3844,6 +3943,9 @@ B = 8 pi^2 * U.
3
+
+ Segoe UI Symbol, 9pt
+
numericBoxDiffusion
@@ -3889,6 +3991,9 @@ B = 8 pi^2 * U.
2
+
+ Segoe UI Symbol, 9pt
+
numericBoxAmbient
@@ -4168,6 +4273,9 @@ B = 8 pi^2 * U.
0
+
+ Segoe UI Symbol, 9pt
+
Radius of the sphere to be drawn
diff --git a/Crystallography.Controls/Crystal/AtomCoordinateTable.cs b/Crystallography.Controls/Crystal/AtomCoordinateTable.cs
index 5b2aba7..beefe48 100644
--- a/Crystallography.Controls/Crystal/AtomCoordinateTable.cs
+++ b/Crystallography.Controls/Crystal/AtomCoordinateTable.cs
@@ -138,7 +138,7 @@ private void RefreshTable()
private Graphics g;
private Point OriginPos = new(30, 30);
private double UpperX, LowerX, UpperY, LowerY;
- private Profile profile = new();
+ private readonly Profile profile = new();
private double BottomMargin = 0;
private void DrawGraph(List<(string Label, double Distance)> atoms)
diff --git a/Crystallography.Controls/Crystal/BondControl.cs b/Crystallography.Controls/Crystal/BondControl.cs
index 5deb519..04d41a2 100644
--- a/Crystallography.Controls/Crystal/BondControl.cs
+++ b/Crystallography.Controls/Crystal/BondControl.cs
@@ -7,273 +7,272 @@
using System.Reflection;
using System.Windows.Forms;
-namespace Crystallography.Controls
+namespace Crystallography.Controls;
+
+public partial class BondInputControl : UserControl
{
- public partial class BondInputControl : UserControl
- {
- #region プロパティ, フィールド、イベントハンドラ
+ #region プロパティ, フィールド、イベントハンドラ
- public Crystal Crystal
+ public Crystal Crystal
+ {
+ get => crystal; set
{
- get => crystal; set
- {
- crystal = value;
+ crystal = value;
- if (crystal != null)
+ if (crystal != null)
+ {
+ ElementList = crystal.Atoms.Select(a => a.ElementName).Distinct().ToArray();
+ if (ElementList != null && ElementList.Length != 0)
{
- ElementList = crystal.Atoms.Select(a => a.ElementName).Distinct().ToArray();
- if (ElementList != null && ElementList.Length != 0)
- {
- comboBoxBondingAtom1.Items.Clear();
- comboBoxBondingAtom1.Items.AddRange(ElementList);
- comboBoxBondingAtom2.Items.Clear();
- comboBoxBondingAtom2.Items.AddRange(ElementList);
- }
- table.Clear();
- AddRange(crystal.Bonds);
-
+ comboBoxBondingAtom1.Items.Clear();
+ comboBoxBondingAtom1.Items.AddRange(ElementList);
+ comboBoxBondingAtom2.Items.Clear();
+ comboBoxBondingAtom2.Items.AddRange(ElementList);
}
+ table.Clear();
+ AddRange(crystal.Bonds);
+
}
}
- private Crystal crystal = null;
+ }
+ private Crystal crystal = null;
- public string[] ElementList { get; set; } = null;
- public bool SkipEvent { get; set; } = false;
+ public string[] ElementList { get; set; } = null;
+ public bool SkipEvent { get; set; } = false;
- private readonly DataSet.DataTableBondDataTable table;
+ private readonly DataSet.DataTableBondDataTable table;
- public event EventHandler ItemsChanged;
- #endregion,
+ public event EventHandler ItemsChanged;
+ #endregion,
- public BondInputControl()
- {
- InitializeComponent();
- table = dataSet.DataTableBond;
- typeof(DataGridView).GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(dataGridView, true, null);
+ public BondInputControl()
+ {
+ InitializeComponent();
+ table = dataSet.DataTableBond;
+ typeof(DataGridView).GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(dataGridView, true, null);
- }
+ }
- #region Bondsクラスを画面下部 から生成 / にセット. 表示の単位は Å だが、中身は nm 単位.
- public Bonds GetFromInterface()
- {
- if (ElementList.Length < 1 || comboBoxBondingAtom1.Text.Length == 0 || comboBoxBondingAtom2.Text.Length == 0)
- return null;
- else
- return new Bonds(
- true, ElementList, comboBoxBondingAtom1.Text, comboBoxBondingAtom2.Text,
- numericBoxBondMinLength.Value / 10.0, numericBoxBondMaxLength.Value / 10.0,
- checkBoxShowBonds.Checked, numericBoxBondRadius.Value / 10.0, numericBoxBondAlpha.Value,
- checkBoxShowPolyhedron.Checked, checkBoxShowCenterAtom.Checked, checkBoxShowVertexAtoms.Checked,
- checkBoxShowInnerBonds.Checked, numericBoxPolyhedronAlpha.Value,
- checkBoxShowEdges.Checked, numericBoxEdgeWidth.Value);
- }
+ #region Bondsクラスを画面下部 から生成 / にセット. 表示の単位は Å だが、中身は nm 単位.
+ public Bonds GetFromInterface()
+ {
+ if (ElementList.Length < 1 || comboBoxBondingAtom1.Text.Length == 0 || comboBoxBondingAtom2.Text.Length == 0)
+ return null;
+ else
+ return new Bonds(
+ true, ElementList, comboBoxBondingAtom1.Text, comboBoxBondingAtom2.Text,
+ numericBoxBondMinLength.Value / 10.0, numericBoxBondMaxLength.Value / 10.0,
+ checkBoxShowBonds.Checked, numericBoxBondRadius.Value / 10.0, numericBoxBondAlpha.Value,
+ checkBoxShowPolyhedron.Checked, checkBoxShowCenterAtom.Checked, checkBoxShowVertexAtoms.Checked,
+ checkBoxShowInnerBonds.Checked, numericBoxPolyhedronAlpha.Value,
+ checkBoxShowEdges.Checked, numericBoxEdgeWidth.Value);
+ }
- public void SetToInterface(Bonds b)
- {
- //ElementList = b.ElementList;
- checkBoxShowBonds.Checked = b.ShowBond;
- comboBoxBondingAtom1.Text = b.Element1;
- comboBoxBondingAtom2.Text = b.Element2;
- numericBoxBondMinLength.Value = b.MinLength * 10;
- numericBoxBondMaxLength.Value = b.MaxLength * 10;
- numericBoxBondRadius.Value = b.Radius * 10;
- numericBoxBondAlpha.Value = b.BondTransParency;
- colorControlBond.Color = Color.FromArgb(b.ArgbBond);
- numericBoxPolyhedronAlpha.Value = b.PolyhedronTransParency;
-
- checkBoxShowPolyhedron.Checked = b.ShowPolyhedron;
- checkBoxShowCenterAtom.Checked = b.ShowCenterAtom;
- checkBoxShowVertexAtoms.Checked = b.ShowVertexAtom;
- checkBoxShowInnerBonds.Checked = b.ShowInnerBonds;
- colorControlPlyhedron.Color = Color.FromArgb(b.ArgbPolyhedron);
-
- checkBoxShowEdges.Checked = b.ShowEdges;
- numericBoxEdgeWidth.Value = b.EdgeLineWidth;
- colorControlEdges.Color = Color.FromArgb(b.ArgbEdge);
- }
- #endregion
+ public void SetToInterface(Bonds b)
+ {
+ //ElementList = b.ElementList;
+ checkBoxShowBonds.Checked = b.ShowBond;
+ comboBoxBondingAtom1.Text = b.Element1;
+ comboBoxBondingAtom2.Text = b.Element2;
+ numericBoxBondMinLength.Value = b.MinLength * 10;
+ numericBoxBondMaxLength.Value = b.MaxLength * 10;
+ numericBoxBondRadius.Value = b.Radius * 10;
+ numericBoxBondAlpha.Value = b.BondTransParency;
+ colorControlBond.Color = Color.FromArgb(b.ArgbBond);
+ numericBoxPolyhedronAlpha.Value = b.PolyhedronTransParency;
+
+ checkBoxShowPolyhedron.Checked = b.ShowPolyhedron;
+ checkBoxShowCenterAtom.Checked = b.ShowCenterAtom;
+ checkBoxShowVertexAtoms.Checked = b.ShowVertexAtom;
+ checkBoxShowInnerBonds.Checked = b.ShowInnerBonds;
+ colorControlPlyhedron.Color = Color.FromArgb(b.ArgbPolyhedron);
+
+ checkBoxShowEdges.Checked = b.ShowEdges;
+ numericBoxEdgeWidth.Value = b.EdgeLineWidth;
+ colorControlEdges.Color = Color.FromArgb(b.ArgbEdge);
+ }
+ #endregion
- #region チェックボックスイベント
+ #region チェックボックスイベント
- private void checkBoxShowPolyhedron_CheckedChanged(object sender, EventArgs e) => groupBoxPolyhedron.Enabled = checkBoxShowPolyhedron.Checked;
- private void checkBoxShowEdges_CheckedChanged(object sender, EventArgs e) => groupBoxEdge.Enabled = checkBoxShowEdges.Checked;
+ private void checkBoxShowPolyhedron_CheckedChanged(object sender, EventArgs e) => groupBoxPolyhedron.Enabled = checkBoxShowPolyhedron.Checked;
+ private void checkBoxShowEdges_CheckedChanged(object sender, EventArgs e) => groupBoxEdge.Enabled = checkBoxShowEdges.Checked;
- private void checkBoxShowBonds_CheckedChanged(object sender, EventArgs e) => groupBoxBonds.Enabled = checkBoxShowBonds.Checked;
- #endregion
+ private void checkBoxShowBonds_CheckedChanged(object sender, EventArgs e) => groupBoxBonds.Enabled = checkBoxShowBonds.Checked;
+ #endregion
- #region データベース操作
- ///
- /// データベースにbondsを追加する
- ///
- ///
- public void Add(Bonds bonds)
- {
- if (bonds != null)
- table.Add(bonds);
+ #region データベース操作
+ ///
+ /// データベースにbondsを追加する
+ ///
+ ///
+ public void Add(Bonds bonds)
+ {
+ if (bonds != null)
+ table.Add(bonds);
- crystal.Bonds = GetAll();
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ crystal.Bonds = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// データベースに原子を追加する
- ///
- ///
- public void AddRange(IEnumerable bonds)
+ ///
+ /// データベースに原子を追加する
+ ///
+ ///
+ public void AddRange(IEnumerable bonds)
+ {
+ if (bonds != null)
{
- if (bonds != null)
- {
- SkipEvent = true;
- foreach (var b in bonds)
- table.Add(b);
-
- crystal.Bonds = GetAll();
- SkipEvent = false;
- ItemsChanged?.Invoke(this, new EventArgs());
- bindingSource_PositionChanged(new object(), new EventArgs());
- }
- }
+ SkipEvent = true;
+ foreach (var b in bonds)
+ table.Add(b);
- ///
- /// データベースのi番目の原子を削除
- ///
- ///
- public void Delete(int i)
- {
- table.Remove(i);
crystal.Bonds = GetAll();
+ SkipEvent = false;
ItemsChanged?.Invoke(this, new EventArgs());
-
+ bindingSource_PositionChanged(new object(), new EventArgs());
}
+ }
- ///
- /// データベースのi番目の原子を置換
- ///
- ///
- ///
- public void Replace(Bonds bonds, int i)
- {
- table.Replace(bonds, i);
- crystal.Bonds = GetAll();
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ ///
+ /// データベースのi番目の原子を削除
+ ///
+ ///
+ public void Delete(int i)
+ {
+ table.Remove(i);
+ crystal.Bonds = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
- ///
- /// データベースの原子を全て削除する
- ///
- public void Clear()
- {
- table.Clear();
- crystal.Bonds = GetAll();
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ }
+
+ ///
+ /// データベースのi番目の原子を置換
+ ///
+ ///
+ ///
+ public void Replace(Bonds bonds, int i)
+ {
+ table.Replace(bonds, i);
+ crystal.Bonds = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// データベース中の全ての原子を取得
- ///
- ///
- public Bonds[] GetAll() => table.GetAll();
+ ///
+ /// データベースの原子を全て削除する
+ ///
+ public void Clear()
+ {
+ table.Clear();
+ crystal.Bonds = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
+
+ ///
+ /// データベース中の全ての原子を取得
+ ///
+ ///
+ public Bonds[] GetAll() => table.GetAll();
- #endregion
+ #endregion
- #region 追加/削除/置換 ボタン
+ #region 追加/削除/置換 ボタン
- ///
- /// 追加ボタン
- ///
- ///
- ///
- private void buttonAdd_Click(object sender, System.EventArgs e)
+ ///
+ /// 追加ボタン
+ ///
+ ///
+ ///
+ private void buttonAdd_Click(object sender, System.EventArgs e)
+ {
+ var bond = GetFromInterface();
+ if (bond != null)
{
- var bond = GetFromInterface();
- if (bond != null)
- {
- Add(bond);
- bindingSource.Position = bindingSource.Count - 1;
- }
+ Add(bond);
+ bindingSource.Position = bindingSource.Count - 1;
}
+ }
- ///
- /// 変更ボタン
- ///
- ///
- ///
- private void buttonChange_Click(object sender, System.EventArgs e)
+ ///
+ /// 変更ボタン
+ ///
+ ///
+ ///
+ private void buttonChange_Click(object sender, System.EventArgs e)
+ {
+ var pos = bindingSource.Position;
+ if (pos >= 0)
{
- var pos = bindingSource.Position;
- if (pos >= 0)
- {
- Replace(GetFromInterface(), pos);
- bindingSource.Position = pos;
- }
+ Replace(GetFromInterface(), pos);
+ bindingSource.Position = pos;
}
+ }
- ///
- /// 削除ボタン
- ///
- ///
- ///
- private void buttonDelete_Click(object sender, System.EventArgs e)
+ ///
+ /// 削除ボタン
+ ///
+ ///
+ ///
+ private void buttonDelete_Click(object sender, System.EventArgs e)
+ {
+ int pos = bindingSource.Position;
+ if (pos >= 0)
{
- int pos = bindingSource.Position;
- if (pos >= 0)
- {
- SkipEvent = true;//bindingSourceAtoms_PositionChangedが呼ばれるのを防ぐ
- Delete(pos);
- SkipEvent = false;
- bindingSource.Position = bindingSource.Count > pos ? pos : pos - 1;//選択列を選択しなおす
- }
+ SkipEvent = true;//bindingSourceAtoms_PositionChangedが呼ばれるのを防ぐ
+ Delete(pos);
+ SkipEvent = false;
+ bindingSource.Position = bindingSource.Count > pos ? pos : pos - 1;//選択列を選択しなおす
}
+ }
- #endregion
+ #endregion
- #region bindingSourceイベント
+ #region bindingSourceイベント
- ///
- /// 選択行が変更されたとき
- ///
- ///
- ///
- private void bindingSource_PositionChanged(object sender, System.EventArgs e)
- {
- if (SkipEvent) return;
+ ///
+ /// 選択行が変更されたとき
+ ///
+ ///
+ ///
+ private void bindingSource_PositionChanged(object sender, System.EventArgs e)
+ {
+ if (SkipEvent) return;
- if (bindingSource.Position >= 0 && bindingSource.Count > 0)
- SetToInterface(dataSet.DataTableBond.Get(bindingSource.Position));
- }
- #endregion
+ if (bindingSource.Position >= 0 && bindingSource.Count > 0)
+ SetToInterface(dataSet.DataTableBond.Get(bindingSource.Position));
+ }
+ #endregion
- #region dataGridView イベント
+ #region dataGridView イベント
- private void dataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e)
- {//チェックボックスが変わると即座に反映させる
- var x = dataGridView.CurrentCellAddress.X;
- if ((x == 0 || x == 5 || x == 6) && dataGridView.IsCurrentCellDirty)
- dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);//コミットする
- }
- private void dataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ private void dataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e)
+ {//チェックボックスが変わると即座に反映させる
+ var x = dataGridView.CurrentCellAddress.X;
+ if ((x == 0 || x == 5 || x == 6) && dataGridView.IsCurrentCellDirty)
+ dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);//コミットする
+ }
+ private void dataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex >= 0)
{
- if (e.RowIndex >= 0)
- {
- if (e.ColumnIndex == 0)
- table.Get(bindingSource.Position).Enabled
- = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- else if (e.ColumnIndex == 5)
- table.Get(bindingSource.Position).ShowBond
- = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- else if (e.ColumnIndex == 6)
- table.Get(bindingSource.Position).ShowPolyhedron
- = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- ItemsChanged?.Invoke(this, new EventArgs());
- bindingSource_PositionChanged(sender, new EventArgs());
- }
+ if (e.ColumnIndex == 0)
+ table.Get(bindingSource.Position).Enabled
+ = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ else if (e.ColumnIndex == 5)
+ table.Get(bindingSource.Position).ShowBond
+ = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ else if (e.ColumnIndex == 6)
+ table.Get(bindingSource.Position).ShowPolyhedron
+ = (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ ItemsChanged?.Invoke(this, new EventArgs());
+ bindingSource_PositionChanged(sender, new EventArgs());
}
- #endregion
+ }
+ #endregion
- }
}
diff --git a/Crystallography.Controls/Crystal/CrystalControl.Designer.cs b/Crystallography.Controls/Crystal/CrystalControl.Designer.cs
index ba01e14..96d1e65 100644
--- a/Crystallography.Controls/Crystal/CrystalControl.Designer.cs
+++ b/Crystallography.Controls/Crystal/CrystalControl.Designer.cs
@@ -208,13 +208,13 @@ private void InitializeComponent()
//
// flowLayoutPanel4
//
+ resources.ApplyResources(this.flowLayoutPanel4, "flowLayoutPanel4");
this.flowLayoutPanel4.Controls.Add(this.numericBoxVolume);
this.flowLayoutPanel4.Controls.Add(this.numericBoxCellMass);
this.flowLayoutPanel4.Controls.Add(this.numericBoxMolarVolume);
this.flowLayoutPanel4.Controls.Add(this.numericBoxMolarMass);
this.flowLayoutPanel4.Controls.Add(this.numericBoxDensity);
this.flowLayoutPanel4.Controls.Add(this.colorControl);
- resources.ApplyResources(this.flowLayoutPanel4, "flowLayoutPanel4");
this.flowLayoutPanel4.Name = "flowLayoutPanel4";
//
// numericBoxVolume
@@ -1289,7 +1289,6 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem sendThisCrystalToOtherSoftwareToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem scatteringFactorToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
- private System.Windows.Forms.ToolStripMenuItem clearAllDataToolStripMenuItem;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip2;
diff --git a/Crystallography.Controls/Crystal/CrystalControl.cs b/Crystallography.Controls/Crystal/CrystalControl.cs
index 79ec113..09cd759 100644
--- a/Crystallography.Controls/Crystal/CrystalControl.cs
+++ b/Crystallography.Controls/Crystal/CrystalControl.cs
@@ -9,7 +9,6 @@
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
-using static IronPython.Modules._ast;
#endregion
namespace Crystallography.Controls;
@@ -19,6 +18,26 @@ public partial class CrystalControl : UserControl
{
#region プロパティ、フィールド、イベントハンドラ
+ ///
+ /// VisualStudioデザイナーの編集の時はTrue
+ ///
+ public new bool DesignMode
+ {
+ get
+ {
+ if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
+ return true;
+ System.Windows.Forms.Control ctrl = this;
+ while (ctrl != null)
+ {
+ if (ctrl.Site != null && ctrl.Site.DesignMode)
+ return true;
+ ctrl = ctrl.Parent;
+ }
+ return false;
+ }
+ }
+
public bool SkipEvent { get; set; } = false;
public bool SymmetryInformationVisible { set => FormSymmetryInformation.Visible = value; get => FormSymmetryInformation.Visible; }
@@ -27,6 +46,8 @@ public partial class CrystalControl : UserControl
public bool StrainControlVisible { get => formStrain.Visible; }
+ public bool ColorControlVisible { get => colorControl.Visible; set => colorControl.Visible = value; }
+
public int SymmetrySeriesNumber { get => symmetryControl.SymmetrySeriesNumber; set => symmetryControl.SymmetrySeriesNumber = value; }
#region Tabページの表示/非表示プロパティ
@@ -114,8 +135,6 @@ public Crystal Crystal
public double Beta { get => symmetryControl.Beta; set => symmetryControl.Beta = value; }
public double Gamma { get => symmetryControl.Gamma; set => symmetryControl.Gamma = value; }
-
-
public int DefaultTabNumber { set => tabControl.SelectedIndex = value; get => tabControl.SelectedIndex; }
public event EventHandler CrystalChanged;
@@ -847,7 +866,7 @@ private void asCTFFilecomatibleToCHANNEL5FileToolStripMenuItem_Click(object send
seed++;
}
- var (Phi, Theta, Psi) = Euler.GetEulerAngle(Crystal.Crystallites.Rotations[seed]);
+ var (Phi, Theta, Psi) = Euler.FromMatrix(Crystal.Crystallites.Rotations[seed]);
var euler = new double[] { Phi, Theta, Psi };
string str = "";
foreach (double angle in euler)
@@ -908,7 +927,7 @@ private void asTXTFileAllEulerAngleAndDensityToolStripMenuItem_Click(object send
for (int i = 0; i < Crystal.Crystallites.TotalCrystalline; i++)
{
string str = i.ToString() + "\t";
- var (Phi, Theta, Psi) = Euler.GetEulerAngle(Crystal.Crystallites.Rotations[index[i]]);
+ var (Phi, Theta, Psi) = Euler.FromMatrix(Crystal.Crystallites.Rotations[index[i]]);
var euler = new double[] { Phi, Theta, Psi };
foreach (double angle in euler)
diff --git a/Crystallography.Controls/Crystal/CrystalControl.resx b/Crystallography.Controls/Crystal/CrystalControl.resx
index 980b2d5..e530c19 100644
--- a/Crystallography.Controls/Crystal/CrystalControl.resx
+++ b/Crystallography.Controls/Crystal/CrystalControl.resx
@@ -57,6 +57,10 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
GrowAndShrink
@@ -96,7 +100,6 @@
156, 25
-
90
diff --git a/Crystallography.Controls/Crystal/FormScatteringFactor.cs b/Crystallography.Controls/Crystal/FormScatteringFactor.cs
index 68adfb0..8f6165d 100644
--- a/Crystallography.Controls/Crystal/FormScatteringFactor.cs
+++ b/Crystallography.Controls/Crystal/FormScatteringFactor.cs
@@ -121,9 +121,9 @@ private void SetSortedPlanes()
{
var magnitude2 = g.F.Real * g.F.Real + g.F.Imaginary * g.F.Imaginary;
if (waveLengthControl1.WaveSource == WaveSource.Xray)
- c.VectorOfG[i].RawIntensity = magnitude2 * multi / c.CellVolumeSqure * (1 + Math.Cos(twoTheta) * Math.Cos(twoTheta)) / Math.Sin(twoTheta) / Math.Sin(twoTheta / 2);
+ c.VectorOfG[i].RawIntensity = magnitude2 * multi / c.CellVolumeSquare * (1 + Math.Cos(twoTheta) * Math.Cos(twoTheta)) / Math.Sin(twoTheta) / Math.Sin(twoTheta / 2);
else
- c.VectorOfG[i].RawIntensity = magnitude2 * multi / c.CellVolumeSqure / Math.Sin(twoTheta) / Math.Sin(twoTheta / 2);
+ c.VectorOfG[i].RawIntensity = magnitude2 * multi / c.CellVolumeSquare / Math.Sin(twoTheta) / Math.Sin(twoTheta / 2);
max = Math.Max(max, c.VectorOfG[i].RawIntensity);
}
diff --git a/Crystallography.Controls/Crystal/LatticePlaneControl.cs b/Crystallography.Controls/Crystal/LatticePlaneControl.cs
index 5f03480..94d4608 100644
--- a/Crystallography.Controls/Crystal/LatticePlaneControl.cs
+++ b/Crystallography.Controls/Crystal/LatticePlaneControl.cs
@@ -5,212 +5,211 @@
using System.Linq;
using System.Windows.Forms;
-namespace Crystallography.Controls
+namespace Crystallography.Controls;
+
+public partial class LatticePlaneControl : UserControl
{
- public partial class LatticePlaneControl : UserControl
+ #region プロパティ, フィールド, イベントハンドラ
+ public bool SkipEvent { get; set; } = false;
+ public Crystal Crystal
{
- #region プロパティ, フィールド, イベントハンドラ
- public bool SkipEvent { get; set; } = false;
- public Crystal Crystal
+ get => crystal;
+ set
{
- get => crystal;
- set
+ crystal = value;
+ if (crystal != null)
{
- crystal = value;
- if (crystal != null)
- {
- table.Clear();
- AddRange(Crystal.LatticePlanes);
- }
+ table.Clear();
+ AddRange(Crystal.LatticePlanes);
}
}
- private Crystal crystal = null;
-
- public event EventHandler ItemsChanged;
-
- private DataSet.DataTableLatticePlaneDataTable table;
+ }
+ private Crystal crystal = null;
- #endregion
+ public event EventHandler ItemsChanged;
- #region コンストラクタ
- public LatticePlaneControl()
- {
- InitializeComponent();
- table = dataSet.DataTableLatticePlane;
- }
- #endregion
+ private DataSet.DataTableLatticePlaneDataTable table;
- #region LatticePlaneクラスを画面下部から生成/にセット
+ #endregion
- public LatticePlane GetFromInterface()
- {
- return new LatticePlane(true, Crystal, numericBoxH.ValueInteger, numericBoxK.ValueInteger, numericBoxL.ValueInteger,
- numericBoxDistance.Value, colorControl.Argb);
- }
+ #region コンストラクタ
+ public LatticePlaneControl()
+ {
+ InitializeComponent();
+ table = dataSet.DataTableLatticePlane;
+ }
+ #endregion
- public void SetToInterface(LatticePlane plane)
- {
- numericBoxH.Value = plane.Index.H;
- numericBoxK.Value = plane.Index.K;
- numericBoxL.Value = plane.Index.L;
+ #region LatticePlaneクラスを画面下部から生成/にセット
- numericBoxDistance.Value = plane.Translation;
+ public LatticePlane GetFromInterface()
+ {
+ return new LatticePlane(true, Crystal, numericBoxH.ValueInteger, numericBoxK.ValueInteger, numericBoxL.ValueInteger,
+ numericBoxDistance.Value, colorControl.Argb);
+ }
- colorControl.Color = Color.FromArgb(plane.ColorArgb);
- }
- #endregion
-
- #region データベース操作
- ///
- /// データベースにbondsを追加する
- ///
- ///
- public void Add(LatticePlane plane)
- {
- if (plane != null && plane.Index != (0, 0, 0))
- {
- table.Add(plane);
- crystal.LatticePlanes = GetAll();
- ItemsChanged?.Invoke(this, new EventArgs());
- }
- }
+ public void SetToInterface(LatticePlane plane)
+ {
+ numericBoxH.Value = plane.Index.H;
+ numericBoxK.Value = plane.Index.K;
+ numericBoxL.Value = plane.Index.L;
- ///
- /// データベースに原子を追加する
- ///
- ///
- public void AddRange(IEnumerable planes)
- {
- if (planes != null)
- {
- SkipEvent = true;
- foreach (var b in planes.Where(p => p.Index != (0, 0, 0)))
- table.Add(b);
- SkipEvent = false;
- crystal.LatticePlanes = GetAll();
- ItemsChanged?.Invoke(this, new EventArgs());
- bindingSource_PositionChanged(this, new EventArgs());
- }
- }
+ numericBoxDistance.Value = plane.Translation;
- ///
- /// データベースのi番目の原子を削除
- ///
- ///
- public void Delete(int i)
+ colorControl.Color = Color.FromArgb(plane.ColorArgb);
+ }
+ #endregion
+
+ #region データベース操作
+ ///
+ /// データベースにbondsを追加する
+ ///
+ ///
+ public void Add(LatticePlane plane)
+ {
+ if (plane != null && plane.Index != (0, 0, 0))
{
- table.Remove(i);
+ table.Add(plane);
crystal.LatticePlanes = GetAll();
ItemsChanged?.Invoke(this, new EventArgs());
}
+ }
- ///
- /// データベースのi番目の原子を置換
- ///
- ///
- ///
- public void Replace(LatticePlane bounds, int i)
+ ///
+ /// データベースに原子を追加する
+ ///
+ ///
+ public void AddRange(IEnumerable planes)
+ {
+ if (planes != null)
{
- table.Replace(bounds, i);
+ SkipEvent = true;
+ foreach (var b in planes.Where(p => p.Index != (0, 0, 0)))
+ table.Add(b);
+ SkipEvent = false;
crystal.LatticePlanes = GetAll();
ItemsChanged?.Invoke(this, new EventArgs());
+ bindingSource_PositionChanged(this, new EventArgs());
}
+ }
- ///
- /// データベースの原子を全て削除する
- ///
- public void Clear()
- {
- table.Clear();
- crystal.LatticePlanes = GetAll();
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ ///
+ /// データベースのi番目の原子を削除
+ ///
+ ///
+ public void Delete(int i)
+ {
+ table.Remove(i);
+ crystal.LatticePlanes = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
+
+ ///
+ /// データベースのi番目の原子を置換
+ ///
+ ///
+ ///
+ public void Replace(LatticePlane bounds, int i)
+ {
+ table.Replace(bounds, i);
+ crystal.LatticePlanes = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
+
+ ///
+ /// データベースの原子を全て削除する
+ ///
+ public void Clear()
+ {
+ table.Clear();
+ crystal.LatticePlanes = GetAll();
+ ItemsChanged?.Invoke(this, new EventArgs());
+ }
- ///
- /// データベース中の全ての原子を取得
- ///
- ///
- public LatticePlane[] GetAll() => table.GetAll();
+ ///
+ /// データベース中の全ての原子を取得
+ ///
+ ///
+ public LatticePlane[] GetAll() => table.GetAll();
- #endregion
+ #endregion
- #region 追加/削除/置換 ボタン
+ #region 追加/削除/置換 ボタン
- ///
- /// 追加ボタン
- ///
- ///
- ///
- private void buttonAdd_Click(object sender, System.EventArgs e)
+ ///
+ /// 追加ボタン
+ ///
+ ///
+ ///
+ private void buttonAdd_Click(object sender, System.EventArgs e)
+ {
+ var plane = GetFromInterface();
+ if (plane != null && plane.Index != (0, 0, 0))
{
- var plane = GetFromInterface();
- if (plane != null && plane.Index != (0, 0, 0))
- {
- Add(plane);
- bindingSource.Position = bindingSource.Count - 1;
- }
+ Add(plane);
+ bindingSource.Position = bindingSource.Count - 1;
}
+ }
- ///
- /// 変更ボタン
- ///
- ///
- ///
- private void buttonChange_Click(object sender, System.EventArgs e)
+ ///
+ /// 変更ボタン
+ ///
+ ///
+ ///
+ private void buttonChange_Click(object sender, System.EventArgs e)
+ {
+ var pos = bindingSource.Position;
+ if (pos >= 0)
{
- var pos = bindingSource.Position;
- if (pos >= 0)
- {
- Replace(GetFromInterface(), pos);
- bindingSource.Position = pos;
- }
+ Replace(GetFromInterface(), pos);
+ bindingSource.Position = pos;
}
+ }
- ///
- /// 削除ボタン
- ///
- ///
- ///
- private void buttonDelete_Click(object sender, System.EventArgs e)
+ ///
+ /// 削除ボタン
+ ///
+ ///
+ ///
+ private void buttonDelete_Click(object sender, System.EventArgs e)
+ {
+ int pos = bindingSource.Position;
+ if (pos >= 0)
{
- int pos = bindingSource.Position;
- if (pos >= 0)
- {
- SkipEvent = true;//bindingSourceAtoms_PositionChangedが呼ばれるのを防ぐ
- Delete(pos);
- SkipEvent = false;
- bindingSource.Position = bindingSource.Count > pos ? pos : pos - 1;//選択列を選択しなおす
- }
+ SkipEvent = true;//bindingSourceAtoms_PositionChangedが呼ばれるのを防ぐ
+ Delete(pos);
+ SkipEvent = false;
+ bindingSource.Position = bindingSource.Count > pos ? pos : pos - 1;//選択列を選択しなおす
}
+ }
- #endregion
+ #endregion
- #region bindingSourceイベント
- //選択Atomが変更されたとき
- private void bindingSource_PositionChanged(object sender, System.EventArgs e)
- {
- if (SkipEvent) return;
+ #region bindingSourceイベント
+ //選択Atomが変更されたとき
+ private void bindingSource_PositionChanged(object sender, System.EventArgs e)
+ {
+ if (SkipEvent) return;
- if (bindingSource.Position >= 0 && bindingSource.Count > 0)
- SetToInterface(dataSet.DataTableLatticePlane.Get(bindingSource.Position));
- }
- #endregion
+ if (bindingSource.Position >= 0 && bindingSource.Count > 0)
+ SetToInterface(dataSet.DataTableLatticePlane.Get(bindingSource.Position));
+ }
+ #endregion
- #region dataGridView イベント
- private void dataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e)
- {//チェックボックスが変わると即座に反映させる
- if (dataGridView.CurrentCellAddress.X == 0 && dataGridView.IsCurrentCellDirty)
- dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);//コミットする
- }
- private void dataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ #region dataGridView イベント
+ private void dataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e)
+ {//チェックボックスが変わると即座に反映させる
+ if (dataGridView.CurrentCellAddress.X == 0 && dataGridView.IsCurrentCellDirty)
+ dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);//コミットする
+ }
+ private void dataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.ColumnIndex == 0 && e.RowIndex >= 0)
{
- if (e.ColumnIndex == 0 && e.RowIndex >= 0)
- {
- table.Get(bindingSource.Position).Enabled =
- (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
- ItemsChanged?.Invoke(this, new EventArgs());
- }
+ table.Get(bindingSource.Position).Enabled =
+ (bool)dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ ItemsChanged?.Invoke(this, new EventArgs());
}
- #endregion
}
+ #endregion
}
diff --git a/Crystallography.Controls/Crystal/SymmetryControl.Designer.cs b/Crystallography.Controls/Crystal/SymmetryControl.Designer.cs
index 84f5228..9a6d656 100644
--- a/Crystallography.Controls/Crystal/SymmetryControl.Designer.cs
+++ b/Crystallography.Controls/Crystal/SymmetryControl.Designer.cs
@@ -76,12 +76,11 @@ private void InitializeComponent()
//
// groupBox4
//
- resources.ApplyResources(this.groupBox4, "groupBox4");
this.groupBox4.Controls.Add(this.checkBoxShowError);
this.groupBox4.Controls.Add(this.tableLayoutPanel1);
+ resources.ApplyResources(this.groupBox4, "groupBox4");
this.groupBox4.Name = "groupBox4";
this.groupBox4.TabStop = false;
- this.toolTip.SetToolTip(this.groupBox4, resources.GetString("groupBox4.ToolTip"));
//
// checkBoxShowError
//
@@ -119,19 +118,16 @@ private void InitializeComponent()
this.tableLayoutPanel1.Controls.Add(this.numericBoxAErr, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.label44, 3, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
- this.toolTip.SetToolTip(this.tableLayoutPanel1, resources.GetString("tableLayoutPanel1.ToolTip"));
//
// label48
//
resources.ApplyResources(this.label48, "label48");
this.label48.Name = "label48";
- this.toolTip.SetToolTip(this.label48, resources.GetString("label48.ToolTip"));
//
// label46
//
resources.ApplyResources(this.label46, "label46");
this.label46.Name = "label46";
- this.toolTip.SetToolTip(this.label46, resources.GetString("label46.ToolTip"));
//
// numericBoxBeta
//
@@ -167,7 +163,6 @@ private void InitializeComponent()
//
resources.ApplyResources(this.label47, "label47");
this.label47.Name = "label47";
- this.toolTip.SetToolTip(this.label47, resources.GetString("label47.ToolTip"));
//
// numericBoxGammaErr
//
@@ -181,14 +176,12 @@ private void InitializeComponent()
this.numericBoxGammaErr.SkipEventDuringInput = false;
this.numericBoxGammaErr.SmartIncrement = true;
this.numericBoxGammaErr.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.toolTip.SetToolTip(this.numericBoxGammaErr, resources.GetString("numericBoxGammaErr.ToolTip"));
this.numericBoxGammaErr.ValueChanged += new Crystallography.Controls.NumericBox.MyEventHandler(this.numericBoxCellConstants_ValueChanged);
//
// label23
//
resources.ApplyResources(this.label23, "label23");
this.label23.Name = "label23";
- this.toolTip.SetToolTip(this.label23, resources.GetString("label23.ToolTip"));
//
// numericBoxAlphaErr
//
@@ -202,7 +195,6 @@ private void InitializeComponent()
this.numericBoxAlphaErr.SkipEventDuringInput = false;
this.numericBoxAlphaErr.SmartIncrement = true;
this.numericBoxAlphaErr.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.toolTip.SetToolTip(this.numericBoxAlphaErr, resources.GetString("numericBoxAlphaErr.ToolTip"));
this.numericBoxAlphaErr.ValueChanged += new Crystallography.Controls.NumericBox.MyEventHandler(this.numericBoxCellConstants_ValueChanged);
//
// numericBoxBetaErr
@@ -217,7 +209,6 @@ private void InitializeComponent()
this.numericBoxBetaErr.SkipEventDuringInput = false;
this.numericBoxBetaErr.SmartIncrement = true;
this.numericBoxBetaErr.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.toolTip.SetToolTip(this.numericBoxBetaErr, resources.GetString("numericBoxBetaErr.ToolTip"));
this.numericBoxBetaErr.ValueChanged += new Crystallography.Controls.NumericBox.MyEventHandler(this.numericBoxCellConstants_ValueChanged);
//
// numericBoxA
@@ -239,13 +230,11 @@ private void InitializeComponent()
//
resources.ApplyResources(this.label26, "label26");
this.label26.Name = "label26";
- this.toolTip.SetToolTip(this.label26, resources.GetString("label26.ToolTip"));
//
// label45
//
resources.ApplyResources(this.label45, "label45");
this.label45.Name = "label45";
- this.toolTip.SetToolTip(this.label45, resources.GetString("label45.ToolTip"));
//
// numericBoxGamma
//
@@ -266,7 +255,6 @@ private void InitializeComponent()
//
resources.ApplyResources(this.label18, "label18");
this.label18.Name = "label18";
- this.toolTip.SetToolTip(this.label18, resources.GetString("label18.ToolTip"));
//
// numericBoxBErr
//
@@ -280,7 +268,6 @@ private void InitializeComponent()
this.numericBoxBErr.SkipEventDuringInput = false;
this.numericBoxBErr.SmartIncrement = true;
this.numericBoxBErr.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.toolTip.SetToolTip(this.numericBoxBErr, resources.GetString("numericBoxBErr.ToolTip"));
this.numericBoxBErr.ValueChanged += new Crystallography.Controls.NumericBox.MyEventHandler(this.numericBoxCellConstants_ValueChanged);
//
// numericBoxB
@@ -302,25 +289,21 @@ private void InitializeComponent()
//
resources.ApplyResources(this.label24, "label24");
this.label24.Name = "label24";
- this.toolTip.SetToolTip(this.label24, resources.GetString("label24.ToolTip"));
//
// label25
//
resources.ApplyResources(this.label25, "label25");
this.label25.Name = "label25";
- this.toolTip.SetToolTip(this.label25, resources.GetString("label25.ToolTip"));
//
// label28
//
resources.ApplyResources(this.label28, "label28");
this.label28.Name = "label28";
- this.toolTip.SetToolTip(this.label28, resources.GetString("label28.ToolTip"));
//
// label27
//
resources.ApplyResources(this.label27, "label27");
this.label27.Name = "label27";
- this.toolTip.SetToolTip(this.label27, resources.GetString("label27.ToolTip"));
//
// numericBoxC
//
@@ -349,7 +332,6 @@ private void InitializeComponent()
this.numericBoxCErr.SkipEventDuringInput = false;
this.numericBoxCErr.SmartIncrement = true;
this.numericBoxCErr.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.toolTip.SetToolTip(this.numericBoxCErr, resources.GetString("numericBoxCErr.ToolTip"));
this.numericBoxCErr.ValueChanged += new Crystallography.Controls.NumericBox.MyEventHandler(this.numericBoxCellConstants_ValueChanged);
//
// numericBoxAErr
@@ -364,18 +346,15 @@ private void InitializeComponent()
this.numericBoxAErr.SkipEventDuringInput = false;
this.numericBoxAErr.SmartIncrement = true;
this.numericBoxAErr.TextFont = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.toolTip.SetToolTip(this.numericBoxAErr, resources.GetString("numericBoxAErr.ToolTip"));
this.numericBoxAErr.ValueChanged += new Crystallography.Controls.NumericBox.MyEventHandler(this.numericBoxCellConstants_ValueChanged);
//
// label44
//
resources.ApplyResources(this.label44, "label44");
this.label44.Name = "label44";
- this.toolTip.SetToolTip(this.label44, resources.GetString("label44.ToolTip"));
//
// groupBoxSymmetry
//
- resources.ApplyResources(this.groupBoxSymmetry, "groupBoxSymmetry");
this.groupBoxSymmetry.Controls.Add(this.comboBoxSpaceGroup);
this.groupBoxSymmetry.Controls.Add(this.comboBoxPointGroup);
this.groupBoxSymmetry.Controls.Add(this.comboBoxCrystalSystem);
@@ -385,9 +364,9 @@ private void InitializeComponent()
this.groupBoxSymmetry.Controls.Add(this.textBoxSearch);
this.groupBoxSymmetry.Controls.Add(this.label21);
this.groupBoxSymmetry.Controls.Add(this.comboBoxSearchResult);
+ resources.ApplyResources(this.groupBoxSymmetry, "groupBoxSymmetry");
this.groupBoxSymmetry.Name = "groupBoxSymmetry";
this.groupBoxSymmetry.TabStop = false;
- this.toolTip.SetToolTip(this.groupBoxSymmetry, resources.GetString("groupBoxSymmetry.ToolTip"));
//
// comboBoxSpaceGroup
//
@@ -465,7 +444,6 @@ private void InitializeComponent()
this.comboBoxSearchResult.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxSearchResult.DropDownWidth = 200;
this.comboBoxSearchResult.Name = "comboBoxSearchResult";
- this.toolTip.SetToolTip(this.comboBoxSearchResult, resources.GetString("comboBoxSearchResult.ToolTip"));
this.comboBoxSearchResult.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.comboBoxSpaceGroup_DrawItem);
this.comboBoxSearchResult.SelectedIndexChanged += new System.EventHandler(this.comboBoxSearchResult_SelectedIndexChanged);
//
@@ -473,7 +451,6 @@ private void InitializeComponent()
//
resources.ApplyResources(this.panel1, "panel1");
this.panel1.Name = "panel1";
- this.toolTip.SetToolTip(this.panel1, resources.GetString("panel1.ToolTip"));
//
// SymmetryControl
//
@@ -483,7 +460,6 @@ private void InitializeComponent()
this.Controls.Add(this.panel1);
this.Controls.Add(this.groupBoxSymmetry);
this.Name = "SymmetryControl";
- this.toolTip.SetToolTip(this, resources.GetString("$this.ToolTip"));
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
diff --git a/Crystallography.Controls/Crystal/SymmetryControl.cs b/Crystallography.Controls/Crystal/SymmetryControl.cs
index af3d2fc..2bd5597 100644
--- a/Crystallography.Controls/Crystal/SymmetryControl.cs
+++ b/Crystallography.Controls/Crystal/SymmetryControl.cs
@@ -11,7 +11,22 @@ namespace Crystallography.Controls;
public partial class SymmetryControl : UserControl
{
#region プロパティ、フィールド、イベントハンドラ
-
+ public new bool DesignMode
+ {
+ get
+ {
+ if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
+ return true;
+ Control ctrl = this;
+ while (ctrl != null)
+ {
+ if (ctrl.Site != null && ctrl.Site.DesignMode)
+ return true;
+ ctrl = ctrl.Parent;
+ }
+ return false;
+ }
+ }
public bool SkipEvent { get; set; } = false;
public int CrystalSystemIndex => comboBoxCrystalSystem.SelectedIndex;
public int PointGroupIndex => comboBoxPointGroup.SelectedIndex;
@@ -121,6 +136,7 @@ public bool ShowError
public SymmetryControl()
{
+ if (DesignMode) return;
InitializeComponent();
SymmetrySeriesNumber = 0;
tableLayoutPanel1.ColumnStyles[2].Width = tableLayoutPanel1.ColumnStyles[6].Width = 0;
diff --git a/Crystallography.Controls/Crystal/SymmetryControl.ja.resx b/Crystallography.Controls/Crystal/SymmetryControl.ja.resx
index 176c214..0560993 100644
--- a/Crystallography.Controls/Crystal/SymmetryControl.ja.resx
+++ b/Crystallography.Controls/Crystal/SymmetryControl.ja.resx
@@ -62,7 +62,7 @@
メイリオ, 9pt
- 220, 106
+ 272, 106
75, 22
@@ -70,11 +70,81 @@
誤差表示
+
+
+ 1, 1, 1, 0
+
+
+ 346, 82
+
+
+ メイリオ, 9pt
+
+
+ 352, 132
+
+
+ 格子定数
+
- 278, 54
+ 330, 54
+
+
+ 330, 27
+
+
+ 192, 27
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 192, 0
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 330, 0
- 222, 54
+ 261, 54
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 261, 0
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 261, 27
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 1000, 23
+
+
+ 69, 23
@@ -82,11 +152,20 @@
+
+ 176, 0
+
- 128, 54
+ 154, 54
- 166, 54
+ 192, 54
+
+
+ 1000, 23
+
+
+ 69, 23
@@ -94,6 +173,24 @@
+
+ 154, 27
+
+
+ 85, 27
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 1000, 23
+
+
+ 69, 23
+
@@ -104,11 +201,20 @@
0, 54
- 150, 54
+ 176, 54
+
+
+ 176, 27
16, 54
+
+ 1000, 23
+
+
+ 69, 23
+
@@ -116,41 +222,55 @@
- 72, 54
+ 85, 54
-
-
- 1, 1, 1, 0
+
+ 1000, 23
-
- 294, 82
+
+ 69, 23
-
+
+ 85, 0
+
+
+ 1000, 23
+
+
+ 69, 23
+
+
+ 154, 0
+
+
メイリオ, 9pt
-
- 300, 132
+
+ 356, 0
-
- 格子定数
+
+ 240, 132
+
+
+ 対称性
53, 74
- 211, 26
+ 179, 26
53, 45
- 211, 26
+ 179, 26
53, 17
- 211, 25
+ 179, 25
メイリオ, 9pt
@@ -203,16 +323,16 @@
点群
-
- メイリオ, 9pt
-
-
- 272, 132
+
+ 112, 26
-
- 対称性
+
+ 352, 0
4, 132
+
+ 596, 132
+
\ No newline at end of file
diff --git a/Crystallography.Controls/Crystal/SymmetryControl.resx b/Crystallography.Controls/Crystal/SymmetryControl.resx
index e7adf41..19ba10f 100644
--- a/Crystallography.Controls/Crystal/SymmetryControl.resx
+++ b/Crystallography.Controls/Crystal/SymmetryControl.resx
@@ -58,1669 +58,1594 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- NoControl
-
-
-
- 16, 17
-
-
- 1000, 25
-
-
- α
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Top, Right
-
- tableLayoutPanel1
+
+
+ True
-
-
- 0, 0, 1, 0
+
+
+ Segoe UI Symbol, 9pt
-
- Disable
+
+ NoControl
-
- tableLayoutPanel1
+
+ 244, 109
-
- 10, 50
+
+ 83, 19
-
- tableLayoutPanel1
+
+ 2
-
- 1, 23
+
+ Show error
-
- Cell constant "c" in angstrom
+
+ 17, 17
+
+
+ Show error
-
- Segoe UI Symbol, 9pt
+
+ checkBoxShowError
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
+
+ groupBox4
-
+
0
-
- 17
+
+ 8
-
- 128, 27
+
+ True
-
- 222, 27
+
+ Segoe UI Symbol, 9.75pt
-
- 1000, 25
+
+ NoControl
-
+
+ 310, 55
+
+
+
0, 0, 0, 0
-
- 15, 17
+
+ 13, 17
-
-
+
+ 1
-
- 18
+
+ °
-
- Cell constant "β" in degree
+
+ label48
-
- Space Group
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- groupBoxSymmetry
+
+ tableLayoutPanel1
-
- label28
+
+ 0
-
- 56, 25
+
+ True
-
- Segoe UI Symbol, 9pt
+
+ Segoe UI Symbol, 9.75pt
-
- 23
+
+ NoControl
-
-
- 3
+
+ 310, 27
-
- True
+
+ 0, 0, 0, 0
-
- NoControl
+
+ 13, 17
-
- comboBoxPointGroup
+
+ 1
-
-
+
+ °
-
- 166, 0
+
+ label46
-
- 16, 17
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- Show error
+
+ tableLayoutPanel1
-
+
1
-
+
+ GrowAndShrink
+
+
+ Fill
+
+
Segoe UI Symbol, 9.75pt
-
- 2
+
+ Segoe UI Symbol, 9pt
-
- 30
+
+ Segoe UI Symbol, 9pt
-
+
+ 182, 27
+
+
0, 0, 0, 0
-
-
+
+ 1000, 25
-
- Fill
+
+ 1, 23
-
+
0, 0, 1, 0
-
- GrowAndShrink
+
+ 64, 25
-
+
1
-
- cubic
+
+ Cell constant "β" in degree
-
- 0, 0, 0, 0
+
+ Cell constant "β" in degree
-
+
+ numericBoxBeta
+
+
Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- 16, 55
+
+ tableLayoutPanel1
-
- 1000, 25
+
+ 2
-
- textBoxSearch
+
+ GrowAndShrink
-
- <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label48" Row="2" RowSpan="1" Column="7" ColumnSpan="1" /><Control Name="label46" Row="1" RowSpan="1" Column="7" ColumnSpan="1" /><Control Name="numericBoxBeta" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="numericBoxAlpha" Row="0" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="label47" Row="0" RowSpan="1" Column="7" ColumnSpan="1" /><Control Name="numericBoxGammaErr" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="label23" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="numericBoxAlphaErr" Row="0" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="numericBoxBetaErr" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="numericBoxA" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label26" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="label45" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="numericBoxGamma" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="label18" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="numericBoxBErr" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="numericBoxB" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label24" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label25" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label28" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="label27" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="numericBoxC" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="numericBoxCErr" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="numericBoxAErr" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="label44" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="AutoSize,0,Percent,25,Percent,25,AutoSize,0,AutoSize,0,Percent,25,Percent,25,AutoSize,0" /><Rows Styles="Percent,33.33333,Percent,33.33334,Percent,33.33334" /></TableLayoutSettings>
+
+ Fill
+
+
+ Segoe UI Symbol, 9.75pt
Segoe UI Symbol, 9pt
-
-
-
-
- Search
-
-
- 1
+
+ Segoe UI Symbol, 9pt
-
- 0, 0, 1, 0
+
+ 182, 0
-
- Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
+
+ 0, 0, 0, 0
-
- Segoe UI Symbol, 9.75pt
+
+ 1000, 25
-
- tetragonal
+
+ 1, 23
-
- numericBoxAErr
+
+ 0, 0, 1, 0
-
- label27
+
+ 64, 25
-
+
0
-
- label20
+
+ Cell constant "α" in degree
-
- tableLayoutPanel1
+
+ Cell constant "α" in degree
-
- 1
+
+ numericBoxAlpha
-
- 7
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- Crystal System
+
+ tableLayoutPanel1
-
- System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 3
-
- 1000, 25
+
+ True
-
- Segoe UI Symbol, 9pt
+
+ Segoe UI Symbol, 9.75pt
-
- 22
+
+ NoControl
-
- Segoe UI Symbol, 9pt
+
+ 310, 0
-
+
+ 0, 0, 0, 0
+
+
+ 13, 17
+
+
1
-
- 0
+
+ °
-
- 0, 0, 0, 0
+
+ label47
-
- 576, 132
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ tableLayoutPanel1
+
+
+ 4
+
+
+ GrowAndShrink
+
+
+ Fill
+
+
+ Segoe UI Symbol, 9.75pt
+
+
+ Segoe UI Symbol, 9pt
Segoe UI Symbol, 9pt
-
-
+
+ ±
-
- 92, 17
+
+ 246, 55
-
- True
+
+ 0, 0, 0, 0
-
- 72, 55
+
+ 1000, 25
-
-
+
+ 1, 23
-
+
0, 0, 1, 0
-
- 1, 23
-
-
- Right
+
+ 64, 25
-
- True
+
+ 5
-
- NoControl
+
+ numericBoxGammaErr
-
- Set space group in HM notation
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
+
tableLayoutPanel1
-
- GrowAndShrink
-
-
- °
+
+ 5
-
- tableLayoutPanel1
+
+ True
-
- Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
+
+ Times New Roman, 11.25pt, style=Italic
-
- 95, 74
+
+ NoControl
-
- 304, 0
+
+ 0, 0
-
-
+
+ 0, 0, 0, 0
-
- ±
+
+ 16, 17
-
+
0
-
- label21
+
+ a
-
- groupBoxSymmetry
+
+ label23
-
- GrowAndShrink
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 300, 0
+
+ tableLayoutPanel1
-
- 0, 0, 1, 0
+
+ 6
-
- Times New Roman, 11.25pt, style=Italic
+
+ GrowAndShrink
-
- NoControl
+
+ Fill
-
- True
+
+ Segoe UI Symbol, 9.75pt
-
+
Segoe UI Symbol, 9pt
-
- trigonal
+
+ Segoe UI Symbol, 9pt
-
- System.Windows.Forms.UserControl, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ ±
-
- 0, 0, 0, 0
+
+ 246, 0
-
- Times New Roman, 11.25pt, style=Italic
+
+ 0, 0, 0, 0
-
- ±
+
+ 1000, 25
-
- 56, 25
+
+ 1, 23
-
+
0, 0, 1, 0
-
- 1
+
+ 64, 25
-
- 16, 0
+
+ 3
-
- comboBoxSearchResult
+
+ numericBoxAlphaErr
-
- NoControl
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- label17
+
+ tableLayoutPanel1
-
- 1000, 25
+
+ 7
-
- Segoe UI Symbol, 9.75pt
+
+ GrowAndShrink
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Fill
-
+
Segoe UI Symbol, 9.75pt
-
- NoControl
+
+ Segoe UI Symbol, 9pt
-
- 6, 0, 0, 0
+
+ Segoe UI Symbol, 9pt
-
- 0, 0, 0, 0
+
+ ±
-
- label26
+
+ 246, 27
-
- 278, 27
+
+ 0, 0, 0, 0
-
- GrowAndShrink
+
+ 1000, 25
-
- 6, 0, 0, 0
+
+ 1, 23
-
- 3, 21
-
-
- 3
-
-
- 78, 17
+
+ 0, 0, 1, 0
-
- True
+
+ 64, 25
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 4
-
- 1000, 25
+
+ numericBoxBetaErr
-
- °
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- 47, 17
+
+ tableLayoutPanel1
-
- Right
+
+ 8
-
- toolTip
+
+ GrowAndShrink
-
- ±
+
+ Fill
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Segoe UI Symbol, 9.75pt
-
- groupBox4
+
+ Segoe UI Symbol, 9pt
-
- 16, 17
+
+ Segoe UI Symbol, 9pt
-
- groupBoxSymmetry
+
+ 16, 0
-
- 1
+
+ 0, 0, 0, 0
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 1000, 25
-
- 56, 25
+
+ 1, 23
-
- 56, 25
+
+ 0, 0, 1, 0
-
- 21
+
+ 64, 25
0
-
- Fill
+
+ Cell constant "a" in angstrom
Cell constant "a" in angstrom
-
- 7
+
+ numericBoxA
-
- tableLayoutPanel1
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- Top, Left, Right
+
+ tableLayoutPanel1
-
- Segoe UI Symbol, 9pt
+
+ 9
-
- Segoe UI Symbol, 9.75pt
+
+ True
-
-
+
+ Times New Roman, 11.25pt, style=Italic
-
- $this
+
+ NoControl
-
- 96, 96
+
+ 166, 0
-
- 1, 23
+
+ 6, 0, 0, 0
-
- Segoe UI Symbol, 9.75pt
+
+ 16, 17
-
-
+
+ 1
-
- 6, 79
+
+ α
-
- label18
+
+ label26
-
- 13, 17
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ±
+
+ tableLayoutPanel1
-
- 0
+
+ 10
-
- 19
+
+ True
-
- Segoe UI Symbol, 9pt
+
+ Segoe UI Symbol, 9.75pt
-
- Set crystal system
+
+ NoControl
-
- 150, 27
+
+ 144, 55
-
-
+
+ 0, 0, 0, 0
-
- 1, 23
+
+ 16, 17
-
- Fill
+
+ 1
-
- 0, 0, 0, 0
+
+ Å
-
- 56, 25
+
+ label45
-
- 0, 0, 0, 0
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 1, 23
+
+ tableLayoutPanel1
-
- Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
+
+ 11
-
-
+
+ GrowAndShrink
-
- 56, 25
+
+ Fill
-
+
Segoe UI Symbol, 9.75pt
-
+
Segoe UI Symbol, 9pt
-
- 1
+
+ Segoe UI Symbol, 9pt
-
- 0, 0, 0, 0
+
+ 182, 55
-
-
+
+ 0, 0, 0, 0
-
- 11
+
+ 1000, 25
-
- Segoe UI Symbol, 9pt
+
+ 1, 23
-
- Times New Roman, 9pt
+
+ 0, 0, 1, 0
-
- Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
+
+ 64, 25
-
- 3
+
+ 2
-
- 169, 26
+
+ Cell constant "γ" in degree
-
- Å
+
+ Cell constant "γ" in degree
-
- 1, 23
+
+ numericBoxGamma
-
- Segoe UI Symbol, 9pt
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- Cell constants
+
+ tableLayoutPanel1
-
- Segoe UI Symbol, 9pt
+
+ 12
-
-
+
+ True
-
- Cell constant "c" in angstrom
+
+ Segoe UI Symbol, 9.75pt
-
- panel1
+
+ NoControl
-
- Disable
+
+ 144, 27
-
- 2
+
+ 0, 0, 0, 0
-
- 0, 55
+
+ 16, 17
-
- True
+
+ 1
-
- 0, 0, 0, 0
+
+ Å
-
- 1
+
+ label18
-
- Segoe UI Symbol, 9pt
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- 1
+
+ tableLayoutPanel1
-
- Segoe UI Symbol, 9.75pt
+
+ 13
-
- groupBoxSymmetry
+
+ GrowAndShrink
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Fill
-
- 0, 0, 0, 0
+
+ Segoe UI Symbol, 9.75pt
-
-
+
+ Segoe UI Symbol, 9pt
-
- tableLayoutPanel1
+
+ Segoe UI Symbol, 9pt
-
- 0, 0, 0, 0
+
+ ±
-
- Top, Right
+
+ 80, 27
-
- Top, Left, Right
+
+ 0, 0, 0, 0
-
- System.Windows.Forms.Panel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 1000, 25
-
- 14
+
+ 1, 23
-
- NoControl
+
+ 0, 0, 1, 0
-
- Segoe UI Symbol, 9pt
+
+ 64, 25
-
- 12
+
+ 4
-
- True
+
+ numericBoxBErr
-
- 8
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- 54, 106
+
+ tableLayoutPanel1
-
- 64, 21
+
+ 14
-
- 0, 0
+
+ GrowAndShrink
-
- True
+
+ Fill
-
+
Segoe UI Symbol, 9.75pt
-
- GrowAndShrink
+
+ Segoe UI Symbol, 9pt
-
-
+
+ Segoe UI Symbol, 9pt
-
+
+ 16, 27
+
+
0, 0, 0, 0
-
- 169, 25
+
+ 1000, 25
-
-
+
+ 1, 23
-
- 8
+
+ 0, 0, 1, 0
-
- label24
+
+ 64, 25
-
- 300, 158
+
+ 1
-
- 40
+
+ Cell constant "b" in angstrom
-
- numericBoxAlphaErr
+
+ Cell constant "b" in angstrom
-
- 294, 84
+
+ numericBoxB
-
- Fill
+
+ Crystallography.Controls.NumericBox, Crystallography.Controls, Culture=neutral, PublicKeyToken=null
-
- Å
+
+ tableLayoutPanel1
-
- NoControl
+
+ 15
-
- comboBoxCrystalSystem
+
+ True
-
- Segoe UI Symbol, 9.75pt
+
+ Times New Roman, 11.25pt, style=Italic
-
- Times New Roman, 11.25pt
+
+ NoControl
-
-
+
+ 0, 27
-
+
0, 0, 0, 0
-
- Cell constant "α" in degree
-
-
- label44
-
-
+
16, 17
-
- 56, 25
+
+ 1
-
- numericBoxGammaErr
+
+ b
-
- Segoe UI Symbol, 9pt
+
+ label24
-
- 0
+
+ System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- Segoe UI Symbol, 9.75pt
+
+ tableLayoutPanel1
-
- β
+
+ 16
-
- System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ True
-
- groupBoxSymmetry
+
+ Times New Roman, 11.25pt, style=Italic
-
- 3
+
+