private async void AddTableType(object obj) { TableRepo.UndoChanges(Tables.ToList()); TableTypeRepo.UndoChanges(TableTypes.ToList()); TableTypeRepo.Add(TableType); UpdateTableTypeList(); await DialogOperations.DisplayInformationMessage("Masa Tipi Eklendi", "TableDialog"); }
private async void RemoveTable(object obj) { var dialogResult = await DialogOperations.DisplayQuestionDialog("Silmek istediğinize emin misiniz?", "Sil", "TableDialog"); if (dialogResult) { TableRepo.Remove(SelectedTable); UpdateTableList(); SelectedTable = Tables.Last(); await DialogOperations.DisplayInformationMessage("Masa Silindi", "TableDialog"); } }
private async void AddTable(object obj) { TableRepo.UndoChanges(Tables.ToList()); TableTypeRepo.UndoChanges(TableTypes.ToList()); SelectedTable = TableRepo.Add(new Masa() { Ad = SelectedTable.Ad, MasaTipiKod = SelectedTable.MasaTipiKod, AcikKapali = false }); UpdateTableList(); await DialogOperations.DisplayInformationMessage("Masa Eklendi", "TableDialog"); }
private async void UpdateTable(object obj) { TableRepo.SaveChanges(); UpdateTableList(); await DialogOperations.DisplayInformationMessage("Masa Güncellendi", "TableDialog"); }