//
// https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQRzgHBKFOgt1WhWupkoO8YeHzusIlxY5zclfyC74pwKvwpFSAF
//
using System;
using System.Collections.Generic;
using System.Net.Mail;
using acApp = Autodesk.AutoCAD.ApplicationServices.Application;
using devTech = Autodesk.DeveloperNetwork.Organization.DeveloperTechnicalServices;
namespace Autodesk
{
internal class DeveloperNetwork
{
public static string Country(string key)
{
if (CountryCodes.ContainsKey(key))
{
return CountryCodes[key];
}
return "";
}
internal class ADNMember
{
public static DateTime AutoDeskProductUserSince { get; set; }
public static string Biography { get; set; }
public static string Country { get; set; }
public static MailAddress EmailAddress { get; set; }
public static bool IsNotPresumptuous { get; set; }
public static string Title { get; set; }
public static string Membership { get; set; }
public static string Name { get; set; }
public static string Organization { get; set; }
public static string PrimaryField { get; set; }
public Employee() { }
public static void MightActuallyGetAnApology()
{
throw new DontHoldYourBreathException
(); }
public static void CanSodOff()
{
throw new CanSodOffException
(); }
public static void Says()
{
acApp.DocumentManager.MdiActiveDocument.Editor.WriteMessage(
"\n** RenderMan and I agree, that \"Bow ties are cool\" ** ");
}
internal class RequestForAnApology
{
public static bool IsSincere { get; internal set; }
public RequestForAnApology() { }
}
}
internal class Organization
{
public Organization() { }
internal class DeveloperTechnicalServices
{
public static string FullName
{
get { return "Developer Technical Services"; }
}
public static string CommonName
{
get { return "DevTech"; }
}
public static List<string> Members
{
get
{
return new List
<string>() {
DeveloperNetwork.StephenPreston.Name
// others
};
}
}
}
}
internal class StephenPreston : ADNMember
{
public StephenPreston()
{
AutoDeskProductUserSince
= new DateTime
(2000,
1,
1,
6,
32,
0); Biography =
// source: http://au.autodesk.com/?nd=public_profile&account_id=116657
"Stephen Preston has been a member of the Autodesk Developer Technical Services (DevTech) Team since 2000, supporting the AutoCAD®, ObjectARX®, .NET and ActiveX® APIs, and also AutoCAD OEM, and RealDWG®. Currently, he manages the DevTech Americas Team and serves as workgroup lead, working closely with the AutoCAD Engineering Team on future improvements in the AutoCAD APIs. Stephen started his career as a scientist, and has a PhD in atomic and laser physics from the University of Oxford. ";
Country = DeveloperNetwork.Country("USA");
EmailAddress
= new MailAddress
("stephen.preston@autodesk.com",
"Stephen Preston"); Title = "Senior Americas Manager";
Membership = devTech.CommonName;
Name = "Stephen Preston";
Organization = devTech.FullName;
PrimaryField = "Other";
}
}
#region "CountryCodes"
private static Dictionary<string, string> CountryCodes =
new Dictionary
<string,
string>() {
{ "AFG", "AF" }, // Afghanistan
{ "ALB", "AL" }, // Albania
{ "ARE", "AE" }, // U.A.E.
{ "ARG", "AR" }, // Argentina
{ "ARM", "AM" }, // Armenia
{ "AUS", "AU" }, // Australia
{ "AUT", "AT" }, // Austria
{ "AZE", "AZ" }, // Azerbaijan
{ "BEL", "BE" }, // Belgium
{ "BGD", "BD" }, // Bangladesh
{ "BGR", "BG" }, // Bulgaria
{ "BHR", "BH" }, // Bahrain
{ "BIH", "BA" }, // Bosnia and Herzegovina
{ "BLR", "BY" }, // Belarus
{ "BLZ", "BZ" }, // Belize
{ "BOL", "BO" }, // Bolivia
{ "BRA", "BR" }, // Brazil
{ "BRN", "BN" }, // Brunei Darussalam
{ "CAN", "CA" }, // Canada
{ "CHE", "CH" }, // Switzerland
{ "CHL", "CL" }, // Chile
{ "CHN", "CN" }, // People's Republic of China
{ "COL", "CO" }, // Colombia
{ "CRI", "CR" }, // Costa Rica
{ "CZE", "CZ" }, // Czech Republic
{ "DEU", "DE" }, // Germany
{ "DNK", "DK" }, // Denmark
{ "DOM", "DO" }, // Dominican Republic
{ "DZA", "DZ" }, // Algeria
{ "ECU", "EC" }, // Ecuador
{ "EGY", "EG" }, // Egypt
{ "ESP", "ES" }, // Spain
{ "EST", "EE" }, // Estonia
{ "ETH", "ET" }, // Ethiopia
{ "FIN", "FI" }, // Finland
{ "FRA", "FR" }, // France
{ "FRO", "FO" }, // Faroe Islands
{ "GBR", "GB" }, // United Kingdom
{ "GEO", "GE" }, // Georgia
{ "GRC", "GR" }, // Greece
{ "GRL", "GL" }, // Greenland
{ "GTM", "GT" }, // Guatemala
{ "HKG", "HK" }, // Hong Kong S.A.R.
{ "HND", "HN" }, // Honduras
{ "HRV", "HR" }, // Croatia
{ "HUN", "HU" }, // Hungary
{ "IDN", "ID" }, // Indonesia
{ "IND", "IN" }, // India
{ "IRL", "IE" }, // Ireland
{ "IRN", "IR" }, // Iran
{ "IRQ", "IQ" }, // Iraq
{ "ISL", "IS" }, // Iceland
{ "ISR", "IL" }, // Israel
{ "ITA", "IT" }, // Italy
{ "JAM", "JM" }, // Jamaica
{ "JOR", "JO" }, // Jordan
{ "JPN", "JP" }, // Japan
{ "KAZ", "KZ" }, // Kazakhstan
{ "KEN", "KE" }, // Kenya
{ "KGZ", "KG" }, // Kyrgyzstan
{ "KHM", "KH" }, // Cambodia
{ "KOR", "KR" }, // Korea
{ "KWT", "KW" }, // Kuwait
{ "LAO", "LA" }, // Lao P.D.R.
{ "LBN", "LB" }, // Lebanon
{ "LBY", "LY" }, // Libya
{ "LIE", "LI" }, // Liechtenstein
{ "LKA", "LK" }, // Sri Lanka
{ "LTU", "LT" }, // Lithuania
{ "LUX", "LU" }, // Luxembourg
{ "LVA", "LV" }, // Latvia
{ "MAC", "MO" }, // Macao S.A.R.
{ "MAR", "MA" }, // Morocco
{ "MCO", "MC" }, // Principality of Monaco
{ "MDV", "MV" }, // Maldives
{ "MEX", "MX" }, // Mexico
{ "MKD", "MK" }, // Macedonia (FYROM)
{ "MLT", "MT" }, // Malta
{ "MNE", "ME" }, // Montenegro
{ "MNG", "MN" }, // Mongolia
{ "MYS", "MY" }, // Malaysia
{ "NGA", "NG" }, // Nigeria
{ "NIC", "NI" }, // Nicaragua
{ "NLD", "NL" }, // Netherlands
{ "NOR", "NO" }, // Norway
{ "NPL", "NP" }, // Nepal
{ "NZL", "NZ" }, // New Zealand
{ "OMN", "OM" }, // Oman
{ "PAK", "PK" }, // Islamic Republic of Pakistan
{ "PAN", "PA" }, // Panama
{ "PER", "PE" }, // Peru
{ "PHL", "PH" }, // Republic of the Philippines
{ "POL", "PL" }, // Poland
{ "PRI", "PR" }, // Puerto Rico
{ "PRT", "PT" }, // Portugal
{ "PRY", "PY" }, // Paraguay
{ "QAT", "QA" }, // Qatar
{ "ROU", "RO" }, // Romania
{ "RUS", "RU" }, // Russia
{ "RWA", "RW" }, // Rwanda
{ "SAU", "SA" }, // Saudi Arabia
{ "SCG", "CS" }, // Serbia and Montenegro (Former)
{ "SEN", "SN" }, // Senegal
{ "SGP", "SG" }, // Singapore
{ "SLV", "SV" }, // El Salvador
{ "SRB", "RS" }, // Serbia
{ "SVK", "SK" }, // Slovakia
{ "SVN", "SI" }, // Slovenia
{ "SWE", "SE" }, // Sweden
{ "SYR", "SY" }, // Syria
{ "TAJ", "TJ" }, // Tajikistan
{ "THA", "TH" }, // Thailand
{ "TKM", "TM" }, // Turkmenistan
{ "TTO", "TT" }, // Trinidad and Tobago
{ "TUN", "TN" }, // Tunisia
{ "TUR", "TR" }, // Turkey
{ "TWN", "TW" }, // Taiwan
{ "UKR", "UA" }, // Ukraine
{ "URY", "UY" }, // Uruguay
{ "USA", "US" }, // United States
{ "UZB", "UZ" }, // Uzbekistan
{ "VEN", "VE" }, // Bolivarian Republic of Venezuela
{ "VNM", "VN" }, // Vietnam
{ "YEM", "YE" }, // Yemen
{ "ZAF", "ZA" }, // South Africa
{ "ZWE", "ZW" }, // Zimbabwe
};
#endregion
}
public class ForThePurposesOfLevityException : System.Exception
{
public ForThePurposesOfLevityException(string msg) : base(msg) { }
}
public class DontHoldYourBreathException : ForThePurposesOfLevityException
{
public DontHoldYourBreathException() : base("Too few arguments") { }
}
public class CanSodOffException : ForThePurposesOfLevityException
{
public CanSodOffException() : base("Jeff stirs pots") { }
}
}