private void TB_EleName_LostFocus(object sender, RoutedEventArgs e) { if (this.TB_EleID.IsEnabled == false) { return; } FF.CCFormSoapClient da = Glo.GetCCFormSoapClientServiceInstance(); da.ParseStringToPinyinAsync(this.TB_EleName.Text.Trim()); da.ParseStringToPinyinCompleted += new EventHandler <FF.ParseStringToPinyinCompletedEventArgs>(da_ParseStringToPinyinCompleted); }
private void TB_Name_LostFocus(object sender, RoutedEventArgs e) { if (this.TB_No.IsEnabled == false) { return; } FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance(); ff.ParseStringToPinyinAsync(this.TB_Name.Text); ff.ParseStringToPinyinCompleted += new EventHandler <FF.ParseStringToPinyinCompletedEventArgs>(ff_ParseStringToPinyinCompleted); }
private void TB_Name_LostFocus(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.TB_No.Text) == false) { return; } if (this.TB_Name.Text.Trim().Length == 0) { return; } FF.CCFormSoapClient ff = Glo.GetCCFormSoapClientServiceInstance(); ff.ParseStringToPinyinAsync(this.TB_Name.Text.Trim()); ff.ParseStringToPinyinCompleted += new EventHandler <ParseStringToPinyinCompletedEventArgs>(ff_ParseStringToPinyinCompleted); }