Ejemplo n.º 1
0
        public void DS_StartForms(UIApplication uiapp)
        {
            DS_Form newForm = new DS_Form
            {
                TopLevel = true
            };

            SPFPath = newForm.DS_OpenFileDialogForm_txt("", "Select shared parameter file for loading.").ToString();
            if (SPFPath == "")
            {
                newForm.Close();
                return;
            }

            ParametersNamesPath = newForm.DS_OpenFileDialogForm_txt("", "Select file with parameters names.").ToString();
            if (ParametersNamesPath == "")
            {
                newForm.Close();
                return;
            }

            AddParametersToSFPOptions addParametersToSFPOptions = new AddParametersToSFPOptions(uiapp);

            addParametersToSFPOptions.Show();
        }
Ejemplo n.º 2
0
        private void Button_OK_Click(object sender, RoutedEventArgs e)
        {
            if (GroupNameText.Text != "")
            {
                GroupName = GroupNameText.Text;

                AddGroupToSPF();

                this.Close();

                AddParametersToSFPOptions addParametersToSFPOptions = new AddParametersToSFPOptions(App);
                addParametersToSFPOptions.Show();
            }
            else
            {
                System.Windows.MessageBox.Show("Fill a group name!");
            }
        }