BandwidthCheckDialog.xaml の相互作用ロジック
상속: System.Windows.Window
 private void BandwidthCheckButton_Click(object sender, RoutedEventArgs args)
 {
   var dialog = new BandwidthCheckDialog();
   dialog.Owner = Window.GetWindow(this);
   dialog.ShowDialog();
   if (dialog.Result.HasValue) {
     ((SettingViewModel)this.DataContext).MaxUpstreamRate = dialog.Result.Value;
   }
 }
예제 #2
0
        private void BandwidthCheckButton_Click(object sender, RoutedEventArgs args)
        {
            var dialog = new BandwidthCheckDialog();

            dialog.Owner = Window.GetWindow(this);
            dialog.ShowDialog();
            if (dialog.Result.HasValue)
            {
                ((SettingViewModel)this.DataContext).MaxUpstreamRate = dialog.Result.Value;
            }
        }