示例#1
0
 public void objSelectionChangedListenerInner(object sender, ObjSelectionChangedEventArgs e)
 {
     if (objSelectionChangedTriggerOuter != null)
     {
         objSelectionChangedTriggerOuter(sender, e);
     }
 }
示例#2
0
 public void objSelectionChangedListenerOuter(object sender, ObjSelectionChangedEventArgs e)
 {
     if ((sender as UserControl) == parent)
     {
         return;
     }
     if (objSelectionChangedTriggerInner != null)
     {
         objSelectionChangedTriggerInner(sender, e);
     }
 }
示例#3
0
        // Summary:
        //     Object selection event listener (function).
        //     It will set DataTable's IsSelected property according to
        //     object's selection state.
        // Remarks:
        // (1) The IsSelected property is dynamically injected into
        //     DataTable when object data is read from database.
        //     See ReadRawData() function in the
        //     iS3.Core.Serialization.DbDataLoader class for more information.
        // (2) The DataTable is used to display object data in
        //     the datagrid (class IS3DataGrid). When IsSelected property
        //     is set to true, it will be displayed as selected state
        //     in the datagrid.
        //
        public void objSelectionChangedListener(object sender,
                                                ObjSelectionChangedEventArgs e)
        {
            if (sender == this)
            {
                return;
            }

            if (e.addedObjs != null)
            {
                setObjSelectionState(e.addedObjs, true);
            }
            if (e.removedObjs != null)
            {
                setObjSelectionState(e.removedObjs, false);
            }
        }