/// <summary>
    /// Edit this command.
    /// </summary>
    /// <param name="parent">The parent window.</param>
    /// <returns><c>true</c> if the command was modified; otherwise <c>false</c>.</returns>
    public override bool Edit(IWin32Window parent)
    {
      EditVariablesFile edit = new EditVariablesFile(Parameters[0]);
      if (edit.ShowDialog(parent) == DialogResult.OK)
      {
        Parameters[0] = edit.FileName;
        return true;
      }

      return false;
    }
예제 #2
0
        /// <summary>
        /// Edit this command.
        /// </summary>
        /// <param name="parent">The parent window.</param>
        /// <returns><c>true</c> if the command was modified; otherwise <c>false</c>.</returns>
        public override bool Edit(IWin32Window parent)
        {
            EditVariablesFile edit = new EditVariablesFile(Parameters[0]);

            if (edit.ShowDialog(parent) == DialogResult.OK)
            {
                Parameters[0] = edit.FileName;
                return(true);
            }

            return(false);
        }