예제 #1
0
        private void init()
        {
            HBoxLayout _layoutTop = new HBoxLayout();

            AddElementToRootLayout(_layoutTop);

            groupBoxConfigDB.Header  = "Base de données";
            groupBoxConfigDB.Content = _layoutFormConfigDB;
            _layoutTop.Add(groupBoxConfigDB);

            _layoutFormConfigDB.Add("ip", ip, 25);
            _layoutFormConfigDB.Add("Nom utilisateur", userName, 25);
            _layoutFormConfigDB.Add("Mot de pass", pass, 25);
            _layoutFormConfigDB.Add("Nom DB", dbName, 25);

            dbName.Text = "cfl";

            HBoxLayout _layoutBottom = new HBoxLayout();

            AddElementToRootLayout(_layoutBottom);

            // buttons

            VBoxLayout __layoutLeft = new VBoxLayout();

            _layoutBottom.Add(__layoutLeft);

            // textbox_sql

            textbox_sql = new TextBox();
            textbox_sql.AcceptsReturn = true;

            _layoutBottom.Add(textbox_sql);
        }
예제 #2
0
        private void init()
        {
            HBoxLayout __layout = new HBoxLayout();

            __layout.Add(__label);
            __layout.Add(__textBox);
            __textBox.TextChanged += TextBox_TextChanged;

            Header = __layout;
        }
예제 #3
0
        private void init()
        {
            // compilation

            __compiler = new Compiler(true);
            __ctrl_userCommunication = new ctrl_userCommunication(__codeEditor);
            __codeEditor.init(__compiler, __syntaxTreeVisualizer, __ctrl_userCommunication);


            HBoxLayout _layoutMain = new HBoxLayout();

            AddElementToRootLayout(__layoutTop);
            AddElementToRootLayout(_layoutMain);

            // menu

            __layoutTop.Add(__buttonShowTree);
            __buttonShowTree.Click += buttonShowTreeClicked;
            __layoutTop.Add(__buttonEvaluate);
            __buttonEvaluate.Click += buttonEvaluateClicked;

            //

            __layoutLeft.MaxWidth = 120;

            _layoutMain.Add(__layoutLeft);
            _layoutMain.Add(__layoutCenter);
            _layoutMain.Add(__layoutRight);

            __layoutCenter.Add(__codeEditor);

            __syntaxTreeVisualizer.Visibility = Visibility.Hidden;
            __layoutRight.Add(__syntaxTreeVisualizer);

            __layoutRight.Add(__layoutTreesObjectEditors);

            HBoxLayout _layout_bottomCenter = new HBoxLayout()
            {
                MaxHeight = 200
            };

            _layout_bottomCenter.Add(__ctrl_userCommunication);
            __layoutCenter.Add(_layout_bottomCenter);
        }