Exemple #1
0
 void BlockMoved(object sender, BlockMoveEventArgs e)
 {
     if (!_control.Focused)
     {
         return;
     }
     AddUsingNamespace(typeof(Point).Namespace);
     AddSentence(new TokenName(), ".EmulateMoveBlock(" + _control.SelectedIndex, $", new Point({e.MoveLocation.X}, {e.MoveLocation.Y})", new TokenAsync(CommaType.Before), ");");
 }
Exemple #2
0
 private void BlockMoved(object sender, BlockMoveEventArgs e)
 => AddSentence(new TokenName(), ".EmulateMoveBlock(" + _control.SelectedIndex, $", new Point({e.MoveLocation.X}, {e.MoveLocation.Y})", new TokenAsync(CommaType.Before), ");");