using System;
using System.Diagnostics;
using System.Globalization;
using LavishScriptAPI;
using MRBot.IsxEq2.Helpers;
namespace MRBot.IsxEq2.UI
{
///
/// This DataType includes all of the data available to ISXEQ2 that is related to reply dialogs.
///
public class ReplyDialog : LavishScriptObject
{
#region Constructor
///
/// Constructor
///
/// LS Object
public ReplyDialog(LavishScriptObject copy) : base(copy) { }
#endregion
#region Members
///
/// Text
///
public string Text
{
get
{
Trace.WriteLine(String.Format("ReplyDialog:Text"));
return this.GetStringFromLSO("Text");
}
}
///
/// Returns the ReplyDialog as an EQ2Window
///
public EQ2Window ToEQ2UIPage
{
get
{
Trace.WriteLine(String.Format("ReplyDialog:ToEQ2UIPage"));
return new EQ2Window(this.GetMember("ToEQ2UIPage"));
}
}
#endregion
#region Methods
///
/// Selects the dialog by index.
///
/// index
/// call success
public bool Choose(int index)
{
Trace.WriteLine(String.Format("ReplyDialog:Choose({0})", index.ToString(CultureInfo.InvariantCulture)));
return this.ExecuteMethod("Choose", index.ToString(CultureInfo.InvariantCulture));
}
/// TODO:Find out if Select is Redundant
///
/// Selects the dialog by index.
///
/// index
/// call success
public bool Select(int index)
{
Trace.WriteLine(String.Format("ReplyDialog:Select({0})", index.ToString(CultureInfo.InvariantCulture)));
return this.ExecuteMethod("Select", index.ToString(CultureInfo.InvariantCulture));
}
#endregion
}
}