public MainForm(bool hideOnLoad) { System.Diagnostics.Debug.Assert(sInstance == null); sInstance = this; mShutdownThread = new Thread(new ThreadStart(ShutdownThread)); mHideOnLoad = hideOnLoad; InitializeComponent(); CreateControl(); Shown += new EventHandler(MainForm_Shown); mSpineThread = new SpineThread(); VolumeDescriptorList.CreateInstance(mSpineThread.EventController); mEventController = new MainFormEventController(this, mProgressBar, mTrayIcon); mUserControlSwitcher.BuildUserControlList(); }
public MainForm( bool hideOnLoad ) { System.Diagnostics.Debug.Assert( sInstance == null ); sInstance = this; mShutdownThread = new Thread( new ThreadStart( ShutdownThread ) ); mHideOnLoad = hideOnLoad; InitializeComponent(); CreateControl(); Shown += new EventHandler( MainForm_Shown ); mSpineThread = new SpineThread(); VolumeDescriptorList.CreateInstance( mSpineThread.EventController ); mEventController = new MainFormEventController( this, mProgressBar, mTrayIcon ); mUserControlSwitcher.BuildUserControlList(); }