public frmMain() { InitializeComponent(); this.Text = Program.version; cancelEvent = new CancellationTokenSource(); _lockobj = new object(); CollisionWarning += onCollisionHandler; TargetsReceived += onTargetsReceived; bHasPythonStarted = false; SettingsHolder.LoadFromJson(); SettingsHolder.PythonProcessId = -1; string[] args = Environment.GetCommandLineArgs(); if (args.Length > 1 && args[1].ToLowerInvariant().Contains("auto")) { StartDetection(); button1.Enabled = false; } }
private void loadToolStripMenuItem_Click(object sender, EventArgs e) { SettingsHolder.LoadFromJson(); propertyGrid1.SelectedObject = SettingsHolder.Instance; }
public SettingsForm() { InitializeComponent(); SettingsHolder.LoadFromJson(); propertyGrid1.SelectedObject = SettingsHolder.Instance; }