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); }
public void AlertUpdated(MyAppliedChangeEventArgs args) { MessageBox.Show("-- Applied UPDATE for file " + args.OldFilePath); }
public void AlertRenamed(MyAppliedChangeEventArgs args) { MessageBox.Show("-- Applied RENAME for file " + args.OldFilePath + " as " + args.NewFilePath); }
public void AlertDeleted(MyAppliedChangeEventArgs args) { MessageBox.Show("-- Applied DELETE for file " + args.OldFilePath); }
public void AlertCreated(MyAppliedChangeEventArgs args) { MessageBox.Show("-- Applied CREATE for file " + args.NewFilePath); }
public void AlertUpdated(MyAppliedChangeEventArgs args) { Console.WriteLine("-- Applied UPDATE for file " + args.OldFilePath); }
public void AlertRenamed(MyAppliedChangeEventArgs args) { Console.WriteLine("-- Applied RENAME for file " + args.OldFilePath + " as " + args.NewFilePath); }
public void AlertDeleted(MyAppliedChangeEventArgs args) { Console.WriteLine("-- Applied DELETE for file " + args.OldFilePath); }
public void AlertCreated(MyAppliedChangeEventArgs args) { Console.WriteLine("-- Applied CREATE for file " + args.NewFilePath); }