private void button_Click(object sender, RoutedEventArgs e) { int latency = 0; if (int.TryParse(tbLatency.Text, NumberStyles.AllowLeadingSign, System.Globalization.CultureInfo.CurrentCulture, out latency)) { m_Client.CLIENT_SetName(tbName.Text); m_Client.config.CLIENT_SetLatency(latency); this.Close(); } }
private void ClientEditPage_OnDisappearing(object sender, EventArgs e) { m_Client.CLIENT_SetName(eName.Text); m_Client.config.CLIENT_SetLatency(int.Parse(eLatency.Text, System.Globalization.CultureInfo.CurrentCulture)); }
private void button_Click(object sender, RoutedEventArgs e) { m_Client.CLIENT_SetName(tbName.Text); m_Client.config.CLIENT_SetLatency(int.Parse(tbLatency.Text, System.Globalization.CultureInfo.CurrentCulture)); this.Close(); }