/// <summary> /// フォームからコンフィグへ /// </summary> public void WriteToConfig(Config.NetworkGameConnection config) { config.Address = textBoxAddress.Text; config.User = textBoxUser.Text; config.Pass = textBoxPass.Text; config.SendPV = checkBoxPV.Checked; config.KeepAlive = checkBoxKeepAlive.Checked; }
/// <summary> /// コンフィグからフォームへ /// </summary> public void ReadFromConfig(Config.NetworkGameConnection config) { textBoxAddress.Text = config.Address; textBoxUser.Text = config.User; textBoxPass.Text = config.Pass; checkBoxPV.Checked = config.SendPV; checkBoxKeepAlive.Checked = config.KeepAlive; }