Beispiel #1
0
        private void onBuildTreeButtonClicked(object sender, EventArgs e)
        {
            if (_txtSourceFile.Text == String.Empty)
            {
                MessageBox.Show("Prosze wybraæ odpowiedni plik");
                return;
            }

            try
            {
                DecisionTreeImplementation sam = new DecisionTreeImplementation();
                _rtxtOutput.Text = sam.GetTree(_txtSourceFile.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show("B³ad pliku");
            }
        }
Beispiel #2
0
        private void onBuildTreeButtonClicked(object sender, EventArgs e)
        {
            if (_txtSourceFile.Text == String.Empty)
            {
                MessageBox.Show("Please select a valid source file");
                return;
            }

            try
            {
                DecisionTreeImplementation sam = new DecisionTreeImplementation();
                _rtxtOutput.Text = sam.GetTree(_txtSourceFile.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error - there has been some problem parsing your input file.  Below is information about the error: " + Environment.NewLine + ex.Message + Environment.NewLine + "Stack Trace:" + Environment.NewLine + ex.StackTrace);
            }
        }