Exemple #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;
     }
 }
Exemple #2
0
 private void SoundBoardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (soundBoardForm == null || soundBoardForm.IsDisposed)
     {
         soundBoardForm = new SoundBoardForm(soundBoardManager);
         Point coords = WindowPositionUtils.CheckPosition(ConfigManager.GetCoordsProperty(PropertyItem.SoundBoardPos));
         soundBoardForm.Show();
         soundBoardForm.Top  = coords.Y;
         soundBoardForm.Left = coords.X;
     }
 }