KeppySynthConfigurator.BankNPresetSel.BankNPresetSel C# (CSharp) Method

BankNPresetSel() public method

public BankNPresetSel ( String Target, int WindowMode, int typeofsf ) : System
Target String
WindowMode int
typeofsf int
return System
        public BankNPresetSel(String Target, int WindowMode, int typeofsf)
        {
            InitializeComponent();
            SelectedSF = Target;
            SelectedSFLabel.Text = "Selected soundfont:\n" + SelectedSF;
            BankVal.Value = 0;
            PresetVal.Value = 0;
            if (typeofsf == 1)
            {
                BankVal.Minimum = -1;
                PresetVal.Minimum = -1;
            }
            else
            {
                DesBankVal.Enabled = false;
                DesPresetVal.Enabled = false;
                DesBankVal.Value = 0;
                DesPresetVal.Value = 0;
            }
            if (WindowMode == 1)
            {
                this.StartPosition = FormStartPosition.CenterScreen;
            }
            else
            {
                this.StartPosition = FormStartPosition.CenterParent;
            }
        }