Beispiel #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            AlbumTypeEnum type       = (AlbumTypeEnum)Convert.ToInt32(e.InitParams["Type"]);
            Int16         albumId    = Convert.ToInt16(e.InitParams["AlbumId"]);
            Guid          customerId = new Guid(e.InitParams["CustomerId"]);

            this.RootVisual = new MainPage(type, albumId, customerId);
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public MainPage(AlbumTypeEnum type, Int16 albumId, Guid customerId)
        {
            InitializeComponent();

            this.type       = type;
            this.albumId    = albumId;
            this.customerId = customerId;
        }
 protected static void LoadSilverlightControl(Literal initParams, AlbumTypeEnum type, Int16 albumId, Guid customerId)
 {
     initParams.Text = "<param name=\"initParams\" value=\"Type=" + ((int)type).ToString() + ",AlbumId=" + albumId.ToString() + ",CustomerId=" + customerId.ToString() + "\" />";
 }