当前位置: 首页>>代码示例>>C#>>正文


C# TabState类代码示例

本文整理汇总了C#中TabState的典型用法代码示例。如果您正苦于以下问题:C# TabState类的具体用法?C# TabState怎么用?C# TabState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TabState类属于命名空间,在下文中一共展示了TabState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnTabStateRemoved

		void OnTabStateRemoved(TabState tabState) {
			var hts = tabState as HexTabState;
			if (hts == null)
				return;

			hts.HexBox.OnWrite -= HexBox_OnWrite;
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:7,代码来源:HexBoxUndo.cs

示例2: WeaponTab

 void WeaponTab()
 {
     if (GUILayout.Button("Weapons"))
     {
         tabState = TabState.WEAPON;
     }
 }
开发者ID:mnapier,项目名称:ItemSystem,代码行数:7,代码来源:ISObjectTopTabBar.cs

示例3: ArmorTab

 void ArmorTab()
 {
     if (GUILayout.Button("Armor"))
     {
         tabState = TabState.ARMOR;
     }
 }
开发者ID:mnapier,项目名称:ItemSystem,代码行数:7,代码来源:ISObjectTopTabBar.cs

示例4: PotionTab

 void PotionTab()
 {
     if (GUILayout.Button("Potions"))
     {
         tabState = TabState.POTION;
     }
 }
开发者ID:mnapier,项目名称:ItemSystem,代码行数:7,代码来源:ISObjectTopTabBar.cs

示例5: AboutTab

 void AboutTab()
 {
     if (GUILayout.Button("About"))
     {
         tabState = TabState.ABOUT;
     }
 }
开发者ID:mnapier,项目名称:ItemSystem,代码行数:7,代码来源:ISObjectTopTabBar.cs

示例6: OnTabStateChanged

			void OnTabStateChanged(TabState oldTabState, TabState newTabState) {
				var oldTsd = oldTabState as DecompileTabState;
				if (oldTsd != null)
					oldTsd.TextView.OnShowOutput -= DecompilerTextView_OnShowOutput;
				var newTsd = newTabState as DecompileTabState;
				if (newTsd != null)
					newTsd.TextView.OnShowOutput += DecompilerTextView_OnShowOutput;
			}
开发者ID:nakijun,项目名称:dnSpy,代码行数:8,代码来源:LocalsControl.xaml.cs

示例7: OnEnable

        void OnEnable()
        {
            tabState = TabState.QUALITY;

            weaponDatabase = new ISObjectDatabaseType<ISWeaponDatabase, ISWeapon>(DatabaseManager.weaponDatabase, "Weapon");
            armorDatabase = new ISObjectDatabaseType<ISArmorDatabase, ISArmor>(DatabaseManager.armorDatabase, "Armor");
            consumableDatabase = new ISObjectDatabaseType<ISConsumableDatabase, ISConsumable>(DatabaseManager.consumableDatabase, "Consumable");
            qualityDatabase = new ISObjectDatabaseType<ISQualityDatabase, ISQuality>(DatabaseManager.qualityDatabase, "Quality");
        }
开发者ID:pgpizza,项目名称:HackNSlash5Tut,代码行数:9,代码来源:ItemObjectEditor.cs

示例8: TabStateEventArgs

 public TabStateEventArgs(TabState tabState)
 {
     this.TabState = tabState;
 }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:4,代码来源:MainWindow.xaml.cs

示例9: TabStateChangedEventArgs

 public TabStateChangedEventArgs(TabState oldTabState, TabState newTabState)
 {
     this.OldTabState = oldTabState;
     this.NewTabState = newTabState;
 }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:5,代码来源:MainWindow.xaml.cs

示例10: ZoomReset

        void ZoomReset(TabState tabState)
        {
            if (tabState == null)
                return;

            SetScaleValue(tabState, 1);
        }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:7,代码来源:MainWindow.xaml.cs

示例11: tabManager_OnSelectionChanged

        internal void tabManager_OnSelectionChanged(TabManager<TabState> tabManager, TabState oldState, TabState newState)
        {
            UninitializeActiveTab(oldState, false);
            InitializeActiveTab(newState, false);

            if (IsActiveTab(newState))
                SetTabFocus(newState);

            if (OnTabStateChanged != null)
                OnTabStateChanged(this, new TabStateChangedEventArgs(oldState, newState));
        }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:11,代码来源:MainWindow.xaml.cs

示例12: OnTabStateChanged

        void OnTabStateChanged(TabState oldTabState, TabState newTabState)
        {
            var oldTsd = oldTabState as DecompileTabState;
            if (oldTsd != null) {
                oldTsd.TextView.OnBeforeShowOutput -= DecompilerTextView_OnBeforeShowOutput;
                oldTsd.TextView.OnShowOutput -= DecompilerTextView_OnShowOutput;
            }
            var newTsd = newTabState as DecompileTabState;
            if (newTsd != null) {
                newTsd.TextView.OnBeforeShowOutput += DecompilerTextView_OnBeforeShowOutput;
                newTsd.TextView.OnShowOutput += DecompilerTextView_OnShowOutput;
            }

            if (oldTsd != null)
                Remove(oldTsd.TextView);
            if (newTsd != null)
                UpdateStackFrameLines(newTsd.TextView);
        }
开发者ID:kenwilcox,项目名称:dnSpy,代码行数:18,代码来源:StackFrameManager.cs

示例13: IgnoreSelectionChanged_HACK

 internal bool IgnoreSelectionChanged_HACK(TabState tabState)
 {
     var tabManager = tabState.Owner;
     bool value;
     tabManager_dontSelectHack.TryGetValue(tabManager, out value);
     tabManager_dontSelectHack[tabManager] = true;
     return value;
 }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:8,代码来源:MainWindow.xaml.cs

示例14: CloneTabMakeActive

 internal TabState CloneTabMakeActive(TabState tabState, bool decompile = true)
 {
     var clonedTabState = CloneTab(tabState, decompile);
     if (clonedTabState != null)
         tabGroupsManager.ActiveTabGroup.SetSelectedTab(clonedTabState);
     return clonedTabState;
 }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:7,代码来源:MainWindow.xaml.cs

示例15: SetTabFocus

        void SetTabFocus(TabState tabState)
        {
            if (disable_SetTabFocus)
                return;
            if (tabState == null)
                return;
            if (!IsActiveTab(tabState))
                return;
            if (tabState.TabItem.Content == null)
                return;

            var uiElem = tabState.FocusedElement;
            Debug.Assert(uiElem != null);
            if (uiElem == null)
                return;

            if (!uiElem.IsVisible)
                new SetFocusWhenVisible(tabState, uiElem);
            else
                SetFocusIfNoMenuIsOpened(uiElem);
        }
开发者ID:DeepSkyFire,项目名称:dnSpy,代码行数:21,代码来源:MainWindow.xaml.cs


注:本文中的TabState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。