Exemplo n.º 1
0
        private void ProcExport(object obj)
        {
            try
            {
                RecordDisk recordDisk = DiskManager.GetInstance().GetDisk(driveName);// new RecordDisk(drive);

                FileStream fs = (FileStream)obj;

                recordDisk.Export(fs);
                fs.Close();
            }
            catch (Exception)
            {
            }
        }
Exemplo n.º 2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string drive = comboBox1.Text;

            if (string.IsNullOrEmpty(drive))
            {
                gridControl1.DataSource = null;
                return;
            }
            RecordDisk recordDisk = DiskManager.GetInstance().GetDisk(drive);// new RecordDisk(drive);


            DiskChannel diskChannel = new DiskChannel(recordDisk);

            gridControl1.DataSource = diskChannel.Channels;
        }
Exemplo n.º 3
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            driveName = comboBox1.Text;
            if (string.IsNullOrEmpty(driveName))
            {
                gridControl1.DataSource = null;
                return;
            }
            RecordDisk recordDisk = DiskManager.GetInstance().GetDisk(driveName);// new RecordDisk(drive);



            gridControl1.DataSource = recordDisk.RecordList;

            JudgeSelect();
        }
Exemplo n.º 4
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            RecordDisk recordDisk = DiskManager.GetInstance().GetDisk(driveName);

            if (recordDisk.ExportOK)
            {
                wizardPage2.AllowNext = true;
                progressBar1.Value    = progressBar1.Maximum;
                progressBar2.Value    = progressBar2.Maximum;
                timer1.Enabled        = false;
            }
            else
            {
                progressBar1.Value = (int)(progressBar1.Maximum * recordDisk.CurrentFileRate);
                progressBar2.Value = (int)(progressBar2.Maximum * recordDisk.ExportRate);
            }
        }
Exemplo n.º 5
0
        private void FormSignalSelect_Load(object sender, EventArgs e)
        {
            DiskManager.GetInstance().Reset();
            DriveInfo[] allDrives = DriveInfo.GetDrives();

            foreach (DriveInfo info in allDrives)
            {
                if (info.DriveType == DriveType.Removable)
                {
                    comboBox1.Items.Add(info.Name.TrimEnd(new char[] { '\\' }));
                }
            }

            if (comboBox1.Items.Count > 0)
            {
                comboBox1.SelectedIndex = 0;
            }
        }
Exemplo n.º 6
0
        public FormExportWizard()
        {
            InitializeComponent();

            DiskManager.GetInstance().Reset();
        }