예제 #1
0
        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();
            }
        }
예제 #2
0
 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));
 }
예제 #3
0
 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();
 }