Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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;
 }