private void LoadInformationForUsingDesTrees()//переделать { desTreeInfo.Clear(); learningInfo.Clear(); tvTaskSelections.Nodes.Clear(); dgwTrees.Rows.Clear(); dgwLA.Rows.Clear(); List <Tuple <int, string, int> > ls = dbHandler.SelectAllTasks(); foreach (Tuple <int, string, int> item in ls) { List <string> bf = dbHandler.SelectAllNeuroNetsByTask(item.Item2);// переделать List <string> selections = dbHandler.SelectSelectionsNames(item.Item2); List <string[]> itemContainer = new List <string[]>(); foreach (string name in bf) { learningInfo.AddData(name, new DataContainer <List <string> >()); foreach (string sel in selections) { learningInfo.FindData(name).AddData(sel, dbHandler.SelectLearningStatistics(name, sel)); } string[] str = new string[4]; string[] wideStr = dbHandler.SelectNeuroNetDefinitionByName(name); str[0] = wideStr[0]; str[1] = wideStr[1]; str[2] = wideStr[3]; str[3] = wideStr[4]; itemContainer.Add(str); } desTreeInfo.AddData(item.Item2, itemContainer); } for (int i = 0; i < ls.Count; i++) { tvTaskSelections.Nodes.Add(ls[i].Item2); tvTaskSelections.Nodes[i].NodeFont = new Font(new FontFamily("Book Antiqua"), 12); List <Tuple <string, int> > it = dbHandler.SelectAllSelections(ls[i].Item1); for (int j = 0; j < it.Count; j++) { tvTaskSelections.Nodes[i].Nodes.Add(it[j].Item1); tvTaskSelections.Nodes[i].Nodes[j].NodeFont = new Font(new FontFamily("Book Antiqua"), 11, FontStyle.Italic); } } lbTaskSelected.Text = "Не выбрана"; lbSelSelected.Text = "Не выбрана"; lbTreeSelected.Text = "Не выбрано"; lbLASelected.Text = "Не выбран"; isDesTreeSelected = false; isSelectionSelected = false; btnLearn.Enabled = false; btnUse.Enabled = false; }
private void Start() { container.Initialize(dataContainer); dataContainer.AddData(new TestData(new Vector3(dataContainer.DataItems.Count, 0, 0))); }