//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; } }
public Menu_GlobeUC() { menu_GlobeUC = this; InitializeComponent(); AnimationBoxSubMenuUC(); }