Example #1
0
        internal void SetBuilder(CGUIBuilder builder)
        {
            builder.WindowTypeDescrs.AddType(WindowTypes.Panel);

            WindowTypes.Label.AddParams(WindowParams.Text, true);
            builder.WindowTypeDescrs.AddType(WindowTypes.Label);

            WindowTypes.TextBox.AddParams(WindowParams.Text, false);
            builder.WindowTypeDescrs.AddType(WindowTypes.TextBox);
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string path = Path.Combine(Application.StartupPath, _path_to_data);

            string[] files = Directory.GetFiles(path, "*.csc*", SearchOption.TopDirectoryOnly);

            foreach (var fn in files)
            {
                string only_name = Path.GetFileName(fn);
                lbSourceFiles.Items.Add(only_name);
            }

            if (lbSourceFiles.Items.Count > 0)
            {
                lbSourceFiles.SelectedIndex = 0;
            }

            _gui     = new CGUIRealization(pnlWindow);
            _builder = new CGUIBuilder(this, _gui, new Rect(0, 0, pnlWindow.Width, pnlWindow.Height));
            _gui.SetBuilder(_builder);
        }