Exemplo n.º 1
0
        private void AddFlagControl()
        {
            this.flag = new FlagControl();

            this.flag.ID = "FlagPopUnder";
            this.flag.AssociatedControlId = "FlagButton";
            this.flag.OnClientClick = "return getSelectedItems();";
            this.flag.CssClass = "ui form segment initially hidden";
            this.flag.Updated += this.Flag_Updated;
            this.flag.Catalog = AppUsers.GetCurrentUserDB();

            this.GridViewPlaceholder.Controls.Add(flag);
        }
        private void CreateFlagPanel(Control container)
        {
            using (FlagControl flag = new FlagControl())
            {
                flag.ID = "FlagPopUnder";
                flag.AssociatedControlId = "FlagButton";
                flag.OnClientClick = "return getSelectedItems();";
                flag.CssClass = "ui form segment initially hidden";
                flag.Updated += this.Flag_Updated;
                flag.Catalog = AppUsers.GetCurrentUserDB();

                container.Controls.Add(flag);
            }
        }
Exemplo n.º 3
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.grid != null)
            {
                this.grid.Dispose();
                this.grid = null;
            }

            if (this.flag != null)
            {
                this.flag.Dispose();
                this.flag = null;
            }

            if (this.selectedValuesHidden != null)
            {
                this.selectedValuesHidden.Dispose();
                this.selectedValuesHidden = null;
            }

            this.disposed = true;
        }