예제 #1
0
        /// <summary> 程序配置文件 </summary>

        #region ---   窗口的加载与关闭

        public form_Hm2Flac3D()
        {
            // This call is required by the designer.
            InitializeComponent();

            //Added to support default instance behavour in C#
            if (defaultInstance == null)
            {
                defaultInstance = this;
            }

            // Add any initialization after the InitializeComponent() call.

            worker                            = new BackgroundWorker();
            worker.DoWork                    += worker_DoWork;
            worker.RunWorkerCompleted        += worker_RunWorkerCompleted;
            worker.WorkerSupportsCancellation = true;
            worker.WorkerReportsProgress      = true;
            //
            ProgressBar1.MarqueeAnimationSpeed = 10;
            ProgressBar1.Visible = false;
            //
        }
예제 #2
0
 static void defaultInstance_FormClosed(object sender, FormClosedEventArgs e)
 {
     defaultInstance = null;
 }