예제 #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();
            }
        }
예제 #2
0
        public FormFindAnswer(List <Globals.TableGraph> tableGraphsIn, UserSystemDialog userSystemDialogInOut)
        {
            InitializeComponent();

            _tableGraphs = tableGraphsIn; _userSystemDialog = userSystemDialogInOut;
            SetDataToDataGridView("");
        }
예제 #3
0
 private void InitializeDialog()
 {
     _userSystemDialog = new UserSystemDialog(RichTextBoxChat, TextBoxUserText);
     ShowNextQuestion(null);
 }