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;
 }
 public async Task SetInfo(CWebShellInfo info)
 {
     m_pWebShellInfo = info;
     m_pShellControl = WebShellControlFactory.Create(m_pWebShellInfo.Type);
     m_pShellControl.SetInfo(m_pWebShellInfo.Url, m_pWebShellInfo.Password, Encoding.GetEncoding(m_pWebShellInfo.Encoding), CShellTransmissionEncryptAndDecryptFactory.Create("base64"));
     try
     {
         await QueryVolumes();
     }
     catch (Exception e)
     {
         await new MessageDialog(e.Message).ShowAsync();
     }
 }
        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)));
        }
 public void SetFromData(CWebShellInfo info)
 {
     BaseInfo     = info;
     ShellAddress = info.Url;
     PassWord     = info.Password;
 }
 public ShellListGridViewModeView(string address, Int64 dateTime, CWebShellInfo info)
 {
     m_strShellAddress = address;
     m_dateCreateTime  = DateTime.FromFileTimeUtc(dateTime).ToLocalTime();
     BaseInfo          = info;
 }