コード例 #1
0
        public void DisplayEmptyJob(string name)
        {
            Type type = assemblyResolver.ResolveType(name);
            client = (ISqlClient)Activator.CreateInstance(type);

            foreach (var property in client.GetType().GetProperties())
            {
                if (property.Name != "ClientName" && property.Name != "Type")
                {
                    var value = GetPropertyValue(client, property);
                    var help = GetHelp(property);
                    this.AddPair(property.Name, value, help);
                }
            }
            HelpPanel();
            this.AddButton(client, "Test", this.TestButtonClick);
            this.AddButton(client, "Add", this.AddJobButtonClick);
        }