Esempio n. 1
0
        private void initView()
        {
            this.butAdd       = new Button();
            this.butRemove    = new Button();
            this.txtFilterBox = new TextBox();

            this.butAdd.Height       = 20;
            this.butAdd.Width        = 55;
            this.butAdd.Text         = "Add";
            this.butAdd.Dock         = DockStyle.Right;
            this.butRemove.Height    = 20;
            this.butRemove.Width     = 55;
            this.butRemove.Text      = "Remove";
            this.butRemove.Dock      = DockStyle.Right;
            this.txtFilterBox.Height = 20;
            this.txtFilterBox.Dock   = DockStyle.Fill;
            this.txtFilterBox.Text   = "*";

            this.Controls.Add(this.butRemove);
            this.Controls.Add(this.butAdd);
            this.Controls.Add(this.txtFilterBox);

            //Events
            this.butAdd.Click    += new System.EventHandler(this.butAdd_Click);
            this.butRemove.Click += new System.EventHandler(this.butRemove_Click);

            this.Height = 20;
            this.Dock   = DockStyle.Top;

            this.AddFilterPanelDel    = null;
            this.RemoveFilterPanelDel = null;
        }
Esempio n. 2
0
 public void setRemoveFilterPanelDel(RemoveFilterPanelTyp del)
 {
     this.RemoveFilterPanelDel = del;
 }