예제 #1
0
        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);
        }
예제 #2
0
 private static void OnDataUpdated(NoteDataUpdateEventArgs e)
 {
     DataUpdated?.Invoke(null, e);
 }
예제 #3
0
 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
 }