Ejemplo n.º 1
0
        private void TagsComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (TagsComboBox.SelectedItem != null)
            {
                if (mFullListEditTag != null && ((RepositoryItemTag)TagsComboBox.SelectedItem).Guid == mFullListEditTag.Guid)
                {
                    //open edit solution page
                    SolutionTagsEditorPage page = new SolutionTagsEditorPage(mFullTagsList);

                    page.ShowAsWindow();
                }
                else
                {
                    AddSelectedTag();
                }
                TagsComboBox.SelectedItem = null;
                TagsComboBox.Visibility   = Visibility.Collapsed;
                AddTagBtn1.Visibility     = Visibility.Visible;
            }
        }
Ejemplo n.º 2
0
        private void Init()
        {
            App.ObjFieldBinding(SolutionNameTextBox, TextBox.TextProperty, mSolution, Solution.Fields.Name);
            App.ObjFieldBinding(SolutionFolderTextBox, TextBox.TextProperty, mSolution, Solution.Fields.Folder);
            App.ObjFieldBinding(AccountTextBox, TextBox.TextProperty, mSolution, Solution.Fields.Account);

            ApplicationGrid = new ucGrid();
            ApplicationGrid.btnAdd.AddHandler(Button.ClickEvent, new RoutedEventHandler(AddApplication));
            ApplicationGrid.Grid.PreparingCellForEdit += ApplicationGrid_PreparingCellForEdit;
            ApplicationGrid.Grid.CellEditEnding       += ApplicationGrid_CellEditEnding;
            SetAppsGridView();
            ApplicationGrid.ShowTitle = System.Windows.Visibility.Collapsed;
            if (mSolution.ApplicationPlatforms == null)
            {
                mSolution.ApplicationPlatforms = new ObservableList <ApplicationPlatform>();
            }
            ApplicationGrid.DataSourceList = mSolution.ApplicationPlatforms;
            ApplicationsFrame.Content      = ApplicationGrid;

            VariablesPage varbsPage = new VariablesPage(eVariablesLevel.Solution);

            varbsPage.grdVariables.ShowTitle = System.Windows.Visibility.Collapsed;
            VariablesFrame.Content           = varbsPage;

            infoImage.ToolTip = "The first application in the list of Target Application(s) is consider to be the Solution Main Application."
                                + Environment.NewLine +
                                "Application: The local name of the application to be automated i.e.: CRM, select the name you use to call this app and how it is known to all people in the project"
                                + Environment.NewLine +
                                "Core: The core product on which this application is built on i.e: Amdocs CRM, this name is used to search packages in the global repository"
                                + Environment.NewLine +
                                "Core Version: The version of the core product i.e.: for CRM we have v8 or v9";


            SolutionTagsEditorPage p = new SolutionTagsEditorPage(mSolution.Tags);

            TagsFrame.Content = p;
        }
Ejemplo n.º 3
0
        private void EditTagBtn_Click(object sender, RoutedEventArgs e)
        {
            SolutionTagsEditorPage s = new SolutionTagsEditorPage(mFullTagsList);

            s.ShowAsWindow();
        }