public static OptionsDisplayType? QueryOptionsDisplayType ()
    {
      var form = new SelectOptionsDisplayTypeForm();
      if (form.ShowDialog() == DialogResult.OK)
      {
        if (form._genericTypeRadioButton.Checked)
          return OptionsDisplayType.Generic;

        if (form._googleTypeRadionButton.Checked)
          return OptionsDisplayType.Google;
      }

      return null;
    }
        private void _addProfileButton_Click(object sender, EventArgs e)
        {
            var type = SelectOptionsDisplayTypeForm.QueryOptionsDisplayType();

            if (!type.HasValue)
            {
                return;
            }

            Options options = Options.CreateDefault(string.Empty, string.Empty);

            options.DisplayType = type.Value;

            _tabControl.SelectedTab = AddTabPage(options);
        }
        public static OptionsDisplayType?QueryOptionsDisplayType()
        {
            var form = new SelectOptionsDisplayTypeForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                if (form._genericTypeRadioButton.Checked)
                {
                    return(OptionsDisplayType.Generic);
                }

                if (form._googleTypeRadionButton.Checked)
                {
                    return(OptionsDisplayType.Google);
                }
            }

            return(null);
        }
Beispiel #4
0
 public IProfileType QueryProfileType(IReadOnlyCollection <IProfileType> profileTypes)
 {
     return(SelectOptionsDisplayTypeForm.QueryProfileType(profileTypes));
 }
 public ProfileType?QueryProfileType()
 {
     return(SelectOptionsDisplayTypeForm.QueryProfileType());
 }