예제 #1
0
 /// <summary>
 /// Get the panel on the basis of panel type.
 /// </summary>
 /// <param name="wizardPanel"></param>
 /// <returns></returns>
 public DIWizardPanel this[DIWizardPanel.PanelType wizardPanel]
 {
     get
     {
         DIWizardPanel Retval = null;
         try
         {
             for (int i = 0; i < this.List.Count; i++)
             {
                 if (this[i].Type == wizardPanel)
                 {
                     Retval = this[i];
                 }
             }
         }
         catch (Exception)
         {
             Retval = null;
         }
         return Retval;
     }
 }
예제 #2
0
 /// <summary>
 /// Get the panel on the basis of panel type.
 /// </summary>
 /// <param name="wizardPanel"></param>
 /// <returns></returns>
 public DIWizardPanel this[DIWizardPanel.PanelType wizardPanel]
 {
     get
     {
         DIWizardPanel Retval = null;
         try
         {
             for (int i = 0; i < this.List.Count; i++)
             {
                 if (this[i].Type == wizardPanel)
                 {
                     Retval = this[i];
                 }
             }
         }
         catch (Exception)
         {
             Retval = null;
         }
         return(Retval);
     }
 }
예제 #3
0
 /// <summary>
 /// Get the panel on the basis of index
 /// </summary>
 /// <param name="panelIndex"></param>
 /// <returns></returns>
 public DIWizardPanel this[int panelIndex]
 {
     get
     {
         DIWizardPanel Retval = null;
         try
         {
             if (panelIndex < 0)
             {
                 Retval = null;
             }
             else
             {
                 Retval = (DIWizardPanel)this.List[panelIndex];
             }
         }
         catch (Exception)
         {
             Retval = null;
         }
         return(Retval);
     }
 }
예제 #4
0
 /// <summary>
 /// Add the panel in the collection.
 /// </summary>
 /// <param name="dIWizardPanel"></param>
 public void Add(DIWizardPanel dIWizardPanel)
 {
     this.List.Add(dIWizardPanel);
 }
예제 #5
0
        public DIWizardPanel.PanelType GetPreviousPanel(DIWizardPanel.PanelType panelType, DIWizardPanel.PanelType firstAccessedPage)
        {
            DIWizardPanel.PanelType Retval = DIWizardPanel.PanelType.Indicator;
            try
            {
                switch (panelType)
                {
                    case DIWizardPanel.PanelType.Indicator:
                        if (firstAccessedPage == DIWizardPanel.PanelType.Indicator)
                        {
                            //-- Do nothing
                        }
                        else
                        {
                            Retval = DIWizardPanel.PanelType.Area;
                        }
                        break;

                    case DIWizardPanel.PanelType.Area:
                        if (firstAccessedPage == DIWizardPanel.PanelType.Area)
                        {
                            //-- Do nothing
                        }
                        else
                        {
                            Retval = DIWizardPanel.PanelType.Indicator;
                        }
                        break;

                    case DIWizardPanel.PanelType.TimePeriod:
                        Retval = DIWizardPanel.PanelType.Area;
                        break;

                    case DIWizardPanel.PanelType.Source:
                        Retval = DIWizardPanel.PanelType.TimePeriod;
                        break;

                    case DIWizardPanel.PanelType.Database:
                        Retval = DIWizardPanel.PanelType.Indicator;
                        break;

                    case DIWizardPanel.PanelType.Gallery:
                        break;
                    default:
                        break;
                }
                if (firstAccessedPage == DIWizardPanel.PanelType.Indicator)
                {
                    this.RemoveFromHistory(Retval, true);
                }
                else
                {
                    this.RemoveFromHistory(Retval, false);
                }
            }
            catch (Exception)
            {
            }
            return Retval;
        }
예제 #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="panelType"></param>
 /// <returns></returns>
 public string GetNids(DIWizardPanel.PanelType panelType)
 {
     string Retval = string.Empty;
     try
     {
         if (string.IsNullOrEmpty(this._UserPreference.UserSelection.IndicatorNIds) && string.IsNullOrEmpty(this._UserPreference.UserSelection.AreaNIds) && string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds) && string.IsNullOrEmpty(this._UserPreference.UserSelection.SourceNIds))
         {
             switch (panelType)
             {
                 case DIWizardPanel.PanelType.Database:
                     break;
                 case DIWizardPanel.PanelType.Indicator:
                     Retval = this.AvailableNIdCache.IndicatorNIds;
                     break;
                 case DIWizardPanel.PanelType.Area:
                     Retval = this.AvailableNIdCache.AreaNIds;
                     break;
                 case DIWizardPanel.PanelType.TimePeriod:
                     Retval = this.AvailableNIdCache.TimeperiodNIds;
                     break;
                 case DIWizardPanel.PanelType.Source:
                     Retval = this.AvailableNIdCache.SourceNIds;
                     break;
                 default:
                     break;
             }
         }
         else
         {
             Retval=this._AutoSelectRecords[panelType];
         }
     }
     catch (Exception)
     {
         Retval = string.Empty;
     }
     return Retval;
 }
