Esempio n. 1
0
        public MenuUC()
        {
            menuUC = this;
            InitializeComponent();
            StopVoid();//Tắt âm thanh
            #region [Âm thanh các unit]
            mplayer1.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U01.mp3", UriKind.Relative));
            mplayer2.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U02.mp3", UriKind.Relative));
            mplayer3.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U03.mp3", UriKind.Relative));
            mplayer4.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U04.mp3", UriKind.Relative));
            mplayer5.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U05.mp3", UriKind.Relative));
            mplayer6.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U06.mp3", UriKind.Relative));
            mplayer7.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U07.mp3", UriKind.Relative));
            mplayer8.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U08.mp3", UriKind.Relative));
            mplayerAs.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U10.mp3", UriKind.Relative));
            mplayerPhonics.Open(new Uri(@"..\..\media\audio\global\BigF1_cdau_menu_U09.mp3", UriKind.Relative));
            #endregion

            #region [Hình ảnh các unit]
            uriImg1       = new Uri(@"\media\textures\global\Bt_unit_1_over.png", UriKind.Relative);
            uriImg2       = new Uri(@"\media\textures\global\Bt_unit_2_over.png", UriKind.Relative);
            uriImg3       = new Uri(@"\media\textures\global\Bt_unit_3_over.png", UriKind.Relative);
            uriImg4       = new Uri(@"\media\textures\global\Bt_unit_4_over.png", UriKind.Relative);
            uriImg5       = new Uri(@"\media\textures\global\Bt_unit_5_over.png", UriKind.Relative);
            uriImg6       = new Uri(@"\media\textures\global\Bt_unit_6_over.png", UriKind.Relative);
            uriImg7       = new Uri(@"\media\textures\global\Bt_unit_7_over.png", UriKind.Relative);
            uriImg8       = new Uri(@"\media\textures\global\Bt_unit_8_over.png", UriKind.Relative);
            uriImgAs      = new Uri(@"\media\textures\global\Bt_unit_10_over.png", UriKind.Relative);
            uriImgPhonics = new Uri(@"\media\textures\global\Bt_unit_9_over.png", UriKind.Relative);
            #endregion
        }
Esempio n. 2
0
        //public static SelectElementUC ButtonSelect;

        public HomeUC()
        {
            homeUC = this;
            InitializeComponent();

            grdHome.Visibility = Visibility.Visible;

            #region [Hình ảnh]
            uriClose = new Uri(@"..\..\media\audio\global\clickbutton.mp3", UriKind.Relative);
            #endregion

            if (Global.Instance.ButtonMenuSelect == SelectElementUC._imgBt_unit_new)
            {
                ucMenu           = new MenuUC();
                ucBoxSubMenu     = new BoxSubMenuUC();
                ucMenu_Globe     = new Menu_GlobeUC();
                backgroudOpacity = new BackgroudOpacityUC();

                Global.Instance.WindowMain.grdBackgroudOpacityUC.Children.Add(backgroudOpacity);//Khởi tạo UC BackgroudOpacityUC
                Global.Instance.WindowMain.grdMenuUC.Children.Add(ucMenu);
                Global.Instance.WindowMain.grdBoxSubMenuUC.Children.Add(ucBoxSubMenu);
                Global.Instance.WindowMain.grdMenu_GlobeUC.Children.Add(ucMenu_Globe);

                BoxSubMenuUC.boxSubMenuUC.ChangeUnit("imgBt_unit_1");
                MenuUC.menuUC.IsVisibleButtonClick("imgBt_unit_1");
                Global.Instance.UnitSelect = Unit._unit1;
            }
        }