• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PackType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Message

 public Message(string user, DateTime time, PackType type, string body = "")
 {
     Body = body;
     User = user;
     Time = time;
     PacketType = type;
 }
开发者ID:kekal,项目名称:Chat,代码行数:7,代码来源:Message.cs


示例2: SwitchPack

	public void SwitchPack(){
		switch (curPackType) {
		case PackType.MedPack:
			curPackType = PackType.StimPack;
			break;
		case PackType.StimPack:
			curPackType = PackType.MedPack;
			break;
		}
	}
开发者ID:Fahrettin52,项目名称:Game-Lab-2.1,代码行数:10,代码来源:PackManager.cs


示例3: PackageCreatez

 public PackageCreatez(MainForm xParent, PackType xThisType)
 {
     this.MdiParent = xParent;
     xparent = xParent;
     InitializeComponent();
     List<PackageType> y = new List<PackageType>();
     if (xThisType == PackType.STFS)
     {
         xsession = new CreateSTFS();
         PackageType[] x = (PackageType[])Enum.GetValues(typeof(PackageType));
         y.AddRange(x);
         y.RemoveAll(new Predicate<PackageType>(ptcheck));
         node1.DataKey = (ushort)0xFFFF;
         node1.NodeClick += new EventHandler(xReturn_NodeClick);
         comboBoxEx1.SelectedIndex = 0;
         comboBoxEx4.DataSource = Enum.GetValues(typeof(SphereColor));
         comboBoxEx4.SelectedIndex = 0;
         comboBoxEx5.DataSource = Enum.GetValues(typeof(DashStyle));
         comboBoxEx5.SelectedIndex = 0;
         numericUpDown4.Value = xsession.ThemeSettings.AvatarLightingAmbient;
         numericUpDown7.Value = xsession.ThemeSettings.AvatarLightingDirectional3;
         numericUpDown8.Value = xsession.ThemeSettings.AvatarLightingDirectional0;
         numericUpDown9.Value = xsession.ThemeSettings.AvatarLightingDirectional1;
         numericUpDown10.Value = xsession.ThemeSettings.AvatarLightingDirectional2;
         advTree1.SelectedIndex = 0;
         tabItem7.Visible = false;
     }
     else
     {
         y.Add(PackageType.OriginalXboxGame);
         y.Add(PackageType.HDDInstalledGame);
         y.Add(PackageType.GamesOnDemand);
         y.Add(PackageType.SocialTitle);
         tabItem6.Visible = false;
         xhead = new HeaderData();
         tabItem5.Visible = false;
         tabItem4.Visible = false;
         comboBoxEx1.Visible = false;
     }
     xtype = xThisType;
     comboBoxEx2.DataSource = y.ToArray();
     comboBoxEx2.SelectedIndex = 0;
     comboBoxEx3.DataSource = Enum.GetValues(typeof(Languages));
     comboBoxEx3.SelectedIndex = 0;
     SetText();
 }
开发者ID:VictorOverX,项目名称:X360,代码行数:46,代码来源:PackageCreatez.cs


示例4: CreateStorageContext

 public static Storage CreateStorageContext(StorageType eStoreType, PackType ePackType)
 {
     IntPtr cPtr = otapiPINVOKE.CreateStorageContext__SWIG_0((int)eStoreType, (int)ePackType);
     Storage ret = (cPtr == IntPtr.Zero) ? null : new Storage(cPtr, true);
     return ret;
 }
开发者ID:Mindonaut,项目名称:Open-Transactions,代码行数:6,代码来源:otapi.cs


示例5: InitDefaultStorage

 public static bool InitDefaultStorage(StorageType eStoreType, PackType ePackType)
 {
     bool ret = otapiPINVOKE.InitDefaultStorage__SWIG_6((int)eStoreType, (int)ePackType);
     return ret;
 }
开发者ID:Mindonaut,项目名称:Open-Transactions,代码行数:5,代码来源:otapi.cs


示例6: Create

 public static Storage Create(StorageType eStorageType, PackType ePackType)
 {
     IntPtr cPtr = otapiPINVOKE.Storage_Create((int)eStorageType, (int)ePackType);
     Storage ret = (cPtr == IntPtr.Zero) ? null : new Storage(cPtr, false);
     return ret;
 }
开发者ID:22367rh,项目名称:Open-Transactions,代码行数:6,代码来源:Storage.cs


示例7: GetPacker

 public SWIGTYPE_p_OTPacker GetPacker(PackType ePackType)
 {
     IntPtr cPtr = otapiPINVOKE.Storage_GetPacker__SWIG_0(swigCPtr, (int)ePackType);
     SWIGTYPE_p_OTPacker ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_OTPacker(cPtr, false);
     return ret;
 }
开发者ID:22367rh,项目名称:Open-Transactions,代码行数:6,代码来源:Storage.cs


示例8: Create

 public static Storable Create(StoredObjectType eType, PackType thePackType)
 {
     IntPtr cPtr = otapiPINVOKE.Storable_Create((int)eType, (int)thePackType);
     Storable ret = (cPtr == IntPtr.Zero) ? null : new Storable(cPtr, false);
     return ret;
 }
开发者ID:da2ce7,项目名称:Open-Transactions-old,代码行数:6,代码来源:Storable.cs


示例9: comboBoxEx1_SelectedIndexChanged

 private void comboBoxEx1_SelectedIndexChanged(object sender, EventArgs e)
 {
     SelectedType = (PackType)comboBoxEx1.SelectedItem;
 }
开发者ID:VictorOverX,项目名称:X360,代码行数:4,代码来源:PackageTypeSel.cs


示例10: Constraints

 public Constraints(bool expand = false, bool fill = false, int padding = 0, PackType packType = PackType.Start)
 {
     mvarExpand = expand;
     mvarFill = fill;
     mvarPadding = padding;
     mvarPackType = packType;
 }
开发者ID:alcexhim,项目名称:UniversalWidgetToolkit,代码行数:7,代码来源:BoxLayout.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Package类代码示例发布时间:2022-05-24
下一篇:
C# PackFile类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap