Beispiel #1
0
        private void listViewDetails_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
        {
            ListViewItem item = e.Item;

            if (item != null)
            {
                Model.DetailStat dataItem = item.Tag as Model.DetailStat;

                dataItem = TableUtil.FillDetailStat(dataItem);

                this.textBoxMinDuration.Text = trancate(dataItem.TextDataMinDuration);
                this.textBoxMaxDuration.Text = trancate(dataItem.TextDataMaxDuration);

                this.textBoxMinCPU.Text = trancate(dataItem.TextDataMinCPU);
                this.textBoxMaxCPU.Text = trancate(dataItem.TextDataMaxCPU);

                this.textBoxMinReads.Text = trancate(dataItem.TextDataMinReads);
                this.textBoxMaxReads.Text = trancate(dataItem.TextDataMaxReads);

                this.textBoxMinWrites.Text = trancate(dataItem.TextDataMinWrites);
                this.textBoxMaxWrites.Text = trancate(dataItem.TextDataMaxWrites);
            }
        }