Esempio n. 1
0
        private void OnDialogLoad(object sender, EventArgs eventArgs)
        {
            CompatibilityLevel compatibilityLevel = m_compatibilityReport.CompatibilityLevel;

            m_overallCompatibilityValue.Text = compatibilityLevel.ToString();

            foreach (CompatibilityNote compatibilityNote in m_compatibilityReport.CompatibilityNotes)
            {
                Image image = null;
                switch (compatibilityNote.CompatibilityLevel)
                {
                case CompatibilityLevel.Full: image = Properties.Resources.MapCompatibilityFull; break;

                case CompatibilityLevel.Partial: image = Properties.Resources.MapCompatibilityPartial; break;

                case CompatibilityLevel.None: image = Properties.Resources.MapCompatibilityNone; break;
                }
                m_notesDataGridView.Rows.Add(
                    new object[] { image, compatibilityNote.CompatibilityLevel, compatibilityNote.Remarks });
            }
            m_notesDataGridView.ClearSelection();

            m_okButton.Enabled = compatibilityLevel != CompatibilityLevel.None;
        }
Esempio n. 2
0
        public override List <KeyValuePair <string, string> > GetAsPropertyList()
        {
            var propList = new List <KeyValuePair <string, string> >();

            propList.Add(new KeyValuePair <string, string>(nameof(Title), Title));
            propList.Add(new KeyValuePair <string, string>(nameof(Name), Name));
            propList.Add(new KeyValuePair <string, string>(nameof(CompatibilityLevel), CompatibilityLevel.ToString()));
            propList.Add(new KeyValuePair <string, string>(nameof(Description), Description));
            propList.Add(new KeyValuePair <string, string>(nameof(Hidden), Hidden.ToString()));
            propList.Add(new KeyValuePair <string, string>(nameof(SolutionId), SolutionId.ToString()));
            propList.Add(new KeyValuePair <string, string>(nameof(UIVersion), UIVersion.ToString()));
            propList.Add(new KeyValuePair <string, string>(nameof(Version), Version == null ? string.Empty : Version.ToString()));
            propList.Add(new KeyValuePair <string, string>(nameof(DefinitionInstallationScope), DefinitionInstallationScope));
            propList.Add(new KeyValuePair <string, string>(nameof(Properties), Common.StringUtilities.PropertiesToString(Properties)));

            propList.AddRange(GetAsPropertyList(true));

            return(propList);
        }