/Utilities/CommandUtilities.cs
C# | 18 lines | 16 code | 2 blank | 0 comment | 0 complexity | 64491e4810a924d3bb0d23f859efdaa5 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
-
- using QuickArch.ViewModel;
- using System.Drawing;
-
- namespace QuickArch.Utilities
- {
- public static class CommandUtilities
- {
- public static CommandViewModel NewCommand(string displayName, Action<object> execute, Icon icon, bool isEnabled = true)
- {
- return new CommandViewModel(displayName, new RelayCommand(execute), isEnabled, icon);
- }
- }
- }