public GlobalSettings() { InitializeComponent(); _config = XmlHandle.XmlRead(); txtbox_InstrumentKey.Text = _config.InstrumentKey; txtbox_UserName.Text = _config.UserId; txtbox_password.Text = _config.Password; txtbox_rstFilePath.Text = _config.ResultPath.FullName; }
private void Apply_button_Click(object sender, EventArgs e) { _gc = XmlHandle.XmlRead(); #region Check validity of data input _gc.Peroid = double.TryParse(Peroid_textbox.Text, out double peroid) ? peroid : 15; _gc.Interval = double.TryParse(WaitingTime.Text, out double interal) ? interal : 3; _gc.Max = int.TryParse(RunTimes_textbox.Text, out int max) ? max : 1; #endregion Runtime.Run(_gc); }