Esempio n. 1
0
        public MainForm(Document document, AnalysisCategory analysisCategory)
        {
            doc = document;
            selectedAnalysis = analysisCategory;

            InitializeComponent();
            this.Text = "Settings - Analysis Visualization Framework v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            tabControlCategory.SelectedIndex = (int)analysisCategory;
            labelModel.Text = tabControlCategory.SelectedTab.Text;

            inputCollector = new InputCollector(doc);
            inputCollector.SetComponents(listViewResults, comboBoxCategory, comboBoxParameter, labelSelElements, bttnPickElements, bttnRefElements,
                                         radioButtonTop, radioButtonSide, radioButtonBottom, radioButtonAll, labelDescription);
            userSettings = inputCollector.SettingDictionary;

            displayStyleManager = new DisplayStyleManager(doc);
            displayStyleManager.SetComponents(comboBoxStyles, labelStyleType, comboBoxUnit);
            foundStyles = displayStyleManager.DisplayDefaultSettings();
        }
Esempio n. 2
0
        //When Picking Elements
        public MainForm(Document document, AnalysisCategory analysisCategory, SettingProperties settingProperties)
        {
            doc = document;
            selectedAnalysis     = analysisCategory;
            curSettingProperties = settingProperties;

            InitializeComponent();
            tabControlCategory.SelectedIndex = (int)analysisCategory;
            labelModel.Text = tabControlCategory.SelectedTab.Text;

            inputCollector = new InputCollector(doc);
            inputCollector.SetComponents(listViewResults, comboBoxCategory, comboBoxParameter, labelSelElements, bttnPickElements, bttnRefElements,
                                         radioButtonTop, radioButtonSide, radioButtonBottom, radioButtonAll, labelDescription);
            inputCollector.SetCurrentSettings(curSettingProperties);
            userSettings = inputCollector.SettingDictionary;
            inputCollector.DisplayUserSettings(curSettingProperties);

            displayStyleManager = new DisplayStyleManager(doc, curSettingProperties);
            displayStyleManager.SetComponents(comboBoxStyles, labelStyleType, comboBoxUnit);
            displayStyleManager.DisplayDefaultSettings();
        }