예제 #7
0
        /// <summary>
        /// Convert IUS NIds to Indicator NIds
        /// </summary>
        //public void IndicatorNidsFromIUSNIds()
        //{
        //    // -- convert IUS NIds into Indicator NIds
        //    if (this.UserPreference.UserSelection.ShowIUS && !string.IsNullOrEmpty(this.UserPreference.UserSelection.IndicatorNIds))
        //    {
        //        DataTable IndicatorDt = this.GetIUS();
        //        this.UserPreference.UserSelection.IndicatorNIds = string.Empty;
        //        foreach (DataRow Row in IndicatorDt.Rows)
        //        {
        //            this.UserPreference.UserSelection.IndicatorNIds += "," + Row[Data.IndicatorNId].ToString();
        //        }
        //        this.UserPreference.UserSelection.IndicatorNIds = this.UserPreference.UserSelection.IndicatorNIds.Substring(1);
        //        this.UserPreference.UserSelection.ShowIUS = false;
        //    }
        //    else if (this.UserPreference.UserSelection.ShowIUS && string.IsNullOrEmpty(this.UserPreference.UserSelection.IndicatorNIds))
        //    {
        //        this.UserPreference.UserSelection.ShowIUS = false;
        //    }
        //}
        public DIWizardPanel.PanelType GetNextPanel(DIWizardPanel.PanelType panelType, bool mrd, bool recommendedSources, DIWizardPanel.PanelType firstAccessedPage)
        {
            DIWizardPanel.PanelType Retval = DIWizardPanel.PanelType.Indicator;
            try
            {
                switch (panelType)
                {
                    case DIWizardPanel.PanelType.Indicator:

                        if (!this.IsThirdValidPage())
                        {
                            if (firstAccessedPage == DIWizardPanel.PanelType.Indicator)
                            {
                                //-- Set the next page to Area, if user first go to the indicator page
                                Retval = DIWizardPanel.PanelType.Area;
                            }
                            else
                            {
                                //-- Set the next page to Indicator, if user first go to the area page
                                Retval = DIWizardPanel.PanelType.Indicator;
                            }
                        }
                        else
                        {
                            Retval = DIWizardPanel.PanelType.Database;
                            //Retval = GetThirdPage(mrd, recommendedSources, Retval);
                        }
                        break;

                    case DIWizardPanel.PanelType.Area:
                        if (!this.IsThirdValidPage())
                        {
                            if (firstAccessedPage == DIWizardPanel.PanelType.Indicator)
                            {
                                //-- Set the next page to Area, if user first go to the indicator page
                                Retval = DIWizardPanel.PanelType.Area;
                            }
                            else
                            {
                                //-- Set the next page to Indicator, if user first go to the area page
                                Retval = DIWizardPanel.PanelType.Indicator;
                            }
                        }
                        else
                        {
                            Retval = DIWizardPanel.PanelType.Database;
                            //Retval = GetThirdPage(mrd, recommendedSources, Retval);
                        }
                        break;

                    case DIWizardPanel.PanelType.TimePeriod:
                        if (!recommendedSources)
                        {
                            Retval = DIWizardPanel.PanelType.Source;
                        }
                        else
                        {
                            Retval = DIWizardPanel.PanelType.Database;
                        }
                        break;

                    case DIWizardPanel.PanelType.Source:
                        Retval = DIWizardPanel.PanelType.Database;
                        break;

                    case DIWizardPanel.PanelType.Database:
                        break;
                    case DIWizardPanel.PanelType.Gallery:
                        break;
                    default:
                        break;
                }
            }
            catch (Exception)
            {
            }
            return Retval;
        }
예제 #8
0
        /// <summary>
        /// Set the time period panel properties
        /// </summary>
        private void SetTimePeriodPanel(DIWizardPanel dIWizardPanel)
        {
            //!this.UserPreference.UserSelection.DataViewFilters.MostRecentData &&
            if (this.SelectionOrder.Count > 0)
            {
                // -- Selected panel index in the selection order.
                int SelectedIndex = this.SelectionOrder.IndexOf(this.SelectedPage.ToString());
                // -- Time period panel index in the selection order
                int TimePeriodPanelIndex = this.SelectionOrder.IndexOf(DIWizardPanel.PanelType.TimePeriod.ToString());
                // -- Get the auto select time period count.

                if (TimePeriodPanelIndex >= SelectedIndex || TimePeriodPanelIndex == -1)
                {
                    int AutoSelectTimePeriodCount = 0;

                    if (this.AutoSelectRecordCount != null && this.AutoSelectRecordCount.ContainsKey(DIWizardPanel.PanelType.TimePeriod))
                    {
                        // -- Get the auto select area count.
                        AutoSelectTimePeriodCount = Convert.ToInt32(this.AutoSelectRecordCount[DIWizardPanel.PanelType.TimePeriod]);
                    }

                    if (TimePeriodPanelIndex > SelectedIndex)
                    {
                        // -- Update the Time period Nids with the new selection NIds

                        if (this._AutoSelectRecords != null && this._AutoSelectRecords.ContainsKey(DIWizardPanel.PanelType.TimePeriod))
                        {
                            this._UserPreference.UserSelection.TimePeriodNIds = this.UpdateSelections(this._AutoSelectRecords[DIWizardPanel.PanelType.TimePeriod], this._UserPreference.UserSelection.TimePeriodNIds);
                        }

                        if (string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds))
                        {
                            this.SelectionOrder.Remove(dIWizardPanel.Type.ToString());
                            dIWizardPanel.Selected = false;
                        }

                        // -- Update the Time period panel caption.
                        TimePeriodPanelIndex = 0;
                    }

                    if (!string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds) && TimePeriodPanelIndex != -1)
                    {
                        // -- time period panel is updated with the total number of record selected.
                        string[] TimePeriodsNIds = new string[0];
                        TimePeriodsNIds = DICommon.SplitString(this._UserPreference.UserSelection.TimePeriodNIds, ",");

                        dIWizardPanel.StatusCaption = LanguageStrings.Selected + " " + SEPRATOR + " " + TimePeriodsNIds.Length.ToString() + " / " + String.Format("{0:n}", this.AvailableNIdCache.TimeperiodCount).Replace(".00", "");
                        this._SelectionCount[DIWizardPanel.PanelType.TimePeriod] = TimePeriodsNIds.Length.ToString();
                    }
                    else if (AutoSelectTimePeriodCount == 1)
                    {
                        //-- Get the single time period NId and stored it in the user selection.

                        this._UserPreference.UserSelection.TimePeriodNIds = this._AutoSelectRecords[DIWizardPanel.PanelType.TimePeriod];
                        // -- Timeperiod panel is updated, if 1 record is left after auto select.
                        dIWizardPanel.StatusCaption = LanguageStrings.Selected + " " + SEPRATOR + " " + "1 / " + String.Format("{0:n}", this.AvailableNIdCache.TimeperiodCount).Replace(".00", "");
                        this._SelectionCount[DIWizardPanel.PanelType.TimePeriod] = "1";
                        dIWizardPanel.Order = -1;
                    }
                    else
                    {
                        this._UserPreference.UserSelection.TimePeriodNIds = string.Empty;
                        // -- Timeperiod panel is updated with total number of record left after the current selection.
                        dIWizardPanel.StatusCaption = LanguageStrings.Available + " " + SEPRATOR + " " + String.Format("{0:n}", AutoSelectTimePeriodCount).Replace(".00", "") + "   " + LanguageStrings.Home_Page_Selected_Caption;
                        this._SelectionCount[DIWizardPanel.PanelType.TimePeriod] = String.Format("{0:n}", AutoSelectTimePeriodCount).Replace(".00", "");
                        //this.RemoveSelection(dIWizardPanel);
                    }
                }
            }
            //else if (this.UserPreference.UserSelection.DataViewFilters.MostRecentData)
            //{
            //    dIWizardPanel.StatusCaption = LanguageStrings.Selected_MRD;
            //    this._SelectionCount[DIWizardPanel.PanelType.TimePeriod] = "MRD";
            //}
            else if (this.SelectionOrder.Count == 0)
            {
                // -- Timeperiod panel is updated with total number of record.
                //this._DIWizardPanels[2].Caption = LanguageStrings.TimePeriods;
                this._DIWizardPanels[2].StatusCaption = LanguageStrings.Available + " " + SEPRATOR + " " + String.Format("{0:n}", this.AvailableNIdCache.TimeperiodCount.ToString()).Replace(".00", "") + "   " + LanguageStrings.Home_Page_Selected_Caption;
                this._SelectionCount[DIWizardPanel.PanelType.TimePeriod] = String.Format("{0:n}", this.AvailableNIdCache.TimeperiodCount.ToString()).Replace(".00", "");
            }

            if (string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds))
            {
                dIWizardPanel.Caption = LanguageStrings.TimePeriods;
            }
            else
            {
                dIWizardPanel.Caption = LanguageStrings.TimePeriod;
            }
        }
