Exemple #1
0
 private void layer_SelectLayer(ScrapPaintLayerItem layerCtrl)
 {
     if (!layerCtrl.Equals(this._select))
     {
         this._select = layerCtrl;
         foreach (ScrapPaintLayerItem item in this._layers)
         {
             if (item.Equals(layerCtrl))
             {
                 item.BackColor = Color.SkyBlue;
             }
             else
             {
                 item.BackColor = SystemColors.Control;
             }
         }
         if (this.SelectLayer != null)
         {
             this.SelectLayer(layerCtrl);
         }
     }
 }
Exemple #2
0
 // Token: 0x060000FB RID: 251 RVA: 0x00006FA0 File Offset: 0x000051A0
 private void layer_SelectLayer(ScrapPaintLayerItem layerCtrl)
 {
     if (layerCtrl.Equals(_select))
     {
         return;
     }
     _select = layerCtrl;
     foreach (var scrapPaintLayerItem in _layers)
     {
         if (scrapPaintLayerItem.Equals(layerCtrl))
         {
             scrapPaintLayerItem.BackColor = Color.SkyBlue;
         }
         else
         {
             scrapPaintLayerItem.BackColor = SystemColors.Control;
         }
     }
     if (SelectLayer != null)
     {
         SelectLayer(layerCtrl);
     }
 }