예제 #1
0
 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))
     {
         trackSelectionForm = new TrackSelectionForm(trackSelectionManager);
         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();
         Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.LiveMidiPos));
         liveInputForm.Show();
         liveInputForm.Top  = coords.Y;
         liveInputForm.Left = coords.X;
     }
 }
예제 #2
0
 private void PlayListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (playListForm == null || playListForm.IsDisposed)
     {
         playListForm = new PlayListForm(playList);
         Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.PlayListPos));
         playListForm.Show();
         playListForm.Top  = coords.Y;
         playListForm.Left = coords.X;
     }
 }