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);
        }