예제 #1
0
        /// <summary>
        /// Shows a message and opens the dialog for the user to choose two new channels.
        /// </summary>
        /// <returns>An array containing the two selected channels</returns>
        public static int[] GetTwoChannel()
        {
            MessageBox.Show(Settings.TwoChannels, "Saving Channels", MessageBoxButtons.OK, MessageBoxIcon.Information);
            ChooseChannel cc = new ChooseChannel();

            cc.ShowDialog();
            return(new int[] { cc.HighChannel, cc.LowChannel });
        }
예제 #2
0
        /// <summary>
        /// Shows a message and opens the dialog for the user to choose a new channel.
        /// </summary>
        /// <returns>The selected channel with the high priority</returns>
        public static int GetOneChannel()
        {
            MessageBox.Show(Settings.OneChannel, "Saving Channels", MessageBoxButtons.OK, MessageBoxIcon.Information);
            ChooseChannel cc = new ChooseChannel();

            cc.ShowDialog();
            return(cc.HighChannel);
        }
예제 #3
0
        /// <summary>
        /// Opens the dialog to select 3 channels.
        /// </summary>
        /// <returns>An array containing the three selected channels</returns>
        public static int[] GetThreeChannels()
        {
            if (Mode == ASMMode.Standard)
            {
                return new int[] { 3, 4, 5 }
            }
            ;

            ChooseChannel cc = new ChooseChannel();

            cc.ShowDialog();
            return(new int[] { cc.HighChannel, cc.LowChannel, cc.LeastChannel });
        }