public void ChangeDynamicView() { if (DynamicView.GetType() == typeof(View1)) { DynamicView = _View2; } else { DynamicView = _View1; } }