Esempio n. 1
0
 private void KeyboardLurker_DismissPressed(object sender, Winook.KeyboardMessageEventArgs e)
 {
     this.ExecuteOnRecentOffer((o) =>
     {
         o.Remove();
     });
 }
Esempio n. 2
0
 /// <summary>
 /// Handles the StillInterestedPressed event of the KeyboardLurker control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Winook.KeyboardMessageEventArgs"/> instance containing the event data.</param>
 private void KeyboardLurker_StillInterestedPressed(object sender, Winook.KeyboardMessageEventArgs e)
 {
     this.ExecuteOnRecentOffer(async(o) =>
     {
         await o.StillInterested();
     });
 }
Esempio n. 3
0
 /// <summary>
 /// Handles the TradePressed event of the KeyboardLurker control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Winook.KeyboardMessageEventArgs"/> instance containing the event data.</param>
 private void KeyboardLurker_TradePressed(object sender, Winook.KeyboardMessageEventArgs e)
 {
     this.ExecuteOnRecentOffer(async(o) =>
     {
         await o.Trade();
     });
 }
Esempio n. 4
0
 /// <summary>
 /// Handles the MainActionPressed event of the KeyboardLurker control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Winook.KeyboardMessageEventArgs"/> instance containing the event data.</param>
 private void KeyboardLurker_MainActionPressed(object sender, Winook.KeyboardMessageEventArgs e)
 {
     this.ExecuteOnRecentOffer((o) =>
     {
         Execute.OnUIThread(async() => await o.MainActionCore());
     });
 }
Esempio n. 5
0
 /// <summary>
 /// Handles the BusyPressed event of the KeyboardLurker control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Winook.KeyboardMessageEventArgs"/> instance containing the event data.</param>
 private void KeyboardLurker_BusyPressed(object sender, Winook.KeyboardMessageEventArgs e)
 {
     this.ExecuteOnRecentOffer((o) =>
     {
         o.Wait();
     });
 }
Esempio n. 6
0
 /// <summary>
 /// Handles the BuildToggled event of the KeyboardLurker control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void KeyboardLurker_OpenWikiPressed(object sender, Winook.KeyboardMessageEventArgs e)
 {
     if (this._wikiViewModel != null && this._wikiViewModel.IsActive)
     {
         this.DeactivateItem(this._wikiViewModel, true);
         this._wikiViewModel = null;
     }
     else
     {
         this._wikiViewModel = this._container.GetInstance <WikiViewModel>();
         this.ActivateItem(this._wikiViewModel);
     }
 }