Beispiel #1
0
 /// <summary>
 /// The SelectionChanged method.
 /// </summary>
 /// <param name="cellIndex">The <paramref name="cellIndex"/> parameter.</param>
 /// <param name="monitorIndex">The <paramref name="monitorIndex"/> parameter.</param>
 public void SelectionChanged(int cellIndex, int monitorIndex)
 {
     CurrentCellIndex    = cellIndex;
     CurrentMonitorIndex = monitorIndex;
     CurrentMonitorWall.SetMonitorSelection(cellIndex, monitorIndex, CurrentInputMode);
     RefreshSelections();
 }
Beispiel #2
0
        /// <summary>
        /// The ButtonChangeMode_Click method.
        /// </summary>
        /// <param name="sender">The <paramref name="sender"/> parameter.</param>
        /// <param name="args">The <paramref name="args"/> parameter.</param>
        private void ButtonChangeMode_Click(object sender, EventArgs args)
        {
            var comboBox = new ComboBox();

            comboBox.Items.Add(MonitorSelection.CellInputMode.Unknown.ToString());
            comboBox.Items.Add(MonitorSelection.CellInputMode.DigitalPtz.ToString());
            comboBox.Items.Add(MonitorSelection.CellInputMode.Navigation.ToString());
            comboBox.Items.Add(MonitorSelection.CellInputMode.Playback.ToString());
            comboBox.Items.Add(MonitorSelection.CellInputMode.Ptz.ToString());

            var inputModeValue = (int)CurrentInputMode;

            comboBox.SelectedIndex = inputModeValue;
            InputBox.Show("Cell Input Mode", "Select a new cell input mode:", comboBox, ref inputModeValue);
            var selectedMode = (MonitorSelection.CellInputMode)inputModeValue;

            if (CurrentInputMode != selectedMode)
            {
                CurrentInputMode = selectedMode;
                CurrentMonitorWall.SetMonitorSelection(CurrentCellIndex, CurrentMonitorIndex, CurrentInputMode);
                RefreshSelections(true);
            }
        }