Exemplo n.º 1
0
        private void InitPublicModules()
        {
            //隐藏全部窗体
            var modulesItem_HideAllWindows = new ModulesItem(this, PublicModulesKeys.HideAllWindows, string.Format("{0}{1}", TextResource.Hide, TextResource.AllWindow));

            modulesItem_HideAllWindows.Type = ModulesType.Keys;
            modulesItem_HideAllWindows.Register(HideAllWindows);
            PublicModules.Current.Add(modulesItem_HideAllWindows);
            //显示全部窗体
            var modulesItem_ShowAllWindows = new ModulesItem(this, PublicModulesKeys.ShowAllWindows, string.Format("{0}{1}", TextResource.Show, TextResource.AllWindow));

            modulesItem_ShowAllWindows.Type = ModulesType.Keys;
            modulesItem_ShowAllWindows.Register(ShowAllWindows);
            PublicModules.Current.Add(modulesItem_ShowAllWindows);
            //显示隐藏全部窗体
            var modulesItem_ChangeAllWindowsByMainWindow = new ModulesItem(this, PublicModulesKeys.ChangeAllWindowsByMainWindow, string.Format("{0}/{1}{2}", TextResource.Show, TextResource.Hide, TextResource.AllWindow));

            modulesItem_ChangeAllWindowsByMainWindow.Register(ChangeAllWindowsByMainWindow);
            PublicModules.Current.Add(modulesItem_ChangeAllWindowsByMainWindow);

            //切换tabs
            var modulesItem_ChangeTabs = new ModulesItem(this, PublicModulesKeys.ChangeTabs, TextResource.ChangeTabs);

            modulesItem_ChangeTabs.Type = ModulesType.Keys;
            modulesItem_ChangeTabs.Register(WindowViewModules.Current.WindowViewHelper.ChangeTabs);
            PublicModules.Current.Add(modulesItem_ChangeTabs);

            //开关声音
            var modulesItem_ToggleMute = new ModulesItem(this, PublicModulesKeys.ToggleMute, TextResource.ToggleMute);

            modulesItem_ToggleMute.Type = ModulesType.Keys;
            modulesItem_ToggleMute.Register(ToggleMute);
            PublicModules.Current.Add(modulesItem_ToggleMute);
            //截图
            var modulesItem_TakeScreenshot = new ModulesItem(this, PublicModulesKeys.TakeScreenshot, TextResource.Screenshot);

            modulesItem_TakeScreenshot.Type = ModulesType.Keys;
            modulesItem_TakeScreenshot.Register(TakeScreenshot);
            PublicModules.Current.Add(modulesItem_TakeScreenshot);

            //舰娘一览
            var modulesItem_ShowShipCatalog = new ModulesItem(this, PublicModulesKeys.ShowShipCatalog, TextResource.ShowShipCatalog);

            modulesItem_ShowShipCatalog.Register(ShowShipCatalog);
            PublicModules.Current.Add(modulesItem_ShowShipCatalog);
            //装备一览
            var modulesItem_ShowSlotItemCatalog = new ModulesItem(this, PublicModulesKeys.ShowSlotItemCatalog, TextResource.ShowSlotItemCatalog);

            modulesItem_ShowSlotItemCatalog.Register(ShowSlotItemCatalog);
            PublicModules.Current.Add(modulesItem_ShowSlotItemCatalog);
        }
