public WebShellConfigModeView(CWebShellInfo info)
 {
     m_strUrl      = info.Url;
     m_strPassword = info.Password;
     m_strRemark   = info.Remark;
     m_guid        = info.Guid;
     m_uType       = info.Type;
     m_strEncoding = info.Encoding;
 }
示例#2
0
 public CWebShellInfo(string strUrl, string strPassword, string strRemark, Guid guid, WebShellType type, string encoding, Int64 CreateTime = 0)
 {
     m_strUrl        = strUrl;
     m_strPassword   = strPassword;
     m_strRemark     = strRemark;
     m_guid          = guid;
     m_uType         = type;
     m_strEncoding   = encoding;
     m_i64CreateTime = CreateTime;
 }
        public void SetInfo(CWebShellInfo info)
        {
            m_strUrl = info.Url;
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Url)));

            m_strPassword = info.Password;
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Password)));

            m_strRemark = info.Remark;
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Remark)));

            m_guid = info.Guid;
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Guid)));

            m_uType = info.Type;
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Type)));

            m_strEncoding = info.Encoding;
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Encoding)));
        }
示例#4
0
        public static IWebShellControl Create(WebShellType type)
        {
            IWebShellControl ret = null;

            switch (type)
            {
            case WebShellType.PHP5:
                ret = new CWebShellPHP5();
                break;

            case WebShellType.PHP7:
                break;

            case WebShellType.ASPX:
                break;

            case WebShellType.ASP:
                break;

            default:
                break;
            }
            return(ret);
        }