private void StateChanged(ChangedStateFields filed, object value) { switch (filed) { case ChangedStateFields.NavigationPanel: { NavigateionPanelState = (bool)value; } break; } ; }
public void ChangeState(ChangedStateFields filed, object value) { SetObeserversStateChanged(); switch (filed) { case ChangedStateFields.NavigationPanel: { navigationPanel.IsOpened = (bool)value; } break; case ChangedStateFields.WindowSize: { var size = value as Point?; WindowSize = size.Value; CurrentWindowSize = ResizeHelper.GetSizeType(size.Value.Y); } break; } }