コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        static MyGuiManager()
        {
#if XB1 // XB1_ALLINONEASSEMBLY
            MyGuiControlsFactory.RegisterDescriptorsFromAssembly(MyAssembly.AllInOneAssembly);
#else // !XB1
            MyGuiControlsFactory.RegisterDescriptorsFromAssembly(Assembly.GetCallingAssembly());
#endif // !XB1
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 static MyGuiManager()
 {
     MyGuiControlsFactory.RegisterDescriptorsFromAssembly(Assembly.GetCallingAssembly());
 }