private void btnResetAll_Click(object sender, RoutedEventArgs e) { if (MsgBoxYesNo.ShowBox( this, DI.Wrapper.GetText(MsgCode.Warning), DI.Wrapper.GetText(MsgCode.Continue), true) == MsgBoxYesNo.MsgBoxResult.Yes) { DI.Wrapper.RebuildAllData(); } }
private void BT_PairInfoRequestedHandler(object sender, BT_PairingInfoDataModel info) { this.log.InfoEntry("BT_PairInfoRequestedHandler"); this.Dispatcher.Invoke(() => { this.gridWait.Collapse(); if (info.IsPinRequested) { var result = MsgBoxEnterText.ShowBox(this, info.RequestTitle, info.RequestMsg); info.PIN = result.Text; info.HasUserConfirmed = (result.Result == MsgBoxEnterText.MsgBoxTextInputResult.OK); } else { MsgBoxYesNo.MsgBoxResult result2 = MsgBoxYesNo.ShowBox(this, info.RequestMsg, info.RequestMsg); info.HasUserConfirmed = (result2 == MsgBoxYesNo.MsgBoxResult.Yes); } }); }