Beispiel #1
0
        }         // ApplySettings

        // ----------------------------------------------------------------------
        private void SettingsWindowClosing(object sender, CancelEventArgs e)
        {
            UserSettingsWindow userSettingsWindow = Current.MainWindow as UserSettingsWindow;

            if (userSettingsWindow != null)
            {
                appSettings.HostName = userSettingsWindow.HostName;
            }
        }         // SettingsWindowClosing
Beispiel #2
0
        }         // OnActivated

        // ----------------------------------------------------------------------
        private void ApplySettings()
        {
            if (settingsApplied)
            {
                return;
            }

            // window settings
            UserSettingsWindow userSettingsWindow = Current.MainWindow as UserSettingsWindow;

            if (userSettingsWindow != null)
            {
                userSettingsWindow.HostName = appSettings.HostName;
                userSettingsWindow.Closing += SettingsWindowClosing;
            }

            settingsApplied = true;
        }         // ApplySettings
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow = ((Itenso.Solutions.Community.ConfigurationWindowsDemo.UserSettingsWindow)(target));
                return;

            case 2:
                this.LayoutGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ListColumn = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:
                this.ItemsList = ((Itenso.Solutions.Community.ConfigurationWindowsDemo.SettingListBox)(target));
                return;

            case 5:
                this.AlignmentLeft = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.AlignmentCenter = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.AlignmentRight = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.WindowColorText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:

            #line 157 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonChangeColor);

            #line default
            #line hidden
                return;

            case 10:
                this.SaveAsDefaultOption = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:

            #line 177 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonResetSettings);

            #line default
            #line hidden
                return;

            case 12:

            #line 183 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonReloadSettings);

            #line default
            #line hidden
                return;

            case 13:

            #line 189 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonSaveSettings);

            #line default
            #line hidden
                return;

            case 14:
                this.HostEdit = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.UserConfigFileLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:

            #line 272 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonOpenUserConfig);

            #line default
            #line hidden
                return;

            case 17:

            #line 285 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonListView);

            #line default
            #line hidden
                return;

            case 18:

            #line 291 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonDerivedWindow);

            #line default
            #line hidden
                return;

            case 19:

            #line 297 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonXamlSettings);

            #line default
            #line hidden
                return;

            case 20:

            #line 302 "..\..\UserSettingsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClose);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }