• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Input.ExecutedRoutedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Input.ExecutedRoutedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ExecutedRoutedEventArgs类的具体用法?C# ExecutedRoutedEventArgs怎么用?C# ExecutedRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ExecutedRoutedEventArgs类属于System.Windows.Input命名空间,在下文中一共展示了ExecutedRoutedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CommandBinding_Executed_Ok

 /// <summary>
 /// 确定
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CommandBinding_Executed_Ok(object sender, ExecutedRoutedEventArgs e)
 {
     if (this.ComitEvent != null)
     {
         ComitEvent.Invoke();
     }
 }
开发者ID:onlyversion,项目名称:WeiXinTraderSystem,代码行数:12,代码来源:DealerAccountInfoWindow.xaml.cs


示例2: dataGridKinds_PreviewExecuted

 private void dataGridKinds_PreviewExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     if (e.Command == DataGrid.DeleteCommand)
     {
         MessageBoxButton button = MessageBoxButton.YesNo;
         if (MessageBox.Show("Czy napewno chcesz usunąć?", "Usuwanie", button) == MessageBoxResult.Yes)
         {
             try
             {
                 KindPresenter kindPresenter = (KindPresenter)this.DataContext;
                 var kind = (Kind)this.dataGridKinds.SelectedItem;
                 if (kind != null)
                 {
                     kindPresenter.DeleteKind((Kind)kind);
                     e.Handled = false;
                 }
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.Message);
                 e.Handled = true;
             }
         }
         else
         {
             e.Handled = true;
         }
     }
 }
开发者ID:pawelsorsa,项目名称:Fixed-Assets-System,代码行数:29,代码来源:KindView.xaml.cs


示例3: CompareCommits_Executed

        private void CompareCommits_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            try
            {
                this.details.RenderTransform.SetValue(TranslateTransform.XProperty, this.ActualWidth);
                this.details.Visibility = Visibility.Visible;
                var animationDuration = TimeSpan.FromSeconds(.5);
                var animation = new DoubleAnimation(0, new Duration(animationDuration));
                animation.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseOut };

                loading.Visibility = Visibility.Visible;
                animation.Completed += (_, x) =>
                {
                    var ids = e.Parameter as string[];
                    this.details.Show(this.gitViewModel.Tracker, ids[0], ids[1]);
                    loading.Visibility = Visibility.Collapsed;
                };

                this.details.RenderTransform.BeginAnimation(TranslateTransform.XProperty, animation);
            }
            catch (Exception ex)
            {
                Log.WriteLine("MainWindow.CompareCommits_Executed {0}", ex.ToString());
            }
        }
开发者ID:jasondeering,项目名称:Git-Source-Control-Provider,代码行数:25,代码来源:MainWindow.xaml.cs


示例4: ExecutedOpenLogDirectory

		private void ExecutedOpenLogDirectory(object sender, ExecutedRoutedEventArgs e)
		{
			var fileListener = ConfigManager.GetService<LogManager>().Listeners.OfType<FileLogListener>().FirstOrDefault();

			if (fileListener != null)
				Process.Start(fileListener.LogDirectory);
		}
开发者ID:reddream,项目名称:StockSharp,代码行数:7,代码来源:LogButton.xaml.cs


示例5: AddUser_Executed

 private void AddUser_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     this.userTask.save(this.user);
     e.Handled = true;
     Window currentForm = this;
     currentForm.Close();
 }
开发者ID:wolverine169,项目名称:BikeWareHouse,代码行数:7,代码来源:AddUserWindow.xaml.cs


示例6: ListEditExecuted

 protected override void ListEditExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     var id = (int) e.Parameter;
     var deliveryType = ((ForeignDeliveryListVM) VM).GetDeliveryType(id);
     var p = new ForeignDeliveryPoolDetail(PageMode.EditMode, deliveryType, id);
     RedirectTo(p);
 }
开发者ID:jesusblessf6,项目名称:senlan2,代码行数:7,代码来源:ForeignDeliveryPoolList.xaml.cs


示例7: CommandBinding_Executed_Delete

 private void CommandBinding_Executed_Delete(object sender, ExecutedRoutedEventArgs e)
 {
     ManagementViewModel vm = DataContext as ManagementViewModel;
     ExperienceInformation exp = (e.OriginalSource as DataGridRow).DataContext as ExperienceInformation;
     if( vm.DelExperience(exp.Id))
         Query();
 }
开发者ID:onlyversion,项目名称:WeiXinTraderSystem,代码行数:7,代码来源:ExperienceControl.xaml.cs


示例8: CommandBinding_Executed_ModifyPassword

        private void CommandBinding_Executed_ModifyPassword(object sender, ExecutedRoutedEventArgs e)
        {
            ManagementViewModel vm = DataContext as ManagementViewModel;

            vm.ModifyPassword();
           
        }
