本文整理汇总了C#中OperationResult.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# OperationResult.Equals方法的具体用法?C# OperationResult.Equals怎么用?C# OperationResult.Equals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OperationResult
的用法示例。
在下文中一共展示了OperationResult.Equals方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnInit
public void OnInit (OperationResult status)
{
if (status.Equals (OperationResult.Success)) {
var p = new Dictionary<string, string> ();
textToSpeech.Speak (toSpeak, QueueMode.Flush, p);
}
}
示例2: OnInit
public void OnInit(OperationResult status)
{
if (status.Equals (OperationResult.Success)) {
var p = new Dictionary<string,string> ();
speaker.Speak (textAFalar, QueueMode.Flush, p);
}
}
示例3: OnInit
public void OnInit (OperationResult status)
{
if (status.Equals (OperationResult.Success))
Console.WriteLine ("spoke");
else
Console.WriteLine ("was quiet");
}
示例4: OnInit
/// <summary>
/// OnInit of TTS
/// </summary>
/// <param name="status"></param>
public void OnInit(OperationResult status)
{
if (status.Equals(OperationResult.Success))
{
initialized = true;
Speak();
}
}
示例5: OnInit
public void OnInit(OperationResult status){
if (status.Equals (OperationResult.Success)) {
var p = new Dictionary<string,string> ();
speaker.SetSpeechRate (speakSpeed);
speaker.Speak (tosay, QueueMode.Flush, p);
}
}
示例6: OnInit
public void OnInit(OperationResult status)
{
if (status.Equals (OperationResult.Success))
{
var dict = new Dictionary<string,string>();
speaker.Speak(toSpeak, QueueMode.Flush, dict);
}
}
示例7: OnInit
public void OnInit (OperationResult status)
{
if (status.Equals (OperationResult.Success)) {
System.Diagnostics.Debug.WriteLine ("spoke");
var p = new Dictionary<string,string> ();
speaker.Speak (toSpeak, QueueMode.Flush, p);
} else {
System.Diagnostics.Debug.WriteLine ("was quiet");
}
}
示例8: OnInit
/// <summary>
/// Implementation for <see cref="TextToSpeech.IOnInitListener.OnInit" />.
/// </summary>
/// <param name="status">
/// The status.
/// </param>
public void OnInit(OperationResult status)
{
if (status.Equals(OperationResult.Success))
{
var p = new Dictionary<string, string>();
#pragma warning disable CS0618 // Type or member is obsolete
_speaker.Speak(_toSpeak, QueueMode.Flush, p);
#pragma warning restore CS0618 // Type or member is obsolete
}
}
示例9: OnInit
public void OnInit(OperationResult status)
{
if (status.Equals(OperationResult.Success))
{
Debug.WriteLine("speaker init");
var p = new Dictionary<string, string>();
_speaker.Speak(_toSpeak, QueueMode.Flush, p);
}
else
{
Debug.WriteLine("was quiet");
}
}
示例10: OnInit
//Nuestro metodo importante en el cual nos devolvera al momento de inicializar nuestro TTS
public void OnInit (OperationResult status)
{
//Verificamos que nuestra variable haya sido inicializada correctamente
if (status.Equals (OperationResult.Success)) {
//Asignamos el idima a utlizar en este caso seleccionamos el idioma por default del sistema
tts.SetLanguage (Java.Util.Locale.Default);
//Enviamos una notificacion de que se activo nuestro TTS correctamente
Toast.MakeText (this, "TTS Activado Correctamente", ToastLength.Long).Show ();
}
else {
//Enviamos una notificacion si no se activo nuestro TTS correctamente
Toast.MakeText (this, "Error al activar TTS", ToastLength.Long).Show ();
}
}
示例11: OnInit
/// <summary>
/// OnInit of TTS
/// </summary>
/// <param name="status"></param>
public void OnInit(OperationResult status)
{
if (status.Equals(OperationResult.Success))
{
SetOptions(textToSpeech.Engines[1].Name,false,null,1.0f,1.0f,1.0f);
SetDefaultLanguageNonLollipop();
initialized = true;
//Speak();
}
}
示例12: OnInit
/// <summary>
/// OnInit of TTS
/// </summary>
/// <param name="status"></param>
public void OnInit(OperationResult status)
{
if (status.Equals(OperationResult.Success))
{
if (Inited != null) Inited(this, EventArgs.Empty);
//if (_tts.Engines.Count == 0 && NoEngine != null) NoEngine(this, EventArgs.Empty);
}
else
{
if (InitedError != null) InitedError(this, EventArgs.Empty);
}
}