Esempio n. 1
0
 public bool IsManualBridgeSnippetForAnyGroup(PsaiProject project)
 {
     List<Group> groups = null;
     return project.CheckIfSnippetIsManualBridgeSnippetToAnyGroup(this, false, out groups);
 }
Esempio n. 2
0
        public bool IsManualBridgeSnippetForAnyGroup(PsaiProject project)
        {
            List <Group> groups = null;

            return(project.CheckIfSnippetIsManualBridgeSnippetToAnyGroup(this, false, out groups));
        }
Esempio n. 3
0
        /*
        public void ToggleSnippetTypeFlag(SegmentSuitability snippetType)
        {

            #if DEBUG
                Console.WriteLine("ToggleSnippetTypeFlag() " + snippetType);
                Console.WriteLine("before: start=" + IsUsableAtStart + "  middle=" + IsUsableInMiddle + "  end=" + IsUsableAtEnd);
            #endif

            if (this.IsUsableAs(snippetType))
            {
                // remove the flag
                this.ClearSnippetTypeFlag(snippetType);
            }
            else
            {
                 //set the flag
                this.SetSnippetTypeFlag(snippetType);
            }

            #if DEBUG
                Console.WriteLine("after: start=" + IsUsableAtStart + "  middle=" + IsUsableInMiddle + "  end=" + IsUsableAtEnd);
            #endif
        }
        */
        public bool IsBridgeSnippetToAnyGroup(PsaiProject project)
        {
            List<Group> groups = null;
            return (this.IsAutomaticBridgeSegment || project.CheckIfSnippetIsManualBridgeSnippetToAnyGroup(this, false, out groups));
        }
Esempio n. 4
0
        /*
         * public void ToggleSnippetTypeFlag(SegmentSuitability snippetType)
         * {
         *
         #if DEBUG
         *      Console.WriteLine("ToggleSnippetTypeFlag() " + snippetType);
         *      Console.WriteLine("before: start=" + IsUsableAtStart + "  middle=" + IsUsableInMiddle + "  end=" + IsUsableAtEnd);
         #endif
         *
         *  if (this.IsUsableAs(snippetType))
         *  {
         *      // remove the flag
         *      this.ClearSnippetTypeFlag(snippetType);
         *  }
         *  else
         *  {
         *       //set the flag
         *      this.SetSnippetTypeFlag(snippetType);
         *  }
         *
         #if DEBUG
         *      Console.WriteLine("after: start=" + IsUsableAtStart + "  middle=" + IsUsableInMiddle + "  end=" + IsUsableAtEnd);
         #endif
         * }
         */

        public bool IsBridgeSnippetToAnyGroup(PsaiProject project)
        {
            List <Group> groups = null;

            return(this.IsAutomaticBridgeSegment || project.CheckIfSnippetIsManualBridgeSnippetToAnyGroup(this, false, out groups));
        }