コード例 #1
0
 public void GetUserProxies(Int32 UserID)
 {
     Login.Utilities.DataIO oDataIO = new Login.Utilities.DataIO();
     System.Data.DataTable dt = new System.Data.DataTable();
     oDataIO.GetUserProxies(dt, UserID, 0, "N", "Y", "Y", "Y");
     User thisUser = new User();
     foreach (System.Data.DataRow dr in dt.Rows) {
         Proxie newProxy = new Proxie("");
         newProxy.Proxy = Convert.ToInt32(dr[0]);
         thisUser.Proxies.Add(newProxy);
     }
 }
コード例 #2
0
 public void UpdateProxy(Proxie ThisProxie)
 {
     Login.Utilities.DataIO oDataIO = new Login.Utilities.DataIO();
     oDataIO.UpdateProxieDetails(ThisProxie);
 }
コード例 #3
0
 public Proxie GetProxieDetails(Int32 UserID, string ProxyDefaultID, Int32 Proxy)
 {
     Proxie thisProxy = new Proxie(ProxyDefaultID);
     Login.Utilities.DataIO oDataIO = new Login.Utilities.DataIO();
     System.Data.DataTable dt = new System.Data.DataTable();
     oDataIO.GetUserProxies(dt, UserID, Proxy, "N", "Y", "Y", "Y");
     if (dt.Rows.Count > 0){
         thisProxy.ProxyDefaultID = ProxyDefaultID;
         thisProxy.IsHidden = 'N';
         thisProxy.EditName = (Int16)dt.Rows[0]["EditName"];
         thisProxy.EditPhoto = (Int16)dt.Rows[0]["EditPhoto"];
         thisProxy.EditTitles = (Int16)dt.Rows[0]["EditTitles"];
         thisProxy.EditEmail  = (Int16)dt.Rows[0]["EditEmail"];
         thisProxy.EditAddress = (Int16)dt.Rows[0]["EditAddress"];
         thisProxy.EditEducation = (Int16)dt.Rows[0]["EditEducation"];
         thisProxy.EditAwards = (Int16)dt.Rows[0]["EditAwards"];
         thisProxy.EditNarrative = (Int16)dt.Rows[0]["EditNarrative"];
         thisProxy.EditPublications = (Int16)dt.Rows[0]["EditPublications"];
         thisProxy.EditWebsites = (Int16)dt.Rows[0]["EditWebsites"];
     }
     return thisProxy;
 }