ringbuffer and statistics
This commit is contained in:
@@ -28,7 +28,8 @@ public class DefaultControlFactory : IControlFactory
|
||||
getPreview = value => (string)method.Invoke(null, new[] { value });
|
||||
previewLabel = new Label
|
||||
{
|
||||
AutoSize = true,
|
||||
AutoSize = false,
|
||||
Size = new System.Drawing.Size(600, 30),
|
||||
Padding = new Padding(15, 0, 0, 0),
|
||||
Font = new System.Drawing.Font("Segoe UI", 10, System.Drawing.FontStyle.Italic),
|
||||
Text = getPreview(initialValue)
|
||||
@@ -95,7 +96,7 @@ public class DefaultControlFactory : IControlFactory
|
||||
private Control CreateStringControl(string description, object initialValue, Action<object> valueChangedCallback,
|
||||
string settingDescription, Label previewLabel, Func<object, string> getPreview)
|
||||
{
|
||||
var textBox = new TextBox { Text = initialValue as string, Width = 400 };
|
||||
var textBox = new TextBox { Text = initialValue as string, Width = 600 };
|
||||
var label = new Label { Text = description, AutoSize = true, Padding = new Padding(0, 5, 0, 0) };
|
||||
|
||||
textBox.TextChanged += (s, e) =>
|
||||
|
||||
@@ -33,6 +33,7 @@ public partial class OptionsWindow
|
||||
flowLayoutPanelSettings.FlowDirection = FlowDirection.TopDown;
|
||||
flowLayoutPanelSettings.Location = new Point(220, 12);
|
||||
flowLayoutPanelSettings.Name = "flowLayoutPanelSettings";
|
||||
flowLayoutPanelSettings.Padding = new Padding(0, 0, 0, 15);
|
||||
flowLayoutPanelSettings.Size = new Size(852, 582);
|
||||
flowLayoutPanelSettings.TabIndex = 1;
|
||||
flowLayoutPanelSettings.WrapContents = false;
|
||||
|
||||
@@ -42,7 +42,7 @@ public class CsvStatistics
|
||||
{
|
||||
_csv.Dispose();
|
||||
_stream.Dispose();
|
||||
_fileStream.Close();
|
||||
_fileStream.Dispose();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
|
||||
public class StatisticsRecord
|
||||
{
|
||||
public DateTime Time { get; set; }
|
||||
public string[] Values { get; set; }
|
||||
}
|
||||
@@ -38,6 +38,7 @@
|
||||
ControlBox = false;
|
||||
Name = "MaterialLoader";
|
||||
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
TopMost = true;
|
||||
ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user