Exemple #1
0
 void OnItemAdded(NewLineAddedEventArgs e)
 {
     if (ItemAdded != null)
     {
         ItemAdded(this, e);
     }
 }
Exemple #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;
            }
        }
Exemple #3
0
 public void OnItemIndexed(LineStorage sender, NewLineAddedEventArgs e)
 {
     Console.WriteLine(e.Line);
 }
Exemple #4
0
 private void OnShiftAdded(LineStorage sender, NewLineAddedEventArgs e)
 {
     ShiftedLines.Add(e.Line);
 }
Exemple #5
0
 public void OnShiftedLine(LineStorage sender, NewLineAddedEventArgs e)
 {
     lines.Add(e.Line);
 }
Exemple #6
0
 public void OnItemIndexed(LineStorage sender, NewLineAddedEventArgs e)
 {
     Console.WriteLine(e.Line);
 }
Exemple #7
0
 public void OnShiftedLine(LineStorage sender, NewLineAddedEventArgs e)
 {
     lines.Add(e.Line);
 }
Exemple #8
0
 void OnItemAdded(NewLineAddedEventArgs e)
 {
     if (ItemAdded!= null)
         ItemAdded(this, e);
 }