public string TopTransactionId() { string id = null; CompositeCommand parent = ParentComposite; while (parent != null) { id = parent.Identifier; parent = parent.ParentComposite; } return(id); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } CompositeCommand otherz = other as CompositeCommand; if (otherz == null) { return(false); } if (otherz.ChildCommands.Count != mCommands.Count) { return(false); } for (int i = 0; i < mCommands.Count; i++) { if (!mCommands.Get(i).ValueEquals(otherz.ChildCommands.Get(i))) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } //foreach (Command cmd in mCommands) //{ // bool foundEqualCommand = false; // foreach (Command cmdOther in otherz.Commands) // { // if (cmdOther.ValueEquals(cmd)) // { // foundEqualCommand = true; // break; // } // } // if (!foundEqualCommand) // { // return false; // } //} return(true); }
private void ApplyPhraseDetectionOnPhrase(PhraseNode phraseNode, long threshold, double gap, double before) { urakawa.command.CompositeCommand phraseDetectionCommand = null; phraseDetectionCommand = Commands.Node.SplitAudio.GetPhraseDetectionCommand(m_ProjectView, phraseNode, threshold, gap, before, m_ProjectView.ObiForm.Settings.Audio_MergeFirstTwoPhrasesAfterPhraseDetection, m_Presentation); m_Presentation.Do(phraseDetectionCommand); }