Beispiel #1
0
        /// <summary>
        /// Determines whether [is attach option valid] [the specified instance].
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <returns><c>true</c> if [is attach option valid] [the specified instance]; otherwise, <c>false</c>.</returns>
        public static bool IsAttachOptionValid(this AttachmentOptionVm instance)
        {
            var retval = false;

            retval = instance != null && (!string.IsNullOrEmpty(instance.AttachFlag) && instance.MilliSeconds > 0);

            return(retval);
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonCommand" /> class.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="option">The option.</param>
 /// <param name="canExecute">if set to <c>true</c> [can execute].</param>
 public ButtonCommand(Action <object> action, AttachmentOptionVm option, bool canExecute)
 {
     this.option        = option;
     this.actionWithArg = action;
     this.canExecute    = canExecute;
 }