예제 #9
0
 /// <summary>
 /// Update the selection status list.
 /// </summary>
 /// <param name="panelType"></param>
 public void UpdateSelectionList(DIWizardPanel.PanelType panelType)
 {
     int SelectedOrder = this.DIWizardPanels[panelType].Order;
     ArrayList PanelTypes = new ArrayList();
     PanelTypes = this.EnumToArray();
     for (int PanelIndex = 0; PanelIndex < PanelTypes.Count - 2; PanelIndex++)
     {
         if (this.DIWizardPanels[PanelIndex].Order > SelectedOrder)
         {
             this._SelectionStatus[(DIWizardPanel.PanelType)PanelIndex] = true;
         }
     }
 }
예제 #10
0
        private void SetGallery(DIWizardPanel dIWizardPanel)
        {
            dIWizardPanel.GalleryCaption = LanguageStrings.Galleries;
            //TODO: remove hardcoding.
            GallerySearch Gallery = new GallerySearch(this._GalleryDatabaseFileWithPath);

            //-- Get the Gallery count.
            int GalleryCount = Gallery.GetPresentaionCount(-1);

            if (string.IsNullOrEmpty(this.UserPreference.UserSelection.IndicatorNIds) && string.IsNullOrEmpty(this.UserPreference.UserSelection.AreaNIds) & string.IsNullOrEmpty(this.UserPreference.UserSelection.TimePeriodNIds) & string.IsNullOrEmpty(this.UserPreference.UserSelection.SourceNIds))
            {
                dIWizardPanel.GalleryStatusCaption = LanguageStrings.Count + " " + SEPRATOR + " " + GalleryCount + " " + DATABASE_SEPRATOR + " " + GalleryCount;
                if (GalleryCount > 0)
                {
                    this._SelectionCount[DIWizardPanel.PanelType.Gallery] = GalleryCount.ToString();
                }
                else
                {
                    this._SelectionCount[DIWizardPanel.PanelType.Gallery] = string.Empty;
                }
            }
            else
            {
                int SelectedCount = Gallery.GetSearchResultCount(this.GenerateKeywords(), string.Empty, GallerySearch.SearchType.All, -1);
                dIWizardPanel.GalleryStatusCaption = LanguageStrings.Count + " " + SEPRATOR + " " + SelectedCount.ToString() + " " + DATABASE_SEPRATOR + " " + GalleryCount.ToString();
                if (SelectedCount > 0)
                {
                    this._SelectionCount[DIWizardPanel.PanelType.Gallery] = SelectedCount.ToString();
                }
                else
                {
                    this._SelectionCount[DIWizardPanel.PanelType.Gallery] = string.Empty;
                }
            }
        }
