public void UpdateRow(string Input) { int Temp = 0; if (StringConverters.StrToInt32(Input, ref Temp)) { this.Row = Temp; } }
public void UpdateColumn(string Input) { int Temp = 0; if (StringConverters.StrToInt32(Input, ref Temp)) { this.Col = Temp; } }
public void UpdateGridUIDataHandler(object sender, RoutedEventWithDataArgs routedEventWithDataArgs) { List <string> MessageContents = EnveloperOpener.OpenStringEnvelope(routedEventWithDataArgs.Content); int ConvertedValue = 0; StringConverters.StrToInt32(MessageContents[0], ref ConvertedValue); if (MessageContents[0] == "Row") { this.RowDelta = this.GetDelta(this.Rows, ConvertedValue); this.Rows = ConvertedValue; } else if (MessageContents[0] == "Column") { this.ColumnDelta = this.GetDelta(this.Columns, ConvertedValue); this.Columns = ConvertedValue; } routedEventWithDataArgs.Handled = true; }