示例#1
0
文件: Api.cs 项目: baiy/login
        public DataApi get()
        {
            string db = GetDb();
            JavaScriptSerializer js = new JavaScriptSerializer();
            DataApi lists           = js.Deserialize <DataApi>(db);

            return(lists);
        }
示例#2
0
文件: Form1.cs 项目: baiy/login
 private void form1_Load(object sender, EventArgs e)
 {
     try
     {
         SetConfig();
         Api     api = new Api();
         DataApi db  = api.get();
         SetData(db);
     }
     catch (Exception a)
     {
         MessageBox.Show(a.Message);
     }
 }
示例#3
0
文件: Form1.cs 项目: baiy/login
 private void SetData(DataApi db)
 {
     SetFtpData(db.ftp);
     SetMstscData(db.mstsc);
     SetSshData(db.ssh);
 }
示例#4
0
文件: Form1.cs 项目: baiy/login
 private void SetData(DataApi db)
 {
     SetFtpData(db.ftp);
     SetMstscData(db.mstsc);
     SetSshData(db.ssh);
 }