TurtleZenTaoLib.DbManage.editWebsiteInfo C# (CSharp) Метод

editWebsiteInfo() публичный Метод

编辑站点记录
public editWebsiteInfo ( int index, string url, string user, string pass, string websiteName ) : bool
index int
url string
user string
pass string
websiteName string
Результат bool
        public bool editWebsiteInfo(int index, string url, string user, string pass, string websiteName)
        {
            rows[index] = url + "\t" + user + "\t" + pass + "\t" + websiteName;
            save();
            return true;
        }

Usage Example

Пример #1
0
        /// <summary>
        /// 网站编辑结果展示
        /// </summary>
        /// <param name="index"></param>
        /// <param name="siteUrl"></param>
        /// <param name="username"></param>
        /// <param name="password"></param>
        public void editWebSite(int index, string siteUrl, string username, string password, string websiteName)
        {
            siteListView.BeginUpdate();
            ListViewItem item = siteListView.Items[index];

            item.SubItems[1].Text = websiteName;
            item.SubItems[2].Text = siteUrl;
            item.SubItems[3].Text = username;
            item.SubItems[4].Text = "******";

            siteListView.EndUpdate();

            dbManage.editWebsiteInfo(index, siteUrl, username, password, websiteName);
        }