/// <summary> /// Refreshes the Deck assocaited with the current Layout (and fires the LayoutLoaded event) /// </summary> public void InitializeActiveLayout() { if (null != ActiveLayout) { ActiveDeck = new Deck(); ActiveDeck.SetAndLoadLayout(ActiveLayout, false); } LayoutLoaded?.Invoke(this, new LayoutEventArgs(ActiveLayout, ActiveDeck)); }
private bool CanLoadLayout(object parameter) => /*((App)Application.Current).*/ LayoutLoaded.CanLoadLayout();