Exemple #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="settings"></param>
        public ConnectionSettings_UI(ConnectionSettings settings, bool setUiEnable, ApplicationSettings appSettings, Point position)
        {
            // Store the Starting Position to a local Variable
            windowStartPosistion = position;

            // Clone the Settings Object. becouse We are gone to change the Settings withe the interfacing of the users..
            userSettings        = (ConnectionSettings)ObjectCopier.Clone(settings);
            applicationSettings = (ApplicationSettings)ObjectCopier.Clone(appSettings);

            InitializeComponent();

            singleConnectionPage    = new settingsPageSingleConnection(userSettings.connection1, applicationSettings.expertModeIsActive);
            connectyInTheMiddlepage = new settingsPageConnectyInTheMiddle(userSettings, applicationSettings.expertModeIsActive);

            //Check the Current User Settings
            updateUiWithCurrentSettings();

            SettingsModeFrame.Loaded += new RoutedEventHandler(ConnectionSettingsFrameLoaded);


            if (!setUiEnable)
            {
                DisableEditFunctions();
            }
        }
Exemple #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="settings"></param>
        public ConnectionSettings_UI(ConnectionSettings settings, bool setUiEnable)
        {
            // Clone the Settings Object. becouse We are gone to change the Settings withe the interfacing of the users..
            userSettings = (ConnectionSettings)ObjectCopier.Clone(settings);

            InitializeComponent();

            //Check the Current User Settings
            updateUiWithCurrentSettings();

            singleConnectionPage = new settingsPageConnection(userSettings.connection1);
            SingleConnectionContentFrame.Loaded += new RoutedEventHandler(singleConnectionPageLoaded);

            connectyInTheMiddlepage = new settingsPageConnectyInTheMiddle(userSettings);
            ConnectyInTheMiddleContentFrame.Loaded += new RoutedEventHandler(multiConnectionPageLoaded);


            if (!setUiEnable)
            {
                DisableEditFunctions();
            }
        }