Пример #1
0
        public void UpdateRow(string Input)
        {
            int Temp = 0;

            if (StringConverters.StrToInt32(Input, ref Temp))
            {
                this.Row = Temp;
            }
        }
Пример #2
0
        public void UpdateColumn(string Input)
        {
            int Temp = 0;

            if (StringConverters.StrToInt32(Input, ref Temp))
            {
                this.Col = Temp;
            }
        }
Пример #3
0
        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;
        }