public DetailedInfo() { InitializeComponent(); FullTable pickRow = ChoosenRow(); textId.Text = pickRow.Id; textName.Text = pickRow.Name; textDesc.Text = pickRow.Desc; textSource.Text = pickRow.Source; textObj.Text = pickRow.Obj; textConf.Text = pickRow.Conf; textInteg.Text = pickRow.Integ; textAccess.Text = pickRow.Access; }
static FullTable ChoosenRow() { FullTable fullTable = new FullTable("", "", "", "", "", "", "", ""); MyTable selectedRow = ((MainWindow)System.Windows.Application.Current.MainWindow).grid.SelectedItem as MyTable; List <FullTable> myTablesFull = TableInteractions.FullTableFill(); foreach (FullTable table in myTablesFull) { if (table.Id == selectedRow.Id) { fullTable = table; } } return(fullTable); }