Beispiel #1
0
 public static ObjectList<Session> FindBy(Session session)
 {
     return Mappers.SessionMapper.FindBy(session);
 }
Beispiel #2
0
 private void btnFindSessions_Click(object sender, System.EventArgs e)
 {
     Session session = new Session();
     if (this.cbArmName.get_Text() != string.Empty)
     {
         session.ArmName = this.cbArmName.get_Text();
     }
     if (this.cbHostname.get_Text() != string.Empty)
     {
         session.Host = this.cbHostname.get_Text();
     }
     if (this.cbIpAddress.get_Text() != string.Empty)
     {
         session.Ip = this.cbIpAddress.get_Text();
     }
     if (this.cbUsername.get_Text() != string.Empty)
     {
         session.Name = this.cbUsername.get_Text();
     }
     if (this.dtpFromDate.get_Enabled())
     {
         session.FromDate = this.dtpFromDate.Value;
     }
     if (this.dtpToDate.get_Enabled())
     {
         session.ToDate = this.dtpToDate.Value;
     }
     this.bsSessionsView.set_DataSource(Session.FindBy(session));
 }