private void liveInputToolStripMenuItem_Click(object sender, EventArgs e) { if (liveInputForm == null || liveInputForm.IsDisposed) { liveInputForm = new LiveInputForm(liveMidiManager); Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.LiveMidiPos)); liveInputForm.Show(); liveInputForm.Top = coords.Y; liveInputForm.Left = coords.X; } }
private void OpenDialogs() { if (ConfigManager.GetBooleanProperty(PropertyItem.SoundBoard)) { soundBoardForm = new SoundBoardForm(soundBoardManager); Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.SoundBoardPos)); soundBoardForm.Show(); soundBoardForm.Top = coords.Y; soundBoardForm.Left = coords.X; } if (ConfigManager.GetBooleanProperty(PropertyItem.PlayList)) { playListForm = new PlayListForm(playList); Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.PlayListPos)); playListForm.Show(); playListForm.Top = coords.Y; playListForm.Left = coords.X; } if (ConfigManager.GetBooleanProperty(PropertyItem.TrackSelection)) { var midiPlayer = player as MidiPlayer; trackSelectionForm = new TrackSelectionForm(trackSelectionManager, midiPlayer.mordhauOutDevice); Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.TrackSelectionPos)); trackSelectionForm.Show(); trackSelectionForm.Top = coords.Y; trackSelectionForm.Left = coords.X; } if (ConfigManager.GetBooleanProperty(PropertyItem.LiveMidi)) { liveInputForm = new LiveInputForm(liveMidiManager); Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.LiveMidiPos)); liveInputForm.Show(); liveInputForm.Top = coords.Y; liveInputForm.Left = coords.X; } }