public FormConstructor(TreeViewSerialize treeViewSerializeIn, List <TableGraph> listTableGraphIn, UserSystemDialog userSystemDialogIn, bool isFormConstructorIn) { InitializeComponent(); _graph = new Graph(); _isFormConstructor = isFormConstructorIn; _userSystemDialog = userSystemDialogIn; _graph.ListGraphs = new List <TableGraph>(); if (listTableGraphIn != null) { foreach (TableGraph tg in listTableGraphIn) { _graph.ListGraphs.Add(tg.Clone() as TableGraph); } } if (treeViewSerializeIn != null) { var nodes = TreeViewP3.Nodes; Settings.FromTreeViewSerialize(treeViewSerializeIn, ref nodes, ref _graph.ListGraphs); } if (isFormConstructorIn) { InitializeFormConstructor(); } else { InitializeFormResult(); } }
public FormFindAnswer(List <Globals.TableGraph> tableGraphsIn, UserSystemDialog userSystemDialogInOut) { InitializeComponent(); _tableGraphs = tableGraphsIn; _userSystemDialog = userSystemDialogInOut; SetDataToDataGridView(""); }
private void InitializeDialog() { _userSystemDialog = new UserSystemDialog(RichTextBoxChat, TextBoxUserText); ShowNextQuestion(null); }