Ejemplo n.º 1
0
 public ImportLibrary(Library src)
 {
     //
     // The InitializeComponent() call is required for Windows Forms designer support.
     //
     InitializeComponent();
     Importer = null;
     //
     // TODO: Add constructor code after the InitializeComponent() call.
     //
     Host=src;
 }
Ejemplo n.º 2
0
        public MainForm()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            Skybound.Gecko.Xpcom.Initialize("xulrunner");
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            /// <summary>
            /// Read settings
            /// </summary>
            /// <returns></returns>
            ReadSettings();

            /// Define views

            Views = new Dictionary<String,UserControl>();
            DM = new DownloadManager();
            Store = new ucStore(this);
            nowPlaying = new MediaChrome.NowPlaying();
            Library = new Library();
                Settings = new Settings(this);
            this.panel1.Controls.Add(Settings);
            this.panel1.Controls.Add(DM);
            this.panel1.Controls.Add(Store);
            this.panel1.Controls.Add(Library);
            this.panel1.Controls.Add(nowPlaying);
            /// <summary>
            ///  Add the panes to the player
            /// </summary>

            Store.Manager=DM;
            Views.Add("NowPlaying",nowPlaying);
            Views.Add("Downloads",DM);
            Views.Add("Settings",Settings);
            Views.Add("Store",Store);
            Views.Add("Library",Library);
            nowPlaying.Show();

            ActivateView("Library");
            // This is a service token for the swedish service 'CDON.com'
            TrackServiceTokens.Add("dle.247.base.com","tomcat");
            AlbumServiceTokens.Add("downloads.cdon.com","getDlFile.phtml");

            /// <summary>
            /// Set built-in media engines
            /// </summary>
            /// <returns></returns>

            //
            // TODO: Add additional engine loading here
            //

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }