public LauncherMain() { InitializeComponent(); loginServerIp = Properties.Settings.Default.LoginServerIP; loginServerPort = Properties.Settings.Default.LoginServerPort; service = new LauncherServiceClient(); if (service.IsServerOn()) { Enable(); } else { Disable(); } }