Exemplo n.º 2
0
        private void InitPublicModules()
        {
            //隐藏全部窗体
            var modulesItem_HideAllWindows = new ModulesItem(this, PublicModulesKeys.HideAllWindows, string.Format("{0}{1}", TextResource.Hide, TextResource.AllWindow));
            modulesItem_HideAllWindows.Type = ModulesType.Keys;
            modulesItem_HideAllWindows.Register(HideAllWindows);
            PublicModules.Current.Add(modulesItem_HideAllWindows);
            //显示全部窗体
            var modulesItem_ShowAllWindows = new ModulesItem(this, PublicModulesKeys.ShowAllWindows, string.Format("{0}{1}", TextResource.Show, TextResource.AllWindow));
            modulesItem_ShowAllWindows.Type = ModulesType.Keys;
            modulesItem_ShowAllWindows.Register(ShowAllWindows);
            PublicModules.Current.Add(modulesItem_ShowAllWindows);
            //显示隐藏全部窗体
            var modulesItem_ChangeAllWindowsByMainWindow = new ModulesItem(this, PublicModulesKeys.ChangeAllWindowsByMainWindow, string.Format("{0}/{1}{2}", TextResource.Show, TextResource.Hide, TextResource.AllWindow));
            modulesItem_ChangeAllWindowsByMainWindow.Register(ChangeAllWindowsByMainWindow);
            PublicModules.Current.Add(modulesItem_ChangeAllWindowsByMainWindow);

            //切换tabs
            var modulesItem_ChangeTabs = new ModulesItem(this, PublicModulesKeys.ChangeTabs, TextResource.ChangeTabs);
            modulesItem_ChangeTabs.Type = ModulesType.Keys;
            modulesItem_ChangeTabs.Register(WindowViewModules.Current.WindowViewHelper.ChangeTabs);
            PublicModules.Current.Add(modulesItem_ChangeTabs);

            //开关声音
            var modulesItem_ToggleMute = new ModulesItem(this, PublicModulesKeys.ToggleMute, TextResource.ToggleMute);
            modulesItem_ToggleMute.Type = ModulesType.Keys;
            modulesItem_ToggleMute.Register(ToggleMute);
            PublicModules.Current.Add(modulesItem_ToggleMute);
            //截图
            var modulesItem_TakeScreenshot = new ModulesItem(this, PublicModulesKeys.TakeScreenshot, TextResource.Screenshot);
            modulesItem_TakeScreenshot.Type = ModulesType.Keys;
            modulesItem_TakeScreenshot.Register(TakeScreenshot);
            PublicModules.Current.Add(modulesItem_TakeScreenshot);

            //舰娘一览
            var modulesItem_ShowShipCatalog = new ModulesItem(this, PublicModulesKeys.ShowShipCatalog, TextResource.ShowShipCatalog);
            modulesItem_ShowShipCatalog.Register(ShowShipCatalog);
            PublicModules.Current.Add(modulesItem_ShowShipCatalog);
            //装备一览
            var modulesItem_ShowSlotItemCatalog = new ModulesItem(this, PublicModulesKeys.ShowSlotItemCatalog, TextResource.ShowSlotItemCatalog);
            modulesItem_ShowSlotItemCatalog.Register(ShowSlotItemCatalog);
            PublicModules.Current.Add(modulesItem_ShowSlotItemCatalog);
        }
Exemplo n.º 3
0
        void InitPublicModules()
        {
            var modulesItem_EnableSimpleFleet = new ModulesItem(
                this,
                PublicModulesKeys.EnableSimpleFleet,
                string.Format("{0}/{1}{2}", TextResource.Show, TextResource.Hide, TextResource.SimpleFleet));

            modulesItem_EnableSimpleFleet.Register(ShowHideSimpleFleet);

            PublicModules.Current.Add(modulesItem_EnableSimpleFleet);

            var modulesItem_GhostSimpleFleet = new ModulesItem(
                this,
                PublicModulesKeys.GhostSimpleFleet,
                string.Format("{0}{1}", TextResource.SimpleFleet, TextResource.ChangeGhostMode));

            modulesItem_GhostSimpleFleet.Register(GhostSimpleFleet);

            PublicModules.Current.Add(modulesItem_GhostSimpleFleet);
        }
Exemplo n.º 4
0
        void InitPublicModules()
        {
            var modulesItem_EnableSimpleFleet = new ModulesItem(
                this,
                PublicModulesKeys.EnableSimpleFleet,
                string.Format("{0}/{1}{2}", TextResource.Show, TextResource.Hide, TextResource.SimpleFleet));
            modulesItem_EnableSimpleFleet.Register(ShowHideSimpleFleet);

            PublicModules.Current.Add(modulesItem_EnableSimpleFleet);

            var modulesItem_GhostSimpleFleet = new ModulesItem(
                this,
                PublicModulesKeys.GhostSimpleFleet,
                string.Format("{0}{1}", TextResource.SimpleFleet, TextResource.ChangeGhostMode));
            modulesItem_GhostSimpleFleet.Register(GhostSimpleFleet);

            PublicModules.Current.Add(modulesItem_GhostSimpleFleet);
        }