Exemplo n.º 1
0
        }         // ColorOrganForm

        /// <summary>
        /// Add a new band to the list of bands and open a dialog for it
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonNewColorGroup_Click(object sender, EventArgs e)
        {
            ColorOrganBand band = m_colorOrgan.CreateBand();

            populateColorOrganBandSelectList();

            ColorOrganForm     temp = this;
            ColorOrganBandForm cobf = new ColorOrganBandForm(ref band, ref temp);

            cobf.Show();
        }          // buttonNewColorGroup_Click
Exemplo n.º 2
0
        }          // buttonNewColorGroup_Click

        /// <summary>
        /// User has pressed edit or double clicked an entry in the table
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonEditColorGroup_Click(object sender, EventArgs e)
        {
            do
            {
                // are there any bands to edit?
                if (0 == m_mapOfColorOrganBands.Count)
                {
                    break;
                }                 // end no bands to edit

                ColorOrganBand     band = m_mapOfColorOrganBands[listBoxColorBands.SelectedIndex];
                ColorOrganForm     temp = this;
                ColorOrganBandForm cobf = new ColorOrganBandForm(ref band, ref temp);
                cobf.Show();
            } while (false);
        }         // buttonEditColorGroup_Click
Exemplo n.º 3
0
        }         // buttonClearChannels_Click

        /// <summary>
        /// user has requested that we make a copy of the current band
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonCopy_Click(object sender, EventArgs e)
        {
            do
            {
                // are there any bands to copy?
                if (0 == m_mapOfColorOrganBands.Count)
                {
                    break;
                }                 // end no bands to copy

                ColorOrganBand destinationBand = m_colorOrgan.CreateBand(m_mapOfColorOrganBands[listBoxColorBands.SelectedIndex]);

                // copy to body of the data
                populateColorOrganBandSelectList();

                ColorOrganForm     temp = this;
                ColorOrganBandForm cobf = new ColorOrganBandForm(ref destinationBand, ref temp);
                cobf.Show();
            } while (false);
        }         // buttonCopy_Click