using System; using System.Diagnostics; using LavishScriptAPI; using MRBot.IsxEq2.Helpers; namespace MRBot.IsxEq2.UI { /// /// This DataType includes all of the data available to ISXEQ2 that is related to Choice windows. /// public class ChoiceWindow : LavishScriptObject { #region Constructor /// /// Constructor /// /// LS Object public ChoiceWindow(LavishScriptObject copy) : base(copy) { } #endregion #region Members /// /// First Choice /// public string Choice1 { get { Trace.WriteLine(String.Format("ChoiceWindow:Choice1")); return this.GetStringFromLSO("Choice1"); } } /// /// Second Choice /// public string Choice2 { get { Trace.WriteLine(String.Format("ChoiceWindow:Choice2")); return this.GetStringFromLSO("Choice2"); } } /// /// Choice window text /// public string Text { get { Trace.WriteLine(String.Format("ChoiceWindow:Text")); return this.GetStringFromLSO("Text"); } } /// /// Returns the choice window as an EQ2Window /// public EQ2Window ToEQ2UIPage { get { Trace.WriteLine(String.Format("ChoiceWindow:ToEQ2UIPage")); return new EQ2Window(this.GetMember("ToEQ2UIPage")); } } #endregion #region Methods /// /// Selects Choice1 /// /// call success public bool DoChoice1() { Trace.WriteLine(String.Format("ChoiceWindow:DoChoice1()")); return this.ExecuteMethod("DoChoice1"); } /// /// Selects Choice2 /// /// call success public bool DoChoice2() { Trace.WriteLine(String.Format("ChoiceWindow:DoChoice2()")); return this.ExecuteMethod("DoChoice2"); } #endregion } }