Example #1
0
		public frmSales()
			: 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
					{
					}
				}
			}
			isInitializingComponent = true;
			InitializeComponent();
			isInitializingComponent = false;
			ReLoadForm(false);
		}
Example #2
0
 public frmSales()
     : 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
             {
             }
         }
     }
     isInitializingComponent = true;
     InitializeComponent();
     isInitializingComponent = false;
     ReLoadForm(false);
 }