using ryCommon;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace VSoft.Prams
{
    /// <summary>
    /// 软件信息
    /// </summary>
    public class SoftInfo
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; } = 0;
        /// <summary>
        /// id
        /// </summary>
        public int ColumnId { get; set; } = 0;
        /// <summary>
        /// 0表示运行文件,1表示执行内置命令,2表示执行脚本
        /// </summary>
        public int SoftType { get; set; } = 0;
        /// <summary>
        /// 命令ID
        /// </summary>
        public string CmdId { get; set; } = "";
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 路径
        /// </summary>
        public string Path { get; set; } = "";
        /// <summary>
        /// 绝对路径
        /// </summary>
        public string TruePath
        {
            get
            {
                return RyFiles.GetRealPath(Path);
            }
        }
        /// <summary>
        /// 运行参数
        /// </summary>
        public string RunPram { get; set; } = "";
        /// <summary>
        /// 起始路径
        /// </summary>
        public string StartPath { get; set; } = "";
        /// <summary>
        /// 文件图标
        /// </summary>
        public string IconPath { get; set; } = "";
        /// <summary>
        /// 设置
        /// </summary>
        public string SetJson { get; set; } = "";
        /// <summary>
        /// 备注
        /// </summary>
        public string Des { get; set; } = "";
        /// <summary>
        /// 文件图标
        /// </summary>
        public Image Image { get; set; } = null;
    }
    /// <summary>
    /// 栏目或分类信息
    /// </summary>
    public class ColumnInfo
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; } = 0;
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 备注
        /// </summary>
        public string Des { get; set; } = "";
    }
}
