Ejemplo n.º 1
0
        private void Button_Families_Click(object sender, RoutedEventArgs e)
        {
            DialogForms dialogForms = new DialogForms();

            dialogForms.AssignFamilyPath();

            if (DialogForms.FamilyPath == "")
            {
                return;
            }

            Docs docs = new Docs(App);

            string ext = "rfa";

            docs.GetFamilies(DialogForms.FamilyPath, ext);
            docs.DirFamiliesIterate(DialogForms.FamilyPath, ext);
            FamiliesList = docs.FileFullNames_Filtered;

            if (FamiliesList.Count == 0)
            {
                System.Windows.MessageBox.Show("No families found!");
                return;
            }

            FamiliesFilesList = new FamiliesFilesList(FamiliesList);
            FamiliesFilesList.Show();
        }
Ejemplo n.º 2
0
        private void Button_Projects_Click(object sender, RoutedEventArgs e)
        {
            DialogForms dialogForms = new DialogForms();

            dialogForms.AssignSourcePath();

            if (DialogForms.SourcePath == "")
            {
                return;
            }


            Docs docs = new Docs(App);

            string ext = "rvt";

            docs.GetFiles(DialogForms.SourcePath, ext);
            docs.DirIterate(DialogForms.SourcePath, ext);
            FileList = docs.FileFullNames_Filtered;

            if (FileList.Count == 0)
            {
                System.Windows.MessageBox.Show("No files found!");
                return;
            }

            ProjectFilesList = new ProjectFilesList(FileList);
            ProjectFilesList.Show();
        }