コード例 #1
0
		public frmProducts()
			: base()
		{
			if (m_vb6FormDefInstance == null)
			{
				if (m_InitializingDefInstance)
				{
					m_vb6FormDefInstance = this;
				}
				else
				{
					try
					{
						//For the start-up form, the first instance created is the default instance.
						if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
						{
							m_vb6FormDefInstance = this;
						}
					}
					catch
					{
					}
				}
			}
			//This call is required by the Windows Form Designer.
			InitializeComponent();
			ReLoadForm(false);
		}
コード例 #2
0
        public static frmProducts CreateInstance()
        {
            frmProducts theInstance = new frmProducts();

            theInstance.Form_Load();
            return(theInstance);
        }
コード例 #3
0
ファイル: frmProducts.Designer.cs プロジェクト: xxdoc/SKS
 public frmProducts()
     : base()
 {
     if (m_vb6FormDefInstance == null)
     {
         if (m_InitializingDefInstance)
         {
             m_vb6FormDefInstance = this;
         }
         else
         {
             try
             {
                 //For the start-up form, the first instance created is the default instance.
                 if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
                 {
                     m_vb6FormDefInstance = this;
                 }
             }
             catch
             {
             }
         }
     }
     //This call is required by the Windows Form Designer.
     InitializeComponent();
     ReLoadForm(false);
 }