Exemplo n.º 1
0
 private void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemplo n.º 2
0
 public override Int32 GetHashCode()
 {
     return(GameID.GetHashCode() ^
            DataID.GetHashCode() ^
            SaveTime.GetHashCode() ^
            DataName.GetHashCode() ^
            ScoreValue.GetHashCode());
 }
 private void SaveCount(object sender, object e)
 {
     if (SaveTime.AddSeconds(3) > DateTime.Now)
     {
         return;
     }
     Persistence.SaveLast(Count.ToString());
     SaveTime = DateTime.Now;
 }
Exemplo n.º 4
0
        //   Returns String which satisfies the given format of the file.

        public override string ToString()
        {
            return(String.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}" +
                                 "\t{8}\t{9}\t{10}\t{11}\t{12}\t{13}\t{14}\t{15}",
                                 firstName, middleInitial, lastName, Address1, Address2, City, State,
                                 Zip, Gender,
                                 Phone, Email, Proof,
                                 Date.Date.ToString("d"), StartTime.ToString("HH:mm:ss"),
                                 SaveTime.ToString("HH:mm:ss"), Backspace));
        }
Exemplo n.º 5
0
        private void btn_FilterByTime_Click(object sender, EventArgs e)
        {
            DateTime begin = de_begin.DateTime;
            DateTime end   = de_end.DateTime;
            DateTime SaveTime;

            for (int i = RecordTable.Rows.Count - 1; i > -1; i--)
            {
                DataRow row = RecordTable.Rows[i];
                SaveTime = DateTime.Parse(row["SaveTime"].ToString()).Date;
                if (SaveTime.CompareTo(begin.Date) >= 0 && SaveTime.CompareTo(end.Date) <= 0)
                {
                }
                else
                {
                    RecordTable.Rows.Remove(row);
                }
            }
        }