예제 #11
0
        /// <summary>
        /// Set the Database panel properties
        /// </summary>
        private void SetDatabasePanel(DIWizardPanel dIWizardPanel)
        {
            this._DIWizardPanels[4].Caption = LanguageStrings.Database;
            this._DIWizardPanels[4].StatusCaption = string.Empty;

            //////if ((string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds) && this._UserPreference.UserSelection.DataViewFilters.MostRecentData && this.SelectionOrder.Count == 1) || (this.SelectionOrder.Count == 0))
            //////{
            //////    // -- Set the database panel status caption.
            //////    this._DIWizardPanels[4].StatusCaption = LanguageStrings.Count + " " + SEPRATOR + " " + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
            //////    this._SelectionCount[DIWizardPanel.PanelType.Database] = String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
            //////}
            //////else

            if (this.SelectionOrder.Count > 0)
            {
                if (this.AutoSelectRecordCount != null && this.AutoSelectRecordCount.ContainsKey(DIWizardPanel.PanelType.Database))
                {
                    // -- Set the database panel status caption.
                    this._DIWizardPanels[4].StatusCaption = LanguageStrings.Count + " " + SEPRATOR + " " + String.Format("{0:n}", Convert.ToInt32(this.AutoSelectRecordCount[DIWizardPanel.PanelType.Database])).Replace(".00", "") + " / " + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
                    this._SelectionCount[DIWizardPanel.PanelType.Database] = String.Format("{0:n}", Convert.ToInt32(this.AutoSelectRecordCount[DIWizardPanel.PanelType.Database])).Replace(".00", "");
                }
                else
                {
                    // -- Set the database panel status caption from cache
                    this._DIWizardPanels[4].StatusCaption = LanguageStrings.Count + " " + SEPRATOR + " " + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
                    this._SelectionCount[DIWizardPanel.PanelType.Database] = String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
                }
            }
            else
            {
                // -- Set the database panel status caption.
                this._DIWizardPanels[4].StatusCaption = LanguageStrings.Count + " " + SEPRATOR + " " + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
                this._SelectionCount[DIWizardPanel.PanelType.Database] = String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "");
            }

            this.SetGallery(dIWizardPanel);

            //string[] DBFiles = new string[0];
            //int DatabaseCount = 0;

            //if (Directory.Exists(this._DataFolderPath))
            //{
            //    // -- MDB files in the data folder.
            //    DBFiles = Directory.GetFiles(this._DataFolderPath, "*" + DICommon.FileExtension.Database);
            //    DatabaseCount = DBFiles.Length;
            //    // -- MDF files in the data folder.
            //    DBFiles = Directory.GetFiles(this._DataFolderPath, "*" + DICommon.FileExtension.MDFDatabase);
            //    DatabaseCount += DBFiles.Length;

            //    // -- Online connections count.
            //    DatabaseCount += this.UserPreference.Database.OnlineDatabaseDetails.Count;

            //    // -- Set the database panel caption.
            //    this._DIWizardPanels[1].Caption = LanguageStrings.Database + " " + DIWizard.SEPRATOR + " 1 " + DATABASE_SEPRATOR + " " + DatabaseCount.ToString() + " " + LanguageStrings.Selected.ToLower();

            //    if ((string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds) && this._UserPreference.UserSelection.DataViewFilters.MostRecentData && this.SelectionOrder.Count == 1) || (this.SelectionOrder.Count == 0))
            //    {
            //        // -- Set the database panel status caption.
            //        this._DIWizardPanels[1].StatusCaption = Path.GetFileName(DbConnection.ConnectionStringParameters.DbName) + " " + DATAVALUE_START + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "") + " " + LanguageStrings.Count + DATAVALUE_END;
            //    }
            //    else if (this.SelectionOrder.Count > 0)
            //    {
            //        if (this.AutoSelectRecordCount != null && this.AutoSelectRecordCount.ContainsKey(DIWizardPanel.PanelType.Database))
            //        {
            //            // -- Set the database panel status caption.
            //            this._DIWizardPanels[1].StatusCaption = Path.GetFileName(DbConnection.ConnectionStringParameters.DbName) + " " + DATAVALUE_START + String.Format("{0:n}", Convert.ToInt32(this.AutoSelectRecordCount[DIWizardPanel.PanelType.Database])).Replace(".00", "") + " / " + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "") + " " + LanguageStrings.Count + DATAVALUE_END;
            //        }
            //        else
            //        {
            //            // -- Set the database panel status caption from cache
            //            this._DIWizardPanels[1].StatusCaption = Path.GetFileName(DbConnection.ConnectionStringParameters.DbName) + " " + DATAVALUE_START + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "") + " " + LanguageStrings.Count + DATAVALUE_END;
            //        }
            //    }
            //    //else
            //    //{
            //    //    // -- Set the database panel status caption.
            //    //    this._DIWizardPanels[1].StatusCaption = Path.GetFileName(DbConnection.ConnectionStringParameters.DbName) + " " + DATAVALUE_START + String.Format("{0:n}", this.AvailableNIdCache.DataCount).Replace(".00", "") + " " + LanguageStrings.Count + DATAVALUE_END;
            //    //}
            //}
            //else
            //{
                //this._DIWizardPanels[1].Caption = LanguageStrings.Database + " " + SEPRATOR + " 0 " + DATABASE_SEPRATOR + " " + 0 + " " + LanguageStrings.Selected;
                //this._DIWizardPanels[1].StatusCaption = string.Empty;
            //}
        }
