private void SyntaxGrid_GridTapped(object sender, GridTappedEventArgs e) { try { var rowIndex = e.RowColumnIndex.RowIndex; var rowData = e.RowData; var columnIndex = e.RowColumnIndex.ColumnIndex; CSyntax syntax = rowData as CSyntax; if (rowIndex != 0) { if (syntax != null) { txtEquation.Unfocus(); txtEquation.TextToInsert = syntax.TextToInsert; txtEquation.Focus(); } } } catch (Exception ex) { Logging.LogException(ex); } }
public void Test_single_decimal_format() { Asserts.AssertEquals("test \u0000", CSyntax.Sprintf("test %d", new object[] { 1 })); }
public void TestSprintfInt32_passes() { Asserts.AssertEquals("test \u0000", CSyntax.SprintfInt32("test %d", 1)); }
public void Test_simple_format() { Asserts.AssertEquals("format", CSyntax.Sprintf("format")); }