private void AddColumn(object sender, RoutedEventArgs e)
        {
            if (Reporter.ToUser(eUserMsgKey.SaveLocalChanges) == Amdocs.Ginger.Common.eUserMsgSelection.No)
            {
                return;
            }
            AddNewTableColumnPage ANTCP = new AddNewTableColumnPage();

            ANTCP.ShowAsWindow();

            DataSourceTableColumn dsTableColumn = ANTCP.DSTableCol;

            if (dsTableColumn != null)
            {
                SaveTable();
                mDSTableDetails.DSC.AddColumn(mDSTableDetails.Name, dsTableColumn.Name, "Text");

                RefreshGrid();
                mColumnNames.Add(dsTableColumn.Name);
                if (dsTableColumn.Name == "GINGER_USED")
                {
                    grdTableData.btnMarkAll.Visibility = Visibility.Visible;
                    grdTableData.MarkUnMarkAllActive  += MarkUnMarkAllUsed;
                }
            }
        }
Exemplo n.º 2
0
        private void AddColumn(object sender, RoutedEventArgs e)
        {
            if (Reporter.ToUser(eUserMsgKeys.SaveLocalChanges) == MessageBoxResult.No)
            {
                return;
            }
            AddNewTableColumnPage ANTCP = new AddNewTableColumnPage();

            ANTCP.ShowAsWindow();

            DataSourceTableColumn dsTableColumn = ANTCP.DSTableCol;

            if (dsTableColumn != null)
            {
                SaveTable();
                mDSTableDetails.DSC.AddColumn(mDSTableDetails.Name, dsTableColumn.Name, "Text");

                SetGridView(true);
                SetGridData();
                mColumnNames.Add(dsTableColumn.Name);
                if (dsTableColumn.Name == "GINGER_USED")
                {
                    grdTableData.btnMarkAll.Visibility = Visibility.Visible;
                    grdTableData.MarkUnMarkAllActive  += MarkUnMarkAllUsed;
                }
            }
        }