コード例 #1
0
        private void NewMember(string Key, string Descripcion)
        {
            /// <summary>
            /// Alta de jerarquía de productos. Se abre el formulario de edición.
            /// </summary>
            string Caption = "Agrupamientos";
            FrmAbmJerarquiaAgrupGeneral form = new FrmAbmJerarquiaAgrupGeneral();

            form.ShowForm(_source, null, Key, 'A', Caption + '-' + Descripcion);
            form.OnRowChanged += new FrmAMB.RowChanged(this.RefreshEvent);
        }
コード例 #2
0
        private void EditMember(string Key, string Descripcion)
        {
            /// <summary>
            /// Modificación de jerarquía de productos. Se abre el formulario de edición para poder modificar el nombre o borrar el nodo seleccionado.
            /// </summary>

            if (Key != ultraTree1.Nodes[0].Key)
            {
                string KeyP    = ultraTree1.GetNodeByKey(Key).Parent.Key;
                string Caption = "Agrupamientos";
                FrmAbmJerarquiaAgrupGeneral form = new FrmAbmJerarquiaAgrupGeneral();
                form.ShowForm(_source, Key, KeyP, 'A', Caption + '-' + Descripcion);
                form.OnRowChanged += new FrmAMB.RowChanged(this.RefreshEvent);
            }
        }