Ejemplo n.º 1
0
        private void TopSupergridSelectionChanged(object sender, DevComponents.DotNetBar.SuperGrid.GridEventArgs e)
        {
            List <PropertyGridElement> propertyList = new List <PropertyGridElement>();

            try
            {
                foreach (var row in topSupergrid.SelectedObjects)
                {
                    propertyList.AddRange(new MDHelper().CreatePropertyGridElements((Material)row));
                }
            }
            catch (Exception ex)
            {
                Trace.WriteError(ex.Message, Trace.GetMethodName(), CLASSNAME, ex);
            }

            EnableDisableButtons();
            UpdateTopPropertyGrid(propertyList);
        }
Ejemplo n.º 2
0
 private void selshiplist_RowsSorted(object sender, GridEventArgs e)
 {
     GridPanel panel = selshiplist.PrimaryGrid;
     object[] vv = new object[19] { "", "清空", "清空", "清空", "", 100, "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "清空", "", 0 };
     panel.Rows.Insert(0,new GridRow(vv));
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Handles invocation of SortChanged events
        /// </summary>
        internal void DoSortChangedEvent(GridPanel gridPanel)
        {
            if (SortChanged != null)
            {
                GridEventArgs ev = new
                    GridEventArgs(gridPanel);

                SortChanged(this, ev);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Handles invocation of RowsSortedEvent events
        /// </summary>
        internal void DoRowsSortedEvent(GridPanel panel)
        {
            if (RowsSorted != null)
            {
                GridEventArgs ev = new GridEventArgs(panel);

                RowsSorted(this, ev);
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Handles invocation of RowHeaderResized events
        /// </summary>
        internal void DoRowHeaderResizedEvent(GridPanel gridPanel)
        {
            if (RowHeaderResized != null)
            {
                GridEventArgs ev = new GridEventArgs(gridPanel);

                RowHeaderResized(this, ev);
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Handles invocation of ColumnRowHeaderDoubleClick events
        /// </summary>
        internal void DoColumnRowHeaderDoubleClickEvent(GridPanel gridPanel)
        {
            if (ColumnRowHeaderDoubleClick != null)
            {
                GridEventArgs ev = new GridEventArgs(gridPanel);

                ColumnRowHeaderDoubleClick(this, ev);
            }
        }