public bool save() { if (this.name == "" || this.note == "") { return false; } else { clean(); try { Assemblies.File file = new Assemblies.File(); int val = file.Create(1, directory + name); val = file.Create(0, directory + name + "\\note.reminder"); val = file.Create(0, directory + name + "\\time.reminder"); val = file.Create(0, directory + name + "\\date.reminder"); file.WriteData(directory + name + "\\note.reminder", note); file.WriteData(directory + name + "\\time.reminder", time.ToString()); file.WriteData(directory + name + "\\date.reminder", date.ToString()); return true; } catch { return false; } } }
public bool save() { if (this.name == "" || this.note == "") { return false; } else { clean(); Assemblies.File file = new Assemblies.File(); int val = file.Create(0, directory + name + ".quicknote"); file.WriteData(directory + name + ".quicknote", note); return true; } }