Exemplo n.º 1
0
 private void BGMPlayer_ControlGrid_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
 {
     if (e.ColumnIndex == BGMPlayer_ColumnContent.Index)
     {
         e.Value             = SyncBGMPlayer.SoundHandleIDToString((SyncBGMPlayer.SoundHandleID)e.Value);
         e.FormattingApplied = true;
     }
 }
Exemplo n.º 2
0
        public DialogConfigurationBGMPlayer(SyncBGMPlayer.SoundHandle handle)
        {
            InitializeComponent();

            FilePath.Text          = handle.Path;
            IsLoop.Checked         = handle.IsLoop;
            LoopHeadPosition.Value = (decimal)handle.LoopHeadPosition;
            Volume.Value           = handle.Volume;

            Text         = "BGMの設定 - " + SyncBGMPlayer.SoundHandleIDToString(handle.HandleID);
            ResultHandle = handle.Clone();
        }