예제 #12
0
        /// <summary>
        /// Set the area panel properties
        /// </summary>
        private void SetAreaPanel(DIWizardPanel dIWizardPanel)
        {
            if ((string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds) && this._UserPreference.UserSelection.DataViewFilters.MostRecentData && this.SelectionOrder.Count == 1) || (this.SelectionOrder.Count == 0))
            {
                // -- Area panel is updated with total number of record.
                //this._DIWizardPanels[1].Caption = LanguageStrings.Areas;
                this._DIWizardPanels[1].StatusCaption = LanguageStrings.Available + " " + SEPRATOR + " " + String.Format("{0:n}", this.AvailableNIdCache.AreaCount).Replace(".00", "") + "   " + LanguageStrings.Home_Page_Selected_Caption;
                this._SelectionCount[DIWizardPanel.PanelType.Area] = String.Format("{0:n}", this.AvailableNIdCache.AreaCount).Replace(".00", "");
            }
            else if (this.SelectionOrder.Count > 0)
            {
                // -- Selected panel index in the selection order.
                int SelectedIndex = this.SelectionOrder.IndexOf(this.SelectedPage.ToString());
                // -- Area panel index in the selection order
                int AreaPanelIndex = this.SelectionOrder.IndexOf(DIWizardPanel.PanelType.Area.ToString());

                if (AreaPanelIndex >= SelectedIndex || AreaPanelIndex == -1)
                {
                    int AutoSelectAreaCount = 0;

                    if (this.AutoSelectRecordCount != null && this.AutoSelectRecordCount.ContainsKey(DIWizardPanel.PanelType.Area))
                    {
                        // -- Get the auto select area count.
                        AutoSelectAreaCount = Convert.ToInt32(this.AutoSelectRecordCount[DIWizardPanel.PanelType.Area]);
                    }

                    //// -- Get the auto select area count.
                    //AutoSelectAreaCount = this.GetAreaAutoSelectCount();

                    if (AreaPanelIndex > SelectedIndex)
                    {
                        //// -- Update the Area Nids with the new selection NIds

                        if (this._AutoSelectRecords != null && this._AutoSelectRecords.ContainsKey(DIWizardPanel.PanelType.Area))
                        {
                            this._UserPreference.UserSelection.AreaNIds = this.UpdateSelections(this._AutoSelectRecords[DIWizardPanel.PanelType.Area], this._UserPreference.UserSelection.AreaNIds);
                        }

                        if (string.IsNullOrEmpty(this._UserPreference.UserSelection.AreaNIds))
                        {
                            this.SelectionOrder.Remove(dIWizardPanel.Type.ToString());
                            dIWizardPanel.Selected = false;
                        }

                        // -- Update the area panel caption.
                        AreaPanelIndex = 0;
                    }

                    if (!string.IsNullOrEmpty(this._UserPreference.UserSelection.AreaNIds) && AreaPanelIndex != -1)
                    {
                        // -- Area panel is updated with the total number of record selected.
                        string[] AreaNIds = new string[0];
                        AreaNIds = DICommon.SplitString(this._UserPreference.UserSelection.AreaNIds, ",");

                        dIWizardPanel.StatusCaption = LanguageStrings.Selected + " " + SEPRATOR + " " + AreaNIds.Length.ToString() + " / " + String.Format("{0:n}", this.AvailableNIdCache.AreaCount).Replace(".00", "");
                        this._SelectionCount[DIWizardPanel.PanelType.Area] = AreaNIds.Length.ToString();
                    }
                    else if (AutoSelectAreaCount == 1)
                    {
                        //-- Get the single area NId and stored it in the user selection.
                        this._UserPreference.UserSelection.AreaNIds = this._AutoSelectRecords[DIWizardPanel.PanelType.Area];

                        // -- Area panel is updated, if 1 record is left after auto select.
                        dIWizardPanel.StatusCaption = LanguageStrings.Selected + " " + SEPRATOR + " " + "1 / " + String.Format("{0:n}", this.AvailableNIdCache.AreaCount).Replace(".00", "");
                        this._SelectionCount[DIWizardPanel.PanelType.Area] = "1";
                        dIWizardPanel.Order = -1;
                    }
                    else
                    {
                        this._UserPreference.UserSelection.AreaNIds = string.Empty;
                        // -- Area panel is updated with total number of record left after the current selection.
                        dIWizardPanel.StatusCaption = LanguageStrings.Available + " " + SEPRATOR + " " + String.Format("{0:n}", AutoSelectAreaCount).Replace(".00", "") + "   " + LanguageStrings.Home_Page_Selected_Caption;
                        this._SelectionCount[DIWizardPanel.PanelType.Area] = String.Format("{0:n}", AutoSelectAreaCount).Replace(".00", "");
                        // -- Uncheck all the selected records and move next
                        //this.RemoveSelection(dIWizardPanel);
                    }
                }
            }
            if (string.IsNullOrEmpty(this._UserPreference.UserSelection.AreaNIds))
            {
                dIWizardPanel.Caption = LanguageStrings.Areas;
            }
            else
            {
                dIWizardPanel.Caption = LanguageStrings.Area;
            }
        }
예제 #13
0
 /// <summary>
 /// Remove the selection, history of the panel.
 /// </summary>
 /// <param name="dIWizardPanel"></param>
 private void RemoveSelection(DIWizardPanel dIWizardPanel)
 {
     dIWizardPanel.Selected = false;
     dIWizardPanel.Order = 0;
     if (this._NavigationHistory.IndexOf(dIWizardPanel.Type.ToString()) != -1)
     {
         this._NavigationHistory.Remove(dIWizardPanel.Type.ToString());
     }
     if (this.SelectionOrder.IndexOf(dIWizardPanel.Type.ToString()) != -1)
     {
         this.SelectionOrder.Remove(dIWizardPanel.Type.ToString());
     }
 }
예제 #14
0
        /// <summary>
        /// Intilaize the panel
        /// </summary>
        private void IntializePanel()
        {
            DIWizardPanel WizardPanel;

            #region " -- Gallery -- "

            //WizardPanel = new DIWizardPanel();
            //WizardPanel.Type = DIWizardPanel.PanelType.Gallery;

            //// -- Set the gallery panel image.
            //this.SetPanel(WizardPanel);

            //WizardPanel.Selected = true;
            //WizardPanel.Order = 0;
            //WizardPanel.Caption = string.Empty;
            //WizardPanel.StatusCaption = string.Empty;
            //WizardPanel.LinkCaption = LanguageStrings.ViewGallery;

            //// -- Add the gallery panel in the collection.
            //this._DIWizardPanels.Add(WizardPanel);

            #endregion

            #region " -- Indicator -- "

            WizardPanel = new DIWizardPanel();
            WizardPanel.Type = DIWizardPanel.PanelType.Indicator;

            // -- Set the indicator panel image.
            this.SetPanel(WizardPanel);

            WizardPanel.Selected = false;
            WizardPanel.Order = 0;
            WizardPanel.Caption = string.Empty;
            WizardPanel.StatusCaption = string.Empty;
            WizardPanel.LinkCaption = string.Empty;

            // -- Add the indicator panel in the collection.
            this._DIWizardPanels.Add(WizardPanel);

            #endregion

            #region " -- Area -- "

            WizardPanel = new DIWizardPanel();
            WizardPanel.Type = DIWizardPanel.PanelType.Area;

            // -- Set the area panel image.
            this.SetPanel(WizardPanel);

            WizardPanel.Selected = false;
            WizardPanel.Order = 1;
            WizardPanel.Caption = string.Empty;
            WizardPanel.StatusCaption = string.Empty;
            WizardPanel.LinkCaption = string.Empty;

            // -- Add the area panel in the collection.
            this._DIWizardPanels.Add(WizardPanel);

            #endregion

            #region " -- TimePeriod -- "

            WizardPanel = new DIWizardPanel();
            WizardPanel.Type = DIWizardPanel.PanelType.TimePeriod;

            // -- Set the time period panel image.
            this.SetPanel(WizardPanel);

            WizardPanel.Selected = false;
            WizardPanel.Order = 2;
            WizardPanel.Caption = string.Empty;
            WizardPanel.StatusCaption = string.Empty;
            WizardPanel.LinkCaption = string.Empty;

            // -- Add the Time period panel in the collection.
            this._DIWizardPanels.Add(WizardPanel);

            #endregion

            #region " -- Source -- "

            WizardPanel = new DIWizardPanel();
            WizardPanel.Type = DIWizardPanel.PanelType.Source;

            // -- Set the source panel image.
            this.SetPanel(WizardPanel);

            WizardPanel.Selected = false;
            WizardPanel.Order = 3;
            WizardPanel.Caption = string.Empty;
            WizardPanel.StatusCaption = string.Empty;
            WizardPanel.LinkCaption = string.Empty;

            // -- Add the source panel in the collection.
            this._DIWizardPanels.Add(WizardPanel);

            #endregion

            #region " -- Database -- "

            WizardPanel = new DIWizardPanel();
            WizardPanel.Type = DIWizardPanel.PanelType.Database;

            // -- Set the database panel image.
            this.SetPanel(WizardPanel);

            WizardPanel.Selected = false;
            WizardPanel.Order = 4;
            WizardPanel.Caption = string.Empty;
            WizardPanel.StatusCaption = string.Empty;
            WizardPanel.LinkCaption = LanguageStrings.ViewData;

            // -- Add the database panel in the collection.
            this._DIWizardPanels.Add(WizardPanel);

            #endregion

            // -- Set the background image of the panel
            this.BackgroundImage(null);
        }
