/// <summary> /// Initializes a new instance of the <see cref="ModifyMonitorWallForm" /> class. /// </summary> /// <param name="monitorWall">The monitor wall to edit.</param> public ModifyMonitorWallForm(MonitorWall monitorWall) { CurrentMonitorWall = monitorWall; CurrentMonitorPositions = monitorWall.MonitorPositions; InitializeComponent(); Text = $@"Edit {CurrentMonitorWall.Name}"; pnlMain.AllowDrop = true; foreach (var monitor in MainForm.CurrentSystem.Monitors) { var lvItem = new ListViewItem(monitor.Name); lvItem.SubItems.Add(monitor.Number.ToString()); lvItem.Tag = monitor; lvMonitors.Items.Add(lvItem); } if (CurrentMonitorPositions.Count == 0) { return; } foreach (var position in CurrentMonitorPositions) { DisplayMonitorPosition(position); } Refresh(); }
/// <summary> /// Initializes a new instance of the <see cref="ManageMonitorSelectionsForm" /> class. /// </summary> /// <param name="monitorWall">The monitor wall to edit.</param> public ManageMonitorSelectionsForm(MonitorWall monitorWall) { CurrentMonitorWall = monitorWall; CurrentMonitorSelections = new List <MonitorSelection>(); InitializeComponent(); pnlMain.AllowDrop = true; RefreshSelections(true); Refresh(); }