private void InitItems()
        {
            operationControl.SelectionChanged -= new SelectionChangedEventHandler(operationControl_SelectionChanged);
            operationControl.Items.Clear();

            FilterOperationItemControl item = new FilterOperationItemControl(OperationTypes.And);

            operationControl.Items.Add(item);
            item = new FilterOperationItemControl(OperationTypes.Or);
            operationControl.Items.Add(item);

            ItemsSplitter splitter = new ItemsSplitter();

            splitter.IsTabStop = false;
            splitter.Width     = 150;
            operationControl.Items.Add(splitter);

            CustomItemControl custom = new CustomItemControl(CustomControlTypes.AddOperation);

            operationControl.Items.Add(custom);

            custom = new CustomItemControl(CustomControlTypes.AddOperand);
            operationControl.Items.Add(custom);

            splitter           = new ItemsSplitter();
            splitter.IsTabStop = false;
            splitter.Width     = 150;
            operationControl.Items.Add(splitter);

            if (m_IsRoot)
            {
                custom = new CustomItemControl(CustomControlTypes.Clear);
                operationControl.Items.Add(custom);
            }
            else
            {
                custom = new CustomItemControl(CustomControlTypes.Delete);
                operationControl.Items.Add(custom);
            }
            operationControl.SelectionChanged += new SelectionChangedEventHandler(operationControl_SelectionChanged);
        }
        private void InitItems()
        {
            operationControl.SelectionChanged -= new SelectionChangedEventHandler(operationControl_SelectionChanged);
            operationControl.Items.Clear();

            FilterOperationItemControl item = new FilterOperationItemControl(OperationTypes.And);
            operationControl.Items.Add(item);
            item = new FilterOperationItemControl(OperationTypes.Or);
            operationControl.Items.Add(item);

            ItemsSplitter splitter = new ItemsSplitter();
            splitter.IsTabStop = false;
            splitter.Width = 150;
            operationControl.Items.Add(splitter);

            CustomItemControl custom = new CustomItemControl(CustomControlTypes.AddOperation);
            operationControl.Items.Add(custom);

            custom = new CustomItemControl(CustomControlTypes.AddOperand);
            operationControl.Items.Add(custom);

            splitter = new ItemsSplitter();
            splitter.IsTabStop = false;
            splitter.Width = 150;
            operationControl.Items.Add(splitter);

            if (m_IsRoot)
            {
                custom = new CustomItemControl(CustomControlTypes.Clear);
                operationControl.Items.Add(custom);
            }
            else
            {
                custom = new CustomItemControl(CustomControlTypes.Delete);
                operationControl.Items.Add(custom);
            }
            operationControl.SelectionChanged += new SelectionChangedEventHandler(operationControl_SelectionChanged);
        }