Exemple #1
0
        /// <summary>
        /// Implement Command that Load the templates list
        /// </summary>
        void ExecuteReloadTemplatesCommand(object parameter)
        {
            //if (_SelectedTag != null && _SelectedTemplateFile != null)
            //{
            //    return true;
            //}
            //else
            //{
            //    return _SelectedApplication != null &&
            //           _SelectedSnapshot != null &&
            //           _SelectedTemplateFile != null;
            //}
            if (SelectedTab == 0)
            {
                SelectedCategory      = null;
                _SelectedCategory     = null;
                _SelectedTemplateFile = null;
                SelectedTemplateFile  = null;
                TemplateFiles         = SettingsBLL.GetTemplateFileList();
            }
            else
            if (SelectedTab == 1)
            {
                SelectedApplication  = null;
                SelectedSnapshot     = null;
                _SelectedApplication = null;
                _SelectedSnapshot    = null;


                TemplateFiles = SettingsBLL.GetTemplateFileListPortfolio();
            }
        }
Exemple #2
0
 /// <summary>
 /// Implement Command that Load the templates list
 /// </summary>
 void ExecuteLoadTemplatesCommand(object parameter)
 {
     if (SelectedTab == 0)
     {
         TemplateFiles = SettingsBLL.GetTemplateFileList();
     }
     else
     if (SelectedTab == 1)
     {
         TemplateFiles = SettingsBLL.GetTemplateFileListPortfolio();
     }
 }
        /// <summary>
        /// Implement Command that Load the templates list
        /// </summary>
        private void ExecuteLoadTemplatesCommand(object parameter)
        {
            switch (SelectedTab)
            {
            case 0:
                TemplateFiles = SettingsBLL.GetTemplateFileList();
                break;

            case 1:
                TemplateFiles = SettingsBLL.GetTemplateFileListPortfolio();
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
        /// <summary>
        /// Implement Command that Load the templates list
        /// </summary>
        void ExecuteReloadTemplatesCommand(object parameter)
        {
            switch (SelectedTab)
            {
            case 0:
                SelectedCategory      = null;
                _SelectedCategory     = null;
                _SelectedTemplateFile = null;
                SelectedTemplateFile  = null;
                TemplateFiles         = SettingsBLL.GetTemplateFileList();
                break;

            case 1:
                SelectedApplication  = null;
                SelectedSnapshot     = null;
                _SelectedApplication = null;
                _SelectedSnapshot    = null;
                TemplateFiles        = SettingsBLL.GetTemplateFileListPortfolio();
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }