static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Main_Form Main = new Main_Form(); Application.Run(Main); }
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; }