Пример #1
0
        public SongInstrumentForm()
        {
            InitializeComponent();

            N00_L_1_COMBO.Items.Clear();
            N08_L_1_COMBO.Items.Clear();
            N10_L_1_COMBO.Items.Clear();
            N00_L_1_COMBO.BeginUpdate();
            N08_L_1_COMBO.BeginUpdate();
            N10_L_1_COMBO.BeginUpdate();
            for (uint i = 0; i < 128; i++)
            {
                string name = U.ToHexString(i) + "=" + SongUtil.getKeyCode(i);
                N00_L_1_COMBO.Items.Add(name);
                N08_L_1_COMBO.Items.Add(name);
                N10_L_1_COMBO.Items.Add(name);
            }
            N00_L_1_COMBO.EndUpdate();
            N08_L_1_COMBO.EndUpdate();
            N10_L_1_COMBO.EndUpdate();

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            U.SetIcon(N00_ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(N00_ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(N08_ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(N08_ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(N10_ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(N10_ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(N18_ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(N18_ExportButton, Properties.Resources.icon_arrow);
        }