private void cmdDelete_Click(object sender, EventArgs e) { var msg = string.Format( Properties.Resources.ConfirmDeleteDb, _database.Details.Name); var confirm = MessageBox.Show(msg, Properties.Resources.DeleteDbTitle, MessageBoxButton.OKCancel) == MessageBoxResult.OK; if (!confirm) { return; } _database.Delete(); TilesManager.Deleted(_database); this.NavigateTo <MainPage>(); }