开发者ID:onlyversion,项目名称:WeiXinTraderSystem,代码行数:7,代码来源:MainWindow.xaml.cs


示例9: ExecuteStartVoice

 private void ExecuteStartVoice(object sender, ExecutedRoutedEventArgs e)
 {
     _isAnyVoiceChatActive = true;
     this.IsChatting = true;
     if (App.Settings.Current.Voice.UseStun)
     {
         var stun = new StunUdpClient(App.Settings.Current.Voice.StunServer, App.Settings.Current.Voice.AltStunServer);
         stun.BeginGetClient((ar) =>
         {
             UdpClient client = null;
             try
             {
                 client = stun.EndGetClient(ar, out _publicEndPoint);
             }
             catch (StunException ex)
             {
                 System.Diagnostics.Debug.WriteLine("STUN error: " + ex.Message);
             }
             this.Dispatcher.BeginInvoke((Action)(() => this.Start(client)));
         });
     }
     else
     {
         this.Start();
     }
 }
开发者ID:yjh0502,项目名称:Floe,代码行数:26,代码来源:VoiceControl_Commands.cs


示例10: NewGameSinglePlayerCommand_Executed

 private void NewGameSinglePlayerCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     
     gameController = new SinglePlayerGameController(gameGrid, gameOptions.SelectedIconSet);
     gameController.StartGame();
     
 }
开发者ID:Nebiyat93,项目名称:Projekt-GUI-,代码行数:7,代码来源:MainWindow.xaml.cs


示例11: WebcamRecorder_Executed

        private void WebcamRecorder_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var webcam = new Webcam();
            Hide();

            var result = webcam.ShowDialog();

            if (result.HasValue && result.Value)
            {
                // If Close
                Environment.Exit(0);
            }
            else if (result.HasValue)
            {
                #region If Backbutton or Stop Clicked

                if (webcam.ExitArg == ExitAction.Recorded)
                {
                    var editor = new Editor { ListFrames = webcam.ListFrames };
                    GenericShowDialog(editor);
                    return;
                }

                Show();

                #endregion
            }
        }
开发者ID:koen24,项目名称:screentogif,代码行数:28,代码来源:Startup.xaml.cs


示例12: ExecutedAddStrategy

		private void ExecutedAddStrategy(object sender, ExecutedRoutedEventArgs e)
		{
			if (SelectedStrategy != null)
				new CloneStrategyCommand(SelectedStrategy).SyncProcess(this);
			else
				new AddStrategyCommand(SelectedStrategyInfo, SessionType.Battle).SyncProcess(this);
		}
开发者ID:RakotVT,项目名称:StockSharp,代码行数:7,代码来源:TerminalTab.xaml.cs


示例13: CommandBindingPreviousPage

 private void CommandBindingPreviousPage(object sender, ExecutedRoutedEventArgs e)
 {
     if (NavigationService != null)
     {
         NavigationService.Navigate(new Uri(@"Pages\Step12.xaml", UriKind.Relative));
     }
 }
开发者ID:Dmdv,项目名称:MeltoxygenCalculator,代码行数:7,代码来源:Step13.xaml.cs


示例14: Close_Executed

        private void Close_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            // Configure the message box to be displayed
            string messageBoxText = "你确定要退出?";
            string caption = "提示框";
            MessageBoxButton button = MessageBoxButton.YesNoCancel;
            MessageBoxImage icon = MessageBoxImage.Warning;

            // Display message box
            MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button, icon);

            // Process message box results
            switch (result)
            {
                case MessageBoxResult.Yes:
                    // User pressed Yes button
                    // ...
                    this.Close();
                    break;
                case MessageBoxResult.No:
                    // User pressed No button
                    // ...
                    break;
                case MessageBoxResult.Cancel:
                    // User pressed Cancel button
                    // ...
                    break;
            }
        }
开发者ID:haozhouxu,项目名称:Jewelry,代码行数:29,代码来源:Add.xaml.cs


示例15: SaveCommandBinding_Executed

 void SaveCommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     if (MySQLHandler.JuniorSubjectSelection.Default.saveChanges())
         MessageBox.Show("Saved");
     else
         MessageBox.Show("Not Saved");
 }
开发者ID:GrayJumba,项目名称:Onion,代码行数:7,代码来源:JuniorSubjectSelection.xaml.cs


示例16: ExecutedRemove

		private void ExecutedRemove(object sender, ExecutedRoutedEventArgs e)
		{
			var item = SelectedItem;

			Adapter.Portfolios.Remove(item.Item1);
			_items.Remove(item);
		}