예제 #15
0
 private DIWizardPanel.PanelType GetThirdPage(bool mrd, bool recommendedSources, DIWizardPanel.PanelType Retval)
 {
     if (!mrd)
     {
         Retval = DIWizardPanel.PanelType.TimePeriod;
     }
     else
     {
         if (recommendedSources)
         {
             Retval = DIWizardPanel.PanelType.Database;
         }
         else
         {
             Retval = DIWizardPanel.PanelType.Source;
         }
     }
     return Retval;
 }
예제 #16
0
        /// <summary>
        /// Set the background images of the panel.
        /// </summary>
        /// <param name="dIWizardPanel"></param>
        private void BackgroundImage(DIWizardPanel dIWizardPanel)
        {
            for (int PanelIndex = 0; PanelIndex < 4; PanelIndex++)
            {
                switch (this._DIWizardPanels[PanelIndex].Order) // dIWizardPanel.Order)
                {
                    case 0:
                        this._DIWizardPanels[PanelIndex].BGImageNormal = ImageFileName.PANEL1_NORMAL_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageSelected = ImageFileName.PANEL1_SELECTED_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageHover = ImageFileName.PANEL1_HOVER_IMAGE;
                        break;

                    case 1:
                        this._DIWizardPanels[PanelIndex].BGImageNormal = ImageFileName.PANEL2_NORMAL_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageSelected = ImageFileName.PANEL2_SELECTED_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageHover = ImageFileName.PANEL2_HOVER_IMAGE;
                        break;

                    case 2:
                        this._DIWizardPanels[PanelIndex].BGImageNormal = ImageFileName.PANEL3_NORMAL_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageSelected = ImageFileName.PANEL3_SELECTED_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageHover = ImageFileName.PANEL3_HOVER_IMAGE;
                        break;

                    case 3:
                        this._DIWizardPanels[PanelIndex].BGImageNormal = ImageFileName.PANEL4_NORMAL_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageSelected = ImageFileName.Panel4_SELECTED_IMAGE;
                        this._DIWizardPanels[PanelIndex].BGImageHover = ImageFileName.Panel4_HOVER_IMAGE;
                        break;
                    default:
                        break;
                }
            }
        }
