コード例 #1
0
ファイル: LuteBotForm.cs プロジェクト: RoseFlunder/Lutebot-2
 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
ファイル: LuteBotForm.cs プロジェクト: RoseFlunder/Lutebot-2
 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;
     }
 }