开发者ID:vikewoods,项目名称:StockSharp,代码行数:7,代码来源:PortfolioMessageAdaptersWindow.xaml.cs


示例17: NewCommand

 private void NewCommand(object sender, ExecutedRoutedEventArgs e)
 {
     var dlog = new NewDocument
     {
         Owner = this
     };
     var result = dlog.ShowDialog();
     if (!result.HasValue || !result.Value)
     {
         return;
     }
     var bmp = new WriteableBitmap(
         dlog.ViewModel.Width,
         dlog.ViewModel.Height,
         96,
         96,
         PixelFormats.Bgr32,
         null);
     _picture = new Picture(dlog.ViewModel.Name, bmp);
     Title = _picture.Name;
     ViewModel.Document = new ReversibleDocument<IPicture>(_picture);
     ViewModel.AccessPolicy = new PictureAccessPolicy(_picture);
     _image.Source = bmp;
     _image.Stretch = Stretch.None;
     RenderOptions.SetBitmapScalingMode(_image, BitmapScalingMode.NearestNeighbor);
     RenderOptions.SetEdgeMode(_image, EdgeMode.Aliased);
 }
开发者ID:julien-lebot,项目名称:photoshop,代码行数:27,代码来源:MainWindow.xaml.cs


示例18: CommandBinding_PlayEpisode

        private void CommandBinding_PlayEpisode(object sender, ExecutedRoutedEventArgs e)
        {
            Window parentWindow = Window.GetWindow(this);

            try
            {
                AnimeEpisodeVM ep = this.DataContext as AnimeEpisodeVM;
                if (ep.FilesForEpisode.Count > 0)
                {
                    bool force = true;
                    if (MainWindow.videoHandler.DefaultPlayer.Player.ToString() !=
                        Enum.GetName(typeof(VideoPlayer), VideoPlayer.WindowsDefault))
                    {
                        if (ep.FilesForEpisode[0].VideoLocal_ResumePosition > 0)
                        {
                            AskResumeVideo ask = new AskResumeVideo(ep.FilesForEpisode[0].VideoLocal_ResumePosition);
                            ask.Owner = Window.GetWindow(this);
                            if (ask.ShowDialog() == true)
                                force = false;
                        }
                    }
                    MainWindow.videoHandler.PlayVideo(ep.FilesForEpisode[0], force);
                }
            }
            catch (Exception ex)
            {
                Utils.ShowErrorMessage(ex);
            }
        }
开发者ID:ElementalCrisis,项目名称:jmmclient,代码行数:29,代码来源:PlayNextEpisodeControlV2.xaml.cs


示例19: PrintDocument

        /// <summary>
        /// Executes the collapse all folds command (which folds all text foldings but the first).
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void PrintDocument(object sender, ExecutedRoutedEventArgs e)
        {
            EdiTextEditor edi = sender as EdiTextEditor;

              if (edi == null)
            return;

              string filename = null;
              try
              {
            if (e != null)
            {
              if (e.Parameter != null)
              {
            filename = e.Parameter as string;

            if (filename != null)
            {
              int MaxLen = 52;

              // Work with elipses if string is too long
              if (filename.Length > (MaxLen + 8))
                filename = filename.Substring(0, 5) + "..." + filename.Substring((filename.Length - MaxLen), MaxLen);
            }
              }
            }
              }
              catch
              {
              }

              edi.PrintPreviewDocument(filename);
        }
开发者ID:joazlazer,项目名称:ModdingStudio,代码行数:38,代码来源:EditTextEditor_Printing.cs


示例20: OnExecute

        static void OnExecute(object sender, ExecutedRoutedEventArgs e)
        {
            var wbView = Helper.FindChild<WorkbookView>(sender as DependencyObject);
            if (wbView == null) return;


            // NOTE: Must acquire a workbook set lock.
            wbView.GetLock();

            try
            {
                var param = e.Parameter as string;
                if (param == "Top")
                    wbView.RangeSelection.VerticalAlignment = SpreadsheetGear.VAlign.Top;
                else if (param == "Center")
                    wbView.RangeSelection.VerticalAlignment = SpreadsheetGear.VAlign.Center;
                else if (param == "Bottom")
                    wbView.RangeSelection.VerticalAlignment = SpreadsheetGear.VAlign.Bottom;
                else
                    wbView.RangeSelection.VerticalAlignment = SpreadsheetGear.VAlign.Bottom;

            }
            catch { }
            finally
            {
                // NOTE: Must release the workbook set lock
                wbView.ReleaseLock();
            }
        }
开发者ID:matthewdai,项目名称:mylib,代码行数:29,代码来源:Alignment.cs



注:本文中的System.Windows.Input.ExecutedRoutedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Input.InputEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Input.DelegateCommand类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap