private void OnChangePort(object sender, RoutedEventArgs e) { laucherSettings.SavePort(Int32.Parse(Port.Text)); if (!ErrorHandler.isError(102)) { serverSettings.SetServerPort(Port.Text); } }