public MainWindow()
        {
            InitializeComponent();

            testSteps = TapStepDllParser.GetAllDefinitions();

            treeView.DataContext = testSteps;
        }
        private void Generate_Click(object sender, RoutedEventArgs e)
        {
            SaveFileDialog dlg = new SaveFileDialog();

            dlg.InitialDirectory = Directory.GetCurrentDirectory();
            dlg.Title            = "Generate to XML File";
            dlg.CheckFileExists  = false;
            dlg.CheckPathExists  = true;
            dlg.DefaultExt       = "xml";
            dlg.Filter           = "Xml files (*.xml)|*.xml|All files (*.*)|*.*";
            dlg.FilterIndex      = 2;
            dlg.RestoreDirectory = true;

            if (dlg.ShowDialog() == true)
            {
                TapStepDllParser.GenerateXml(dlg.FileName, testSteps);
            }
        }