Пример #1
0
        private void BuildLayout()
        {
            functionsList = new FunctionsList {
                Location = new Point(0, 0)
            };

            functionView = new FunctionView
            {
                Location = new Point(200, 0),
                Anchor   = AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left
            };

            parametersView = new ParametersView
            {
                Location = new Point(functionsList.Width, functionView.Height),
                Width    = 200,
                Height   = functionsList.Height - functionView.Height,
                Anchor   = AnchorStyles.Bottom | AnchorStyles.Left
            };

            actions = new Actions
            {
                Location = new Point(functionsList.Width + parametersView.Width, functionView.Height),
                Width    = functionView.Width - parametersView.Width,
                Height   = parametersView.Height,
                Anchor   = AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left
            };
        }
Пример #2
0
        public FullscreenFunctionForm()
        {
            InitializeComponent();
            WindowState = FormWindowState.Maximized;

            functionView = new FunctionView
            {
                Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right
            };
            ClientSize = new Size(functionView.Width, functionView.Height);
            Controls.Add(functionView);
        }