Logo Search packages:      
Sourcecode: cadencii version File versions  Download package

void org::kbinani::cadencii::FormMain::deleteTrackCore (  ) [inline]

トラックの削除を行います。

Definition at line 6102 of file FormMain.cs.

References org::kbinani::cadencii::AppManager::editHistory, org::kbinani::cadencii::VsqFileEx::generateCommandDeleteTrack(), org::kbinani::cadencii::AppManager::getSelected(), org::kbinani::cadencii::AppManager::getVsqFile(), org::kbinani::cadencii::AppManager::mMixerWindow, org::kbinani::cadencii::EditHistoryModel::register(), org::kbinani::vsq::VsqFile::Track, and org::kbinani::cadencii::FormMixer::updateStatus().

        {
            int selected = AppManager.getSelected();
            VsqFileEx vsq = AppManager.getVsqFile();
            if ( AppManager.showMessageBox(
                    PortUtil.formatMessage( _( "Do you wish to remove track? {0} : '{1}'" ), selected, vsq.Track.get( selected ).getName() ),
                    _APP_NAME,
                    org.kbinani.windows.forms.Utility.MSGBOX_YES_NO_OPTION,
                    org.kbinani.windows.forms.Utility.MSGBOX_QUESTION_MESSAGE ) == BDialogResult.YES ) {
                CadenciiCommand run = VsqFileEx.generateCommandDeleteTrack( selected );
                if ( selected >= 2 ) {
                    AppManager.setSelected( selected - 1 );
                }
                AppManager.editHistory.register( vsq.executeCommand( run ) );
                updateDrawObjectList();
                setEdited( true );
                AppManager.mMixerWindow.updateStatus();
                refreshScreen();
            }
        }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index