/// <summary> /// Returns true if ReleaseEnvironmentInfo instances are equal /// </summary> /// <param name="other">Instance of ReleaseEnvironmentInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(ReleaseEnvironmentInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Version == other.Version || Version != null && Version.Equals(other.Version) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( Who == other.Who || Who != null && Who.Equals(other.Who) ) && ( When == other.When || When != null && When.Equals(other.When) )); }
protected bool IsRowModified(GridViewRow r) { int ID; //int SignupTotalid; string Name; string IDnumber; string Birthday; string Old; string Who; string Bigbus; string Eat; string PS; ID = Convert.ToInt32(GridView3.DataKeys[r.RowIndex].Value); //SignupTotalid = int.Parse(((Label)r.FindControl("SignupTotalid")).Text); Name = ((TextBox)r.FindControl("Name")).Text; IDnumber = ((TextBox)r.FindControl("IDnumber")).Text; Birthday = ((TextBox)r.FindControl("Birthday")).Text; Old = ((TextBox)r.FindControl("Old")).Text; Who = ((TextBox)r.FindControl("Who")).Text; Bigbus = ((TextBox)r.FindControl("Bigbus")).Text; Eat = ((TextBox)r.FindControl("Eat")).Text; PS = ((TextBox)r.FindControl("PS")).Text; DataRow row = originalDataTable.Select(String.Format("ID = {0}", ID))[0]; //if (!SignupTotalid.Equals(row["SignupTotalid"].ToString())) { return true; } if (!Name.Equals(row["Name"].ToString())) { return(true); } if (!IDnumber.Equals(row["IDnumber"].ToString())) { return(true); } if (!Birthday.Equals(row["Birthday"].ToString())) { return(true); } if (!Old.Equals(row["Old"].ToString())) { return(true); } if (!Who.Equals(row["Who"].ToString())) { return(true); } if (!Bigbus.Equals(row["Bigbus"].ToString())) { return(true); } if (!Eat.Equals(row["Eat"].ToString())) { return(true); } if (!PS.Equals(row["PS"].ToString())) { return(true); } return(false); }