private void SaveButton_Click(object sender, RoutedEventArgs e) { var ticks1 = DateTime.Now.Ticks; var ticks2 = DateTime.Now.Ticks.ToString(); var area = new Area { Name = "Test Area " + ticks1, SOATO = "17" + ticks2.Substring(ticks2.Length - 6, 6) }; _catMgr.AddArea(area); LoadAreas(); }