예제 #17
0
        /// <summary>
        /// Set the indicator panel properties
        /// </summary>
        private void SetIndicatorPanel(DIWizardPanel dIWizardPanel)
        {
            if ((string.IsNullOrEmpty(this._UserPreference.UserSelection.TimePeriodNIds) && this._UserPreference.UserSelection.DataViewFilters.MostRecentData && this.SelectionOrder.Count == 1) || (this.SelectionOrder.Count == 0))
            {
                // -- Indicator panel is updated with total number of record.
                //this._DIWizardPanels[0].Caption = LanguageStrings.Indicators;
                this._DIWizardPanels[0].StatusCaption = LanguageStrings.Available + " " + SEPRATOR + " " + String.Format("{0:n}", this.AvailableNIdCache.IndicatorCount).Replace(".00", "") + "   " + LanguageStrings.Home_Page_Selected_Caption;
                this._SelectionCount[DIWizardPanel.PanelType.Indicator] = String.Format("{0:n}", this.AvailableNIdCache.IndicatorCount).Replace(".00", "");
            }
            else if (this.SelectionOrder.Count > 0)
            {
                // -- Selected panel index in the selection order.
                int SelectedIndex = this.SelectionOrder.IndexOf(this.SelectedPage.ToString());
                // -- indicator panel index in the selection order
                int IndicatorPanelIndex = this.SelectionOrder.IndexOf(DIWizardPanel.PanelType.Indicator.ToString());

                if (IndicatorPanelIndex >= SelectedIndex || IndicatorPanelIndex == -1)
                {
                    int AutoSelectIndicatorCount = 0;

                    if (this.AutoSelectRecordCount != null && this.AutoSelectRecordCount.ContainsKey(DIWizardPanel.PanelType.Indicator))
                    {
                        // -- Get the auto select indicator count from cache.
                        AutoSelectIndicatorCount = Convert.ToInt32(this.AutoSelectRecordCount[DIWizardPanel.PanelType.Indicator]);
                    }

                    if (IndicatorPanelIndex > SelectedIndex)
                    {
                        //// -- Update the Indicator Nids with the new selection NIds
                        //IDataReader SelectionReader;
                        //SelectionReader = this.DbConnection.ExecuteReader(this.DbQueries.Indicators.GetAutoSelectIndicator(this.UserPreference.UserSelection.TimePeriodNIds, this.UserPreference.UserSelection.AreaNIds, this.UserPreference.UserSelection.SourceNIds, FieldSelection.Light));

                        if (this._AutoSelectRecords != null && this._AutoSelectRecords.ContainsKey(DIWizardPanel.PanelType.Indicator))
                        {
                            this._UserPreference.UserSelection.IndicatorNIds = this.UpdateSelections(this._AutoSelectRecords[DIWizardPanel.PanelType.Indicator], this._UserPreference.UserSelection.IndicatorNIds);
                        }

                        //SelectionReader.Close();
                        if (string.IsNullOrEmpty(this._UserPreference.UserSelection.IndicatorNIds))
                        {
                            this.SelectionOrder.Remove(dIWizardPanel.Type.ToString());
                            dIWizardPanel.Selected = false;
                        }
                        // -- Update the indicator panel caption.
                        IndicatorPanelIndex = 0;
                    }

                    if (!string.IsNullOrEmpty(this._UserPreference.UserSelection.IndicatorNIds) && IndicatorPanelIndex != -1)
                    {
                        // -- Get the selected indicator NId on the basis of IUS NId.
                        //DataTable dtIndicator;
                        //dtIndicator = this.DbConnection.ExecuteDataTable("SELECT DISTINCT IUS." + Indicator_Unit_Subgroup.IndicatorNId + " FROM UT_Indicator_Unit_Subgroup IUS WHERE IUS." + Indicator_Unit_Subgroup.IUSNId + " IN (" + this.UserPreference.UserSelection.IndicatorNIds + ")");

                        // -- Indicator panel is updated with the total number of Indicator selected.
                        dIWizardPanel.StatusCaption = LanguageStrings.Selected + " " + SEPRATOR + " " + this.GetIndicatorFromIUS() + " / " + String.Format("{0:n}", this.AvailableNIdCache.IndicatorCount).Replace(".00", "");
                        this._SelectionCount[DIWizardPanel.PanelType.Indicator] = this.GetIndicatorFromIUS().ToString();
                    }
                    else if (AutoSelectIndicatorCount == 1)
                    {
                        if (this._AutoSelectRecords != null && this._AutoSelectRecords.ContainsKey(DIWizardPanel.PanelType.Indicator))
                        {
                            this._UserPreference.UserSelection.IndicatorNIds = this.UpdateSelections(this._AutoSelectRecords[DIWizardPanel.PanelType.Indicator], this._UserPreference.UserSelection.IndicatorNIds);
                        }

                        // -- Indicator panel is updated, if 1 record is left after auto select.
                        dIWizardPanel.StatusCaption = LanguageStrings.Selected + " " + SEPRATOR + " 1 / " + String.Format("{0:n}", this.AvailableNIdCache.IndicatorCount).Replace(".00", "");
                        this._SelectionCount[DIWizardPanel.PanelType.Indicator] = "1";
                        dIWizardPanel.Order = -1;
                    }
                    else
                    {
                        this._UserPreference.UserSelection.IndicatorNIds = string.Empty;

                        // -- Indicator panel is updated with total number of record left after the current selection.
                        dIWizardPanel.StatusCaption = LanguageStrings.Available + " " + SEPRATOR + " " + String.Format("{0:n}", AutoSelectIndicatorCount).Replace(".00", "") + "   " + LanguageStrings.Home_Page_Selected_Caption;
                        this._SelectionCount[DIWizardPanel.PanelType.Indicator] = String.Format("{0:n}", AutoSelectIndicatorCount).Replace(".00", "");
                        //this.RemoveSelection(dIWizardPanel);
                    }
                }
            }

            if (string.IsNullOrEmpty(this._UserPreference.UserSelection.IndicatorNIds))
            {
                dIWizardPanel.Caption = LanguageStrings.Indicators;
            }
            else
            {
                dIWizardPanel.Caption = LanguageStrings.Indicator;
            }
        }
