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), ");"); }
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), ");");