private void KeyboardLurker_DismissPressed(object sender, Winook.KeyboardMessageEventArgs e) { this.ExecuteOnRecentOffer((o) => { o.Remove(); }); }
/// <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(); }); }
/// <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(); }); }
/// <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()); }); }
/// <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(); }); }
/// <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); } }