Пример #1
0
 /// <summary>
 /// Creates a new AdParkImportForm
 /// </summary>
 /// <param name="conn">An IGADatabaseConnector object.</param>
 /// <param name="ads">An AdPack instance to import</param>
 public AdPackImportForm(IGADatabaseConnector conn, AdPack ads)
 {
     this.ads = ads;
     foreach (KeyValuePair<uint, ContentEntry> item in conn.GetAllEntries(false))
     {
         ContentTypes.Add(item.Key, item.Value.contentType);
     }
     this.conn = conn;
     InitializeComponent();
 }
Пример #2
0
        /// <summary>
        /// Creates a new AdPackExportForm.
        /// </summary>
        /// <param name="conn">The connection to get images from.</param>
        public AdPackExportForm(IGADatabaseConnector conn)
        {
            this.AppID = conn.AppID;

            foreach (KeyValuePair<uint, ContentEntry> item in conn.GetAllEntries(false))
            {
                ContentTypes.Add(item.Key, item.Value.contentType);
            }

            //this.ContentTypes = null;
            this.conn = conn;
            InitializeComponent();
        }