Example #1
0
        /// <summary>
        /// The constructor creates a graphical filter element for the search panel.
        /// </summary>
        /// <param name="id">ID of this panel</param>
        /// <param name="yPlace">Position in the Y-axis of the search panel (ABSOLUTE)</param>
        /// <param name="spPos">Position of the scroll bar </param>
        /// <param name="searchM">The panel where to add this filter</param>
        public Filter(int id, int yPlace, int spPos, SearchManager searchM)
        {
            InitializeComponent();
            this.id = id;

            absPos = yPlace;
            relPos = yPlace + spPos;

            sm = searchM;

            this.SetNewYPosition(this.relPos);
            this.InitSearchSelector();
            this.minusBox.Location = new Point(185, 88);
        }
 /// <summary>
 /// Initializes the window and all its components
 /// </summary>
 private void InitializeWindow()
 {
     //eventLogger = new EventLogger(false);
     //eventLogger.Changed += new ChangedEventHandler(eventLogger_Changed);
     updating = true;
     InitializeComponent();
     sm = new SearchManager(this);
     this.Visible = false;
 }