Example #1
0
        /// <summary>
        /// Creates a new, empty PalettesForm with help texts adjusted for the given domain.
        /// </summary>
        /// <param name="assistantComposer"></param>
        /// <param name="krystal"></param>
        public PaletteForm(IPaletteFormsHostForm hostForm, string name, int domain, FormStateFunctions fsf)
        {
            InitializeComponent();
            _hostForm  = hostForm;
            Text       = name;
            _savedName = name;
            _domain    = domain;
            _fsf       = fsf;
            _isLoading = true;
            ConnectBasicChordControl();
            if (M.Preferences.CurrentMultimediaMidiOutputDevice != null)
            {
                ConnectPaletteButtonsControl(domain, _hostForm.LocalScoreAudioPath);
            }

            _allTextBoxes = GetAllTextBoxes();

            TouchAllTextBoxes();

            SetDialogForDomain(domain);

            ShowOrnamentSettingsButton.Enabled   = false;
            DeleteOrnamentSettingsButton.Enabled = false;

            _fsf.SetFormState(this, SavedState.unconfirmed);
            _isLoading                  = false;
            ConfirmButton.Enabled       = false;
            RevertToSavedButton.Enabled = false;
            RevertToSavedButton.Hide();
        }
Example #2
0
        public OrnamentsForm(PaletteForm paletteForm, IPaletteFormsHostForm acForm, FormStateFunctions fsf)
        {
            InitializeOrnamentSettingsForm(null, paletteForm, acForm, fsf);

            _fsf.SetFormState(this, SavedState.unconfirmed);
            ConfirmButton.Enabled       = false;
            RevertToSavedButton.Enabled = false;
            RevertToSavedButton.Hide();
        }