예제 #18
0
        /// <summary>
        /// Set the panel BGimages,Icons, and Link Icon on the basis of panel type.
        /// </summary>
        /// <param name="dIWizardPanel"></param>
        private void SetPanel(DIWizardPanel dIWizardPanel)
        {
            switch (dIWizardPanel.Type)
            {
                //case DIWizardPanel.PanelType.Gallery:
                    //dIWizardPanel.BGImageNormal = ImageFileName.PANEL1_NORMAL_IMAGE;
                    //dIWizardPanel.BGImageSelected = ImageFileName.PANEL1_SELECTED_IMAGE;
                    //dIWizardPanel.BGImageHover = ImageFileName.PANEL1_HOVER_IMAGE;

                    //dIWizardPanel.IconNormal = ImageFileName.GALLERY_NORMAL_ICON;
                    //dIWizardPanel.IconSelected = ImageFileName.GALLERY_SELECTED_ICON;
                    //dIWizardPanel.IconHover = ImageFileName.GALLERY_HOVER_ICON;

                    //dIWizardPanel.LinkIconNormal = ImageFileName.LINK_NORMAL_ICON;
                    //dIWizardPanel.LinkIconSelected = ImageFileName.LINK_SELECTED_ICON;
                    //dIWizardPanel.LinkIconHover = ImageFileName.LINK_HOVER_ICON;
                    //break;
                case DIWizardPanel.PanelType.Database:
                    dIWizardPanel.BGImageNormal = string.Empty;
                    dIWizardPanel.BGImageSelected = string.Empty;
                    dIWizardPanel.BGImageHover = string.Empty;

                    dIWizardPanel.IconNormal = ImageFileName.DATABASE_NORMAL_ICON;
                    dIWizardPanel.IconSelected = ImageFileName.DATABASE_SELECTED_ICON;
                    dIWizardPanel.IconHover = ImageFileName.DATABASE_HOVER_ICON;

                    dIWizardPanel.LinkIconNormal = string.Empty;
                    dIWizardPanel.LinkIconSelected = string.Empty;
                    dIWizardPanel.LinkIconHover = string.Empty;

                    dIWizardPanel.BGImageNormal = ImageFileName.DATABASE_PANEL_IMAGE;
                    dIWizardPanel.BGImageSelected = ImageFileName.DATABASE_PANEL_IMAGE;
                    dIWizardPanel.BGImageHover = ImageFileName.DATABASE_PANEL_IMAGE;

                    //dIWizardPanel.IconNormal = ImageFileName.DATABASE_NORMAL_ICON;
                    //dIWizardPanel.IconSelected = ImageFileName.DATABASE_SELECTED_ICON;
                    //dIWizardPanel.IconHover = ImageFileName.DATABASE_HOVER_ICON;

                    //dIWizardPanel.LinkIconNormal = ImageFileName.LINK_NORMAL_ICON;
                    //dIWizardPanel.LinkIconSelected = ImageFileName.LINK_SELECTED_ICON;
                    //dIWizardPanel.LinkIconHover = ImageFileName.LINK_HOVER_ICON;
                    break;
                case DIWizardPanel.PanelType.Indicator:

                    // -- Set the Indicator panel icon
                    dIWizardPanel.IconNormal = ImageFileName.INDICATOR_NORMAL_ICON;
                    dIWizardPanel.IconSelected = ImageFileName.INDICATOR_SELECTED_ICON;
                    dIWizardPanel.IconHover = ImageFileName.INDICATOR_HOVER_ICON;

                    dIWizardPanel.LinkIconNormal = string.Empty;
                    dIWizardPanel.LinkIconSelected = string.Empty;
                    dIWizardPanel.LinkIconHover = string.Empty;
                    break;
                case DIWizardPanel.PanelType.Area:

                    // -- Set the Area panel icon
                    dIWizardPanel.IconNormal = ImageFileName.AREA_NORMAL_ICON;
                    dIWizardPanel.IconSelected = ImageFileName.AREA_SELECTED_ICON;
                    dIWizardPanel.IconHover = ImageFileName.AREA_HOVER_ICON;

                    dIWizardPanel.LinkIconNormal = string.Empty;
                    dIWizardPanel.LinkIconSelected = string.Empty;
                    dIWizardPanel.LinkIconHover = string.Empty;
                    break;
                case DIWizardPanel.PanelType.TimePeriod:
                    // -- Set the Time period panel icon
                    dIWizardPanel.IconNormal = ImageFileName.TIMEPERIOD_NORMAL_ICON;
                    dIWizardPanel.IconSelected = ImageFileName.TIMEPERIOD_SELECTED_ICON;
                    dIWizardPanel.IconHover = ImageFileName.TIMEPERIOD_HOVER_ICON;

                    dIWizardPanel.LinkIconNormal = string.Empty;
                    dIWizardPanel.LinkIconSelected = string.Empty;
                    dIWizardPanel.LinkIconHover = string.Empty;
                    break;
                case DIWizardPanel.PanelType.Source:
                    // -- Set the source panel icon
                    dIWizardPanel.IconNormal = ImageFileName.SOURCE_NORMAL_ICON;
                    dIWizardPanel.IconSelected = ImageFileName.SOURCE_SELECTED_ICON;
                    dIWizardPanel.IconHover = ImageFileName.SOURCE_HOVER_ICON;

                    dIWizardPanel.LinkIconNormal = string.Empty;
                    dIWizardPanel.LinkIconSelected = string.Empty;
                    dIWizardPanel.LinkIconHover = string.Empty;
                    break;
                default:
                    break;
            }
        }
예제 #19
0
 /// <summary>
 /// Add the panel in the collection.
 /// </summary>
 /// <param name="dIWizardPanel"></param>
 public void Add(DIWizardPanel dIWizardPanel)
 {
     this.List.Add(dIWizardPanel);
 }
예제 #20
0
        public void RemoveFromHistory(DIWizardPanel.PanelType panelType, bool isIndicatorFirstPage)
        {
            try
            {
                if (this._SelectionOrder.Count >= 2)
                {
                    this._SelectionOrder.RemoveAt(this._SelectionOrder.Count - 1);
                }
            }
            catch (Exception)
            {
            }

            ////switch (panelType)
            ////{
            ////    case DIWizardPanel.PanelType.Indicator:
            ////        if (this._SelectionOrder.Count >= 2)
            ////        {
            ////            if (isIndicatorFirstPage)
            ////            {
            ////                if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Indicator.ToString()))
            ////                {
            ////                    this._SelectionOrder.Remove(DIWizardPanel.PanelType.Indicator.ToString());
            ////                }
            ////                if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Area.ToString()))
            ////                {
            ////                    this._SelectionOrder.Remove(DIWizardPanel.PanelType.Area.ToString());
            ////                }
            ////            }
            ////            else
            ////            {
            ////                if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Indicator.ToString()))
            ////                {
            ////                    this._SelectionOrder.Remove(DIWizardPanel.PanelType.Indicator.ToString());
            ////                }
            ////            }
            ////        }
            ////        break;
            ////    case DIWizardPanel.PanelType.Area:
            ////        if (this._SelectionOrder.Count >= 2)
            ////        {
            ////            if (!isIndicatorFirstPage)
            ////            {
            ////                if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Indicator.ToString()))
            ////                {
            ////                    this._SelectionOrder.Remove(DIWizardPanel.PanelType.Indicator.ToString());
            ////                }
            ////                if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Area.ToString()))
            ////                {
            ////                    this._SelectionOrder.Remove(DIWizardPanel.PanelType.Area.ToString());
            ////                }
            ////            }
            ////            else
            ////            {
            ////                if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Area.ToString()))
            ////                {
            ////                    this._SelectionOrder.Remove(DIWizardPanel.PanelType.Area.ToString());
            ////                }
            ////            }
            ////        }
            ////        break;
            ////    case DIWizardPanel.PanelType.TimePeriod:
            ////        if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.TimePeriod.ToString()))
            ////        {
            ////            this._SelectionOrder.Remove(DIWizardPanel.PanelType.TimePeriod.ToString());
            ////        }
            ////        break;
            ////    case DIWizardPanel.PanelType.Source:
            ////        if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Source.ToString()))
            ////        {
            ////            this._SelectionOrder.Remove(DIWizardPanel.PanelType.Source.ToString());
            ////        }
            ////        break;
            ////    case DIWizardPanel.PanelType.Database:
            ////        if (this._SelectionOrder.Contains(DIWizardPanel.PanelType.Database.ToString()))
            ////        {
            ////            this._SelectionOrder.Remove(DIWizardPanel.PanelType.Database.ToString());
            ////        }
            ////        break;
            ////    case DIWizardPanel.PanelType.Gallery:
            ////        break;
            ////    default:
            ////        break;
            ////}
        }