Beispiel #1
0
        public Kolone()
        {
            InitializeComponent();
            FieldColumn.ContextMenu = null;
            ContextMenu             = new RightClick(this);
            MenuItem m = new MenuItem {
                Header = "Add Function"
            };

            m.Click += (s, e) =>
            {
                FunctionWindowd diag = new FunctionWindowd(FieldColumn);
                diag.ShowDialog();
            };
            MenuItem addcoltotal = new MenuItem {
                Header = "Add total column"
            };

            addcoltotal.Click += (s, e) =>
            {
                HasTotal = true;
            };

            this.ContextMenu.Items.Add(m);
            this.ContextMenu.Items.Add(addcoltotal);
        }
Beispiel #2
0
        public Line()
        {
            InitializeComponent();

            ContextMenu = new RightClick(this);
        }