public void AddOtherInformations(MachineInformation machineInformation) { if (otherInformations.Count <= 0 || machineInformation == null && machineInformation.Id < 0) { return; } MySQLDataAccess.AddOtherInformations(machineInformation, OtherInformations.ToList(), OtherInformationDeleted); OtherInformationDeleted = new List <OtherInformation>(); }
private void AddOtherInformationsDefault() { if (otherInformations.Count == 0) { OtherInformations.Add(new OtherInformation("Infomation 1")); OtherInformations.Add(new OtherInformation("Infomation 2")); OtherInformations.Add(new OtherInformation("Infomation 3")); OtherInformations.Add(new OtherInformation("Infomation 4")); } }