Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        public FormFindAnswer(List <Globals.TableGraph> tableGraphsIn, UserSystemDialog userSystemDialogInOut)
        {
            InitializeComponent();

            _tableGraphs = tableGraphsIn; _userSystemDialog = userSystemDialogInOut;
            SetDataToDataGridView("");
        }
Ejemplo n.º 3
0
 private void InitializeDialog()
 {
     _userSystemDialog = new UserSystemDialog(RichTextBoxChat, TextBoxUserText);
     ShowNextQuestion(null);
 }