Example #1
0
 protected bool MarkBulb(DataCell cell)
 {
     if (FeatureCell(cell))
     {
         int feature = cell.Feature(3, 2, FeatureCell);
         if (feature == 63)
         {
             cell.Marks.Add(Keys.Role, Values.BulbBegin);
             cell.RightCell().Marks.Add(Keys.Role, Values.Bulb);
             cell.DownCell().Marks.Add(Keys.Role, Values.Bulb);
             cell.DownCell().RightCell().Marks.Add(Keys.Role, Values.Bulb);
             cell.DownCell().DownCell().Marks.Add(Keys.Role, Values.Bulb);
             cell.DownCell().DownCell().RightCell().Marks.Add(Keys.Role, Values.Bulb);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Example #2
0
        } //MarkEyeLines

        protected bool MarkUmbrella(DataCell cell)
        {
            if (FeatureCell(cell))
            {
                int feature = cell.Feature(3, 3, FeatureCell);
                if (feature == 191 || feature == 255 || feature == 447 || feature == 511)
                {
                    cell.Marks.Add(Keys.Role, Values.UmbrellaBegin);
                    cell.RightCell().Marks.Add(Keys.Role, Values.Umbrella);
                    cell.RightCell().RightCell().Marks.Add(Keys.Role, Values.Umbrella);
                    cell.DownCell().Marks.Add(Keys.Role, Values.Umbrella);
                    cell.DownCell().RightCell().Marks.Add(Keys.Role, Values.Umbrella);
                    cell.DownCell().RightCell().RightCell().Marks.Add(Keys.Role, Values.Umbrella);
                    cell.DownCell().DownCell().RightCell().Marks.Add(Keys.Role, Values.Umbrella);
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }
Example #3
0
 protected bool MarkCas2(DataCell cell)
 {
     if (FeatureCell(cell))
     {
         int feature = cell.Feature(2, 1, FeatureCell);
         if (feature == 3)
         {
             cell.Marks.Add(Keys.Role, Values.Cas2Begin);
             cell.DownCell().Marks.Add(Keys.Role, Values.Cas2);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Example #4
0
 protected bool MarkBike(DataCell cell)
 {
     if (FeatureCell(cell))
     {
         int feature = cell.Feature(1, 2, FeatureCell);
         if (feature == 3)
         {
             cell.Marks.Add(Keys.Role, Values.BikeBegin);
             cell.RightCell().Marks.Add(Keys.Role, Values.Bike);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Example #5
0
 protected bool MarkHeart(DataCell cell)
 {
     if (FeatureCell(cell))
     {
         int feature = cell.Feature(2, 2, FeatureCell);
         if (feature == 15)
         {
             cell.Marks.Add(Keys.Role, Values.HeartBegin);
             cell.RightCell().Marks.Add(Keys.Role, Values.Heart);
             cell.DownCell().Marks.Add(Keys.Role, Values.Heart);
             cell.DownCell().RightCell().Marks.Add(Keys.Role, Values.Heart);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }