Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private static void OnDataUpdated(NoteDataUpdateEventArgs e)
 {
     DataUpdated?.Invoke(null, e);
 }
Exemplo n.º 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
 }