public ContainerDialog(AppSettings settings)
 {
     Owner = Application.Current.MainWindow;
     InitializeComponent();
     ThemeManager.ApplyThemeToWindow(this, settings.Theme);
     DataContext = new ContainerSettingsViewModel(settings.UserProfiles);
 }
 public ContainerDialog(AppSettings settings, string name, string description, bool useParentId, Guid profileId)
 {
     Owner = Application.Current.MainWindow;
     InitializeComponent();
     ThemeManager.ApplyThemeToWindow(this, settings.Theme);
     DataContext = new ContainerSettingsViewModel(settings.UserProfiles, name, description, useParentId, profileId);
 }
예제 #3
0
        public WindowContainerSettings(ContainerSettingsViewModel containerSettingsViewModel)
        {
            InitializeComponent();

            var elContainerSettings = new ElContainerSettings();

            elContainerSettings.Initialize(containerSettingsViewModel);

            MainWrapPanel.Children.Add(elContainerSettings);

            DataContext = containerSettingsViewModel;

            KeyDown += OnKeyDown;
            Closed  += Window_OnClosed;
        }
예제 #4
0
 public void Initialize(ContainerSettingsViewModel containerSettingsViewModel)
 {
     DataContext = containerSettingsViewModel;
 }