예제 #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;
 }
예제 #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;
 }