Example #1
0
        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();
        }
Example #2
0
        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();
        }