Example #1
0
 public Progress(ECRComms ecr)
 {
     InitializeComponent();
     ecr.Progress += new ECRComms.ProgressEventHandler(ecr_Progress);
     maxblocks = 0;
     progressBar1.Value = progressBar1.Maximum = 1;
     progressBar1.Minimum = 0;
     label1.Text = "Sending command to ecr...";
     Update();
     Application.DoEvents(); //blerhgh
 }
Example #2
0
        static void Main()
        {
            RWpath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ECRComms");
            Directory.CreateDirectory(RWpath);

            ecr = new ECRComms();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form3());
        }