Exemplo n.º 1
0
        public WindowExplorerApplicationRibbon(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , IOrganizationServiceExtented service
            ) : base(iWriteToOutput, commonConfig, service)
        {
            this.IncreaseInit();

            InitializeComponent();

            SetInputLanguageEnglish();

            var child = new ExportXmlOptionsControl(_commonConfig, XmlOptionsControls.RibbonXmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            LoadFromConfig();

            cmBCurrentConnection.ItemsSource  = service.ConnectionData.ConnectionConfiguration.Connections;
            cmBCurrentConnection.SelectedItem = service.ConnectionData;

            FillExplorersMenuItems();

            this.DecreaseInit();
        }
        public WindowOrganizationComparerWebResources(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , ConnectionData connection1
            , ConnectionData connection2
            , string filter
            ) : base(iWriteToOutput, commonConfig, connection1)
        {
            this.IncreaseInit();

            InitializeComponent();

            SetInputLanguageEnglish();

            var child = new ExportXmlOptionsControl(_commonConfig, XmlOptionsControls.WebResourceDependencyXmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            cmBType.ItemsSource = new EnumBindingSourceExtension(typeof(WebResource.Schema.OptionSets.webresourcetype?)).ProvideValue(null) as IEnumerable;

            this.Resources["ConnectionName1"] = connection1.Name;
            this.Resources["ConnectionName2"] = connection2.Name;

            LoadFromConfig();

            if (!string.IsNullOrEmpty(filter))
            {
                txtBFilter.Text = filter;
            }

            txtBFilter.SelectionLength = 0;
            txtBFilter.SelectionStart  = txtBFilter.Text.Length;

            txtBFilter.Focus();

            this._itemsSource = new ObservableCollection <EntityViewItem>();

            this.lstVwWebResources.ItemsSource = _itemsSource;

            cmBConnection1.ItemsSource  = connection1.ConnectionConfiguration.Connections;
            cmBConnection1.SelectedItem = connection1;

            cmBConnection2.ItemsSource  = connection1.ConnectionConfiguration.Connections;
            cmBConnection2.SelectedItem = connection2;

            FillExplorersMenuItems();

            this.DecreaseInit();

            var task = ShowExistingWebResources();
        }
Exemplo n.º 3
0
        public WindowExplorerCustomControl(
            IWriteToOutput iWriteToOutput
            , IOrganizationServiceExtented service
            , CommonConfiguration commonConfig
            , string filter
            )
        {
            this.IncreaseInit();

            InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US"));

            this._iWriteToOutput = iWriteToOutput;
            this._commonConfig   = commonConfig;

            _connectionCache[service.ConnectionData.ConnectionId] = service;

            BindingOperations.EnableCollectionSynchronization(service.ConnectionData.ConnectionConfiguration.Connections, sysObjectConnections);

            InitializeComponent();

            var child = new ExportXmlOptionsControl(_commonConfig, _xmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            LoadFromConfig();

            if (!string.IsNullOrEmpty(filter))
            {
                txtBFilter.Text = filter;
            }

            txtBFilter.SelectionLength = 0;
            txtBFilter.SelectionStart  = txtBFilter.Text.Length;

            txtBFilter.Focus();

            this._itemsSource = new ObservableCollection <EntityViewItem>();

            this.lstVwCustomControls.ItemsSource = _itemsSource;

            cmBCurrentConnection.ItemsSource  = service.ConnectionData.ConnectionConfiguration.Connections;
            cmBCurrentConnection.SelectedItem = service.ConnectionData;

            this.DecreaseInit();

            if (service != null)
            {
                ShowExistingCustomControls();
            }
        }
        public WindowExplorerSavedQueryVisualization(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , IOrganizationServiceExtented service
            , string filterEntity
            , string selection
            ) : base(iWriteToOutput, commonConfig, service)
        {
            this.IncreaseInit();

            InitializeComponent();

            SetInputLanguageEnglish();

            LoadEntityNames(cmBEntityName, service.ConnectionData);

            var child = new ExportXmlOptionsControl(_commonConfig, XmlOptionsControls.SavedQueryVisualizationXmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            LoadFromConfig();

            if (!string.IsNullOrEmpty(selection))
            {
                txtBFilter.Text = selection;
            }

            txtBFilter.SelectionLength = 0;
            txtBFilter.SelectionStart  = txtBFilter.Text.Length;

            txtBFilter.Focus();

            cmBEntityName.Text = filterEntity;

            this._itemsSource = new ObservableCollection <EntityViewItem>();

            this.lstVwCharts.ItemsSource = _itemsSource;

            cmBCurrentConnection.ItemsSource  = service.ConnectionData.ConnectionConfiguration.Connections;
            cmBCurrentConnection.SelectedItem = service.ConnectionData;

            FillExplorersMenuItems();

            this.DecreaseInit();

            var task = ShowExistingCharts();
        }
        public WindowOrganizationComparerSiteMap(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , ConnectionData connection1
            , ConnectionData connection2
            )
        {
            this.IncreaseInit();

            InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US"));

            this._iWriteToOutput = iWriteToOutput;
            this._commonConfig   = commonConfig;

            BindingOperations.EnableCollectionSynchronization(connection1.ConnectionConfiguration.Connections, sysObjectConnections);

            InitializeComponent();

            var child = new ExportXmlOptionsControl(_commonConfig, _xmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            this.Resources["ConnectionName1"] = connection1.Name;
            this.Resources["ConnectionName2"] = connection2.Name;

            LoadFromConfig();

            txtBFilter.SelectionLength = 0;
            txtBFilter.SelectionStart  = txtBFilter.Text.Length;

            txtBFilter.Focus();

            this._itemsSource = new ObservableCollection <EntityViewItem>();

            this.lstVwSiteMaps.ItemsSource = _itemsSource;

            cmBConnection1.ItemsSource  = connection1.ConnectionConfiguration.Connections;
            cmBConnection1.SelectedItem = connection1;

            cmBConnection2.ItemsSource  = connection1.ConnectionConfiguration.Connections;
            cmBConnection2.SelectedItem = connection2;

            this.DecreaseInit();

            ShowExistingSiteMaps();
        }
        public WindowExplorerImportJob(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , IOrganizationServiceExtented service
            , string selection
            ) : base(iWriteToOutput, commonConfig, service)
        {
            this.IncreaseInit();

            InitializeComponent();

            SetInputLanguageEnglish();

            var child = new ExportXmlOptionsControl(_commonConfig, XmlOptionsControls.ImportJobXmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            LoadFromConfig();

            if (!string.IsNullOrEmpty(selection))
            {
                txtBFilter.Text = selection;
            }

            txtBFilter.SelectionLength = 0;
            txtBFilter.SelectionStart  = txtBFilter.Text.Length;

            txtBFilter.Focus();

            this._itemsSource = new ObservableCollection <EntityViewItem>();

            this.lstVwImportJobs.ItemsSource = _itemsSource;

            cmBCurrentConnection.ItemsSource  = service.ConnectionData.ConnectionConfiguration.Connections;
            cmBCurrentConnection.SelectedItem = service.ConnectionData;

            chBOpenFormattedResultsInExcel.IsEnabled  = IsExcelInstalled();
            chBOpenFormattedResultsInExcel.Visibility = chBOpenFormattedResultsInExcel.IsEnabled ? Visibility.Visible : Visibility.Collapsed;

            this.DecreaseInit();

            var task = ShowExistingImportJobs();
        }
Exemplo n.º 7
0
        public WindowExplorerOrganization(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , IOrganizationServiceExtented service
            ) : base(iWriteToOutput, commonConfig, service)
        {
            this.IncreaseInit();

            InitializeComponent();

            SetInputLanguageEnglish();

            var child = new ExportXmlOptionsControl(_commonConfig, XmlOptionsControls.OrganizationXmlOptions | XmlOptionsControls.SiteMapXmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            LoadFromConfig(commonConfig);

            txtBFilter.SelectionLength = 0;
            txtBFilter.SelectionStart  = txtBFilter.Text.Length;

            txtBFilter.Focus();

            this._itemsSource = new ObservableCollection <EntityViewItem>();

            this.lstVwOrganizations.ItemsSource = _itemsSource;

            cmBCurrentConnection.ItemsSource  = service.ConnectionData.ConnectionConfiguration.Connections;
            cmBCurrentConnection.SelectedItem = service.ConnectionData;

            this.DecreaseInit();

            var task = ShowExistingOrganizations();
        }
        public WindowOrganizationComparerApplicationRibbon(
            IWriteToOutput iWriteToOutput
            , CommonConfiguration commonConfig
            , ConnectionData connection1
            , ConnectionData connection2
            ) : base(iWriteToOutput, commonConfig, connection1)
        {
            this.IncreaseInit();

            InitializeComponent();

            SetInputLanguageEnglish();

            var child = new ExportXmlOptionsControl(_commonConfig, XmlOptionsControls.RibbonXmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            this.Resources["ConnectionName1"] = connection1.Name;
            this.Resources["ConnectionName2"] = connection2.Name;

            LoadFromConfig();

            cmBConnection1.ItemsSource  = connection1.ConnectionConfiguration.Connections;
            cmBConnection1.SelectedItem = connection1;

            cmBConnection2.ItemsSource  = connection1.ConnectionConfiguration.Connections;
            cmBConnection2.SelectedItem = connection2;

            FillExplorersMenuItems();

            this.DecreaseInit();
        }
Exemplo n.º 9
0
        public WindowExplorerApplicationRibbon(
            IWriteToOutput iWriteToOutput
            , IOrganizationServiceExtented service
            , CommonConfiguration commonConfig
            )
        {
            this.IncreaseInit();

            InputLanguageManager.SetInputLanguage(this, CultureInfo.CreateSpecificCulture("en-US"));

            this._iWriteToOutput = iWriteToOutput;
            this._commonConfig   = commonConfig;

            _connectionCache[service.ConnectionData.ConnectionId] = service;

            BindingOperations.EnableCollectionSynchronization(service.ConnectionData.ConnectionConfiguration.Connections, sysObjectConnections);

            InitializeComponent();

            var child = new ExportXmlOptionsControl(_commonConfig, _xmlOptions);

            child.CloseClicked += Child_CloseClicked;
            this._optionsPopup  = new Popup
            {
                Child = child,

                PlacementTarget = toolBarHeader,
                Placement       = PlacementMode.Bottom,
                StaysOpen       = false,
                Focusable       = true,
            };

            LoadFromConfig();

            cmBCurrentConnection.ItemsSource  = service.ConnectionData.ConnectionConfiguration.Connections;
            cmBCurrentConnection.SelectedItem = service.ConnectionData;

            this.DecreaseInit();
        }