示例#1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Main_Form Main = new Main_Form();
     Application.Run(Main);
 }
示例#2
0
文件: Model.cs 项目: romanio/essence
        public CModel(object sender)
        {
            MF = (Main_Form)sender;

            checkSetupFile();

            //BackgroundWorkers Setups
            BW_Reader.WorkerReportsProgress = true;
            BW_Reader.DoWork += BWReadDataFile;
            BW_Reader.RunWorkerCompleted += BWReadDataFileCompleted;
            BW_Reader.ProgressChanged += MF.ReportProgress;

            BW_RecalculateValues.WorkerSupportsCancellation = true;
            BW_RecalculateValues.WorkerReportsProgress = true;
            BW_RecalculateValues.DoWork += RecalculateValues;
            BW_RecalculateValues.ProgressChanged += MF.ReportProgress;
            BW_RecalculateValues.RunWorkerCompleted += BW_RecalculateValuesCompleted;
        }