Example #1
0
        private void bbiOpen_ItemClick(object sender, ItemClickEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = "SWARM Expriment Record File(*.serf)|*.serf";
            if (ofd.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            ChunkReader     reader = new ChunkReader(ofd.FileName);
            BatchExperiment batch  = new BatchExperiment(reader.RootChunk);

            InitializeExperiment(batch);

            if (expListForm == null)
            {
                expListForm = new UI.ExperimentInformation.ExperimentListForm();
            }

            expListForm.BindExperiment(ctxt);
            expListForm.MdiParent = this;
            expListForm.Show();

            MessageBox.Show(batch.ExperimentCount.ToString());
        }
Example #2
0
        private void bbiOpen_ItemClick(object sender, ItemClickEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "SWARM Expriment Record File(*.serf)|*.serf";
            if (ofd.ShowDialog() == DialogResult.Cancel) {
                return;
            }
            ChunkReader reader = new ChunkReader( ofd.FileName );
            BatchExperiment batch = new BatchExperiment(reader.RootChunk);

            InitializeExperiment(batch);

            if (expListForm == null) {
                expListForm = new UI.ExperimentInformation.ExperimentListForm();
            }

            expListForm.BindExperiment(ctxt);
            expListForm.MdiParent = this;
            expListForm.Show();

            MessageBox.Show(batch.ExperimentCount.ToString());
        }