예제 #1
0
        public DialogResult showDialog(String selectedTab = "general")
        {
            LoadValues();
            FormSettings settingsForm = new FormSettings(this);

            settingsForm.Init();
            settingsForm.TrySelectTab(selectedTab);
            settingsForm.ShowDialog();

            if (HaveRequired())
            {
                return(DialogResult.OK);
            }
            else
            {
                return(DialogResult.Cancel);
            }
        }
예제 #2
0
        public DialogResult showDialog(String selectedTab = "road")
        {
            LoadValues();
            FormSettings settingsForm = new FormSettings(this, Project);

            settingsForm.Init();
            settingsForm.TrySelectTab(selectedTab);
            DialogResult settingsResult = settingsForm.ShowDialog();

            if (HaveRequired() && settingsResult == DialogResult.OK)
            {
                return(DialogResult.OK);
            }
            else
            {
                return(DialogResult.Cancel);
            }
        }