コード例 #1
0
ファイル: ContentView.cs プロジェクト: pchaozhong/FlexNet
 public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, string customCommand, out bool cancelled)
 {
     cancelled = false;
     if (CommandButtonsAction != null)
     {
         NeedToValidate = true;
         var args = new CommandButtonsEventArgs(commandButtonType, this, customCommand);
         CommandButtonsAction(sender, args);
         if (args.Cancel)
         {
             cancelled = true;
         }
     }
 }
コード例 #2
0
 public CommandButtonsEventArgs(CommandButtonType buttonType, ContentView view, string customCommand)
 {
     ButtonType    = buttonType;
     ContentView   = view;
     CustomCommand = customCommand;
 }
コード例 #3
0
ファイル: ContentView.cs プロジェクト: pchaozhong/FlexNet
 public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, out bool cancelled)
 {
     OnCommandButtonsAction(sender, commandButtonType, null, out cancelled);
 }
コード例 #4
0
        public CommandButtonsEventArgs(CommandButtonType buttonType, ContentView view, string customCommand)
		{
            ButtonType = buttonType;
            ContentView = view;
            CustomCommand = customCommand;
		}
コード例 #5
0
ファイル: ContentView.cs プロジェクト: maxpavlov/FlexNet
 public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, string customCommand, out bool cancelled)
 {
     cancelled = false;
     if (CommandButtonsAction != null)
     {
         NeedToValidate = true;
         var args = new CommandButtonsEventArgs(commandButtonType, this, customCommand);
         CommandButtonsAction(sender, args);
         if (args.Cancel)
             cancelled = true;
     }
 }
コード例 #6
0
ファイル: ContentView.cs プロジェクト: maxpavlov/FlexNet
 public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, out bool cancelled)
 {
     OnCommandButtonsAction(sender, commandButtonType, null, out cancelled);
 }