예제 #1
0
        private void btn_Generate_Click(object sender, RoutedEventArgs e)
        {
            if (int.TryParse(txt_Quantity.Text, out int count))
            {
                trk_Index.Maximum = count - 1;
                trk_Index.Value   = 0;

                // For fake logs we need to `Select` the instance property. With other FakeRow implementors it is not necessary.
                values        = FakeBuilder.GenerateMany <FakeLogMessage>(1, 1, (ulong)count).Select(x => x.Instance).ToArray();
                txt_Item.Text = ((adata.TypedDoc)values[(int)trk_Index.Value]).ToJsonDataMap().ToString();
            }
        }