Example #1
0
 void OnItemAdded(NewLineAddedEventArgs e)
 {
     if (ItemAdded != null)
     {
         ItemAdded(this, e);
     }
 }
Example #2
0
        public void OnNewLine(LineStorage sender, NewLineAddedEventArgs newLineAddedEventArgs)
        {
            var line   = newLineAddedEventArgs.Line;
            var shifts = new LineStorage();

            shifts.ItemAdded += OnShiftAdded;
            var newLine = new Line(line);

            for (var i = 0; i <= line.Length - 1; i++)
            {
                shifts.Add(newLine);
                line    = newLine;
                newLine = new Line(line);

                var firstWord = line[0];

                for (var j = 1; j <= line.Length - 1; j++)
                {
                    newLine[j - 1] = line[j];
                }
                newLine[line.Length - 1] = firstWord;
            }
        }
Example #3
0
 public void OnItemIndexed(LineStorage sender, NewLineAddedEventArgs e)
 {
     Console.WriteLine(e.Line);
 }
Example #4
0
 private void OnShiftAdded(LineStorage sender, NewLineAddedEventArgs e)
 {
     ShiftedLines.Add(e.Line);
 }
Example #5
0
 public void OnShiftedLine(LineStorage sender, NewLineAddedEventArgs e)
 {
     lines.Add(e.Line);
 }
Example #6
0
 public void OnItemIndexed(LineStorage sender, NewLineAddedEventArgs e)
 {
     Console.WriteLine(e.Line);
 }
Example #7
0
 public void OnShiftedLine(LineStorage sender, NewLineAddedEventArgs e)
 {
     lines.Add(e.Line);
 }
Example #8
0
 void OnItemAdded(NewLineAddedEventArgs e)
 {
     if (ItemAdded!= null)
         ItemAdded(this, e);
 }