private async void showJanCodeMessage(string janCode, Button button, string colName) { MessageDialog dialog = new MessageDialog("このボタンのJANは: " + janCode, "メッセージ"); dialog.Commands.Add(new UICommand("OK", cmd => { }, commandId: 0)); dialog.Commands.Add(new UICommand("改修", cmd => { Frame root = Window.Current.Content as Frame; JanBindButton janBindButton = new JanBindButton(janCode, button, colName); root.Navigate(typeof(JanReset), janBindButton); }, commandId: 1)); await dialog.ShowAsync(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { janBindButton = (JanBindButton)e.Parameter; this.tbx_restJan.Text = janBindButton.getJanCode(); }