public static void emitNoteUpdate(string operation, string formation, string comment) { NoteDataUpdateEventArgs args = new NoteDataUpdateEventArgs(); args.Operation = operation; args.Formation = formation; args.Comment = comment; OnDataUpdated(args); }
private static void OnDataUpdated(NoteDataUpdateEventArgs e) { DataUpdated?.Invoke(null, e); }
private async void onDataUpdate(object sender, NoteDataUpdateEventArgs e) { this.adapter.NotifyDataSetChanged(); await updateDataToFile(e.Operation, e.Formation, e.Comment);//add settings to turn automatic saving on/off }