static void Main(string[] args) { General g = new General(); Console.WriteLine("__________________________________"); g.HelloWorld(); //Console.WriteLine("__________________________________"); //g.GetUserInput(); Console.WriteLine("__________________________________"); g.TestStrings(); Console.WriteLine("__________________________________"); g.TestArrays(); Console.WriteLine("__________________________________"); g.Variables(); Console.WriteLine("__________________________________"); Student s = new Student(); s.Name = "Antonio"; s.Age = 20; Console.WriteLine(s.AsString()); Console.WriteLine("__________________________________"); //using static polymorphism s.print(5); s.print(123.45); Console.WriteLine("__________________________________"); //dynamic polymorphism Shape sh = new Rectangle(10, 20); Console.WriteLine("-> Area={0}", sh.Area()); Console.WriteLine("__________________________________"); //interfaces TextBox tb = new TextBox(); IDelete iDel = tb; iDel.Delete(); Car c = new Car(); iDel = c; iDel.Delete(); }
public void Delete(TEntity entity) { if (this.Confirm(message)) { decoratedCrud.Delete(entity); } }
public void Delete(TEntity entity) { decorated.Delete(entity); var entityDeleted = new EntityDeletedEvent <TEntity>(entity); eventPublisher.Publish(entityDeleted); }
public void Delete() { if (!_entity.IsFirstRun()) { _outputDeleter.Delete(DetermineDeletes()); } }
public void Delete() { if (_context.Process.Mode != "init") { _outputDeleter.Delete(DetermineDeletes()); } }
public void Delete <T>(object id) { var item = getter.GetById <T>(id); nextDelete.Delete <T>(id); publisher.PublishDelete(item); }
public void Delete() { if (!_context.Entity.IsFirstRun) { _outputDeleter.Delete(DetermineDeletes()); } }
public void Delete(TEntity entity) { if (userInteraction.Confirm("Are you shure you wnt to delete this entity?")) { decoratedDelete.Delete(entity); } }
public void Delete(int key) { if (ConfirmDelete(key)) { _deleteImpl.Delete(key); } }
public void Delete(TEntity entity) { if (this.userInteraction.Confirm("Are you sure you want to delete de entry ?")) { decoratedCrud.Delete(entity); } }
/// <summary> /// Delete entity. /// </summary> /// <param name="id">Identifier entity to delete.</param> public void Delete(int id) { if (_deleter == null) { _deleter = GetRepositoryFactory().CreateDeleter(); } _deleter.Delete(id); }
public void DeletePersistancyTest() { Delete.Delete("Tasks", 232); int myValue = 42; int realValue = CollectionsClass.LoadToDo().Count; Assert.AreEqual(myValue, realValue); //Passed }
public void Delete(TEntity entity) { Console.WriteLine("Are you sure you want to delete the entity?(y/N)"); var keyInfo = Console.ReadKey(); if (keyInfo.Key == ConsoleKey.Y) { decoratedCrud.Delete(entity); } }
public void RemoveNoteTest() { NoteVm.SelectedNote.NotesId = 34; Delete.Delete("Notes", NoteVm.SelectedNote.NotesId); int myValue = 4; int realValue = Collection.LoadNotes().Count; Assert.AreEqual(myValue, realValue); //passed }
public void Delete(TEntity entity) { Console.WriteLine("Are you sure you want to delete items"); var keyInfo = Console.ReadKey(); if (keyInfo.Key == ConsoleKey.Y) { using (var transaction = new TransactionScope()) { decoratedDeleteOperation.Delete(entity); transaction.Complete(); } } }
public async void RemoveNote() { if (_noteVm.SelectedNote.NotesId != 0) { await _deleteNote.Delete("Notes", _noteVm.SelectedNote.NotesId); FrameNavigateClass _frame = new FrameNavigateClass(); _frame.ActivateFrameNavigation(typeof(MenuPage)); MessageDialog msg = new MessageDialog("Note deleted!"); await msg.ShowAsync(); } else { MessageDialog msg = new MessageDialog("Please select the note."); await msg.ShowAsync(); } }
public async void DeleteTask(int key) { if (_deleteVm.SelectedItem != null) { await _delete.Delete("Tasks", key); _frame.ActivateFrameNavigation(typeof(MenuPage)); var msg = new MessageDialog("Task deleted"); await msg.ShowAsync(); } else { var msg = new MessageDialog("Please select the task"); await msg.ShowAsync(); } }
public void Delete(int key) { _delete.Delete(key); }
public void DeleteItem(Item item) { deleter.Delete(item); Console.WriteLine("DeleteItem: Delete item of " + item.product); }
public void Delete(TEntity entity) { deleter.Delete(entity); }
public void DeleteOrder(Item itm) { deleter.Delete(itm); Console.WriteLine("DeleteOrder: Delete item of " + itm.product); }
public void DeleteEntity(TEntity entity) { deleter.Delete(entity); Console.WriteLine("DeleteEntity: Delete entity"); }
public void DeleteOrder(Item order) { deleter.Delete(order); Console.WriteLine("DeleteOrder: Delete order of " + order.product); }
public void RemoveUser(string userId) { _userRemover.Delete(userId); }
public void Delete <T>(object id) { deleter.Delete <T>(id); }
public void DeleteOrder(Order order) { deleter.Delete(order); }
public void Execute(object parameter) { _deleteTarget.Delete(_viewModel); }
public void DeleteOrder(Order order) { orderDelete.Delete(order); }