ExpressionEditorView CreateExpressionControl()
        {
            ExpressionEditorControl control = new ExpressionEditorControl();

            if (column is GridColumn)
            {
                columnContext = new GridColumnIDataColumnInfoWrapper(column as GridColumn, GridColumnIDataColumnInfoWrapperEnum.ExpressionEditor);
            }
            if (column is TreeListColumn)
            {
                columnContext = column as IDataColumnInfo;
            }
            control.Context = ExpressionEditorHelper.GetExpressionEditorContext(LookAndFeel, columnContext);
            ExpressionEditorView expressionView = new ExpressionEditorView(control.LookAndFeel, control);

            expressionView.Dock            = System.Windows.Forms.DockStyle.Fill;
            expressionView.TopLevel        = false;
            expressionView.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            expressionView.Ok     += ExpressionView_Ok;
            expressionView.Cancel += ExpressionView_Cancel;
            expressionView.Visible = true;
            return(expressionView);
        }
Beispiel #2
0
        private ExpressionEditorView CreateExpressionControl()
        {
            var control = new ExpressionEditorControl();

            if (_Column is GridColumn gridColumn)
            {
                _ColumnContext = new GridColumnIDataColumnInfoWrapper(gridColumn, GridColumnIDataColumnInfoWrapperEnum.ExpressionEditor);
            }
            if (_Column is TreeListColumn)
            {
                _ColumnContext = _Column as IDataColumnInfo;
            }
            control.Context = ExpressionEditorHelper.GetExpressionEditorContext(LookAndFeel, _ColumnContext);

            var expressionView = new ExpressionEditorView(control.LookAndFeel, control)
            {
                Dock            = DockStyle.Fill,
                TopLevel        = false,
                FormBorderStyle = FormBorderStyle.None
            };

            expressionView.Ok     += ExpressionView_Ok;
            expressionView.Cancel += ExpressionView_Cancel;
            expressionView.Visible = true;

            if (FindChildControl(expressionView, "okButton") is SimpleButton btnOK)
            {
                btnOK.Text    = "Commit";
                btnOK.ToolTip = "Save changes for editing column.";
            }
            if (FindChildControl(expressionView, "cancelButton") is SimpleButton btnCancel)
            {
                btnCancel.Text    = "Rollback";
                btnCancel.ToolTip = "Rollback changes for editing column.";
            }

            return(expressionView);
 public ConditionExpressionEditorControl(IDataColumnInfo columnInfo)
     : base(columnInfo)
 {
 }
 public ReportWizardExpressionEditorLogic(IExpressionEditor editor, IDataColumnInfo columnInfo)
     : base(editor, columnInfo)
 {
     additionalFunctionsTitle = CaptionHelper.GetLocalizedText("Texts", "Aggregates");
     parametersTitle = editor.GetResourceString("Parameters.Text");
 }
Beispiel #5
0
 public ExpressionColumnInfo(IDataColumnInfo column)
 {
     _columnInfo = column;
     FillColumnsList();
 }
Beispiel #6
0
 public ConditionExpressionEditorLogic(IExpressionEditor editor, IDataColumnInfo columnInfo)
     : base(editor, columnInfo)
 {
 }