Example #1
0
 public void OnAppliedChange(object sender, MyAppliedChangeEventArgs args)
 {
     switch (args.ChangeType)
     {
         case ChangeType.Create:
             _Interactions.AlertCreated(args);
             break;
         case ChangeType.Delete:
             _Interactions.AlertDeleted(args);
             break;
         case ChangeType.Update:
             _Interactions.AlertUpdated(args);
             break;
         case ChangeType.Rename:
             _Interactions.AlertRenamed(args);
             break;
     }
 }
 public void AlertUpdated(MyAppliedChangeEventArgs args)
 {
     ChangeMade = args.ChangeType;
 }
        protected override void Context()
        {
            var fileSync = new FakeFileSync();
            Gui = new TestInteractionContext();

            BackupRunner = new RunBackup(fileSync, Gui, null, null);

            var appliedChangeEventArgs = new MyAppliedChangeEventArgs();

            BackupRunner.OnAppliedChange(null, appliedChangeEventArgs);
        }
Example #4
0
 public void AlertUpdated(MyAppliedChangeEventArgs args)
 {
     MessageBox.Show("-- Applied UPDATE for file " + args.OldFilePath);
 }
Example #5
0
 public void AlertRenamed(MyAppliedChangeEventArgs args)
 {
     MessageBox.Show("-- Applied RENAME for file " + args.OldFilePath +
                     " as " + args.NewFilePath);
 }
Example #6
0
 public void AlertDeleted(MyAppliedChangeEventArgs args)
 {
     MessageBox.Show("-- Applied DELETE for file " + args.OldFilePath);
 }
Example #7
0
 public void AlertCreated(MyAppliedChangeEventArgs args)
 {
     MessageBox.Show("-- Applied CREATE for file " + args.NewFilePath);
 }
Example #8
0
 public void AlertUpdated(MyAppliedChangeEventArgs args)
 {
     Console.WriteLine("-- Applied UPDATE for file " + args.OldFilePath);
 }
Example #9
0
 public void AlertRenamed(MyAppliedChangeEventArgs args)
 {
     Console.WriteLine("-- Applied RENAME for file " + args.OldFilePath +
                       " as " + args.NewFilePath);
 }
Example #10
0
 public void AlertDeleted(MyAppliedChangeEventArgs args)
 {
     Console.WriteLine("-- Applied DELETE for file " + args.OldFilePath);
 }
Example #11
0
 public void AlertCreated(MyAppliedChangeEventArgs args)
 {
     Console.WriteLine("-- Applied CREATE for file " + args.NewFilePath);
 }