private void loadLayout(Layouts enmLayout, object[] objArgs) { if (enmLayout.Equals(BaseWindow.Layouts.Base)) { this.Content = Activator.CreateInstance(typeof(BaseLayout), objArgs); } }