Exemple #1
0
        private void startAnalysisToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (captureWrapper != null)
            {
                Analyse analysisDiag = new Analyse(captureWrapper);                
                analysisDiag.ShowDialog();

                analysisWrapper = analysisDiag.Prediction;
            }
            else
                MessageBox.Show("You must first load a capture file.");
        }
Exemple #2
0
        private void openAnalysisToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "bCoach Analysis File (*.bca)|*.bca";

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                string filePath = ofd.FileName;
                if (filePath.EndsWith(".bca"))
                {
                    FileStream fs = File.OpenRead(filePath);
                    XmlSerializer xs = new XmlSerializer(typeof(bCoach_Assistant.Storage.AnalysisFile.Wrapper));

                    analysisWrapper = (bCoach_Assistant.Storage.AnalysisFile.Wrapper)xs.Deserialize(fs);
                }
            }
        }