Beispiel #1
0
        // Token: 0x060000F6 RID: 246 RVA: 0x00006CB8 File Offset: 0x00004EB8
        private void layer_Rename(ScrapPaintLayerItem layerCtrl, string newLayerName)
        {
            var renameLayerCommand = new RenameLayerCommand(layerCtrl.LayerID, newLayerName);

            renameLayerCommand.RenameLayer += renameCmd_RenameLayer;
            _parent.RenameLayerCommand(renameLayerCommand);
        }
Beispiel #2
0
        private void layer_Rename(ScrapPaintLayerItem layerCtrl, string newLayerName)
        {
            RenameLayerCommand renameCmd = new RenameLayerCommand(layerCtrl.LayerID, newLayerName);

            renameCmd.RenameLayer += new RenameLayerCommand.RenameLayerCommandDelegate(this.renameCmd_RenameLayer);
            this._parent.RenameLayerCommand(renameCmd);
        }
Beispiel #3
0
 // Token: 0x0600011C RID: 284 RVA: 0x00007BE6 File Offset: 0x00005DE6
 public void RenameLayerCommand(RenameLayerCommand renameCmd)
 {
     if (layerForm != null)
     {
         historyCommand.Add(renameCmd);
         layerForm.AddCommand(renameCmd);
     }
 }
Beispiel #4
0
 // Token: 0x060000F7 RID: 247 RVA: 0x00006CF0 File Offset: 0x00004EF0
 private void renameCmd_RenameLayer(RenameLayerCommand sender)
 {
     foreach (var scrapPaintLayerItem in _layers)
     {
         if (scrapPaintLayerItem.LayerID == sender.LayerID)
         {
             scrapPaintLayerItem.LayerName = sender.LayerName;
             scrapPaintLayerItem.IsAlive   = true;
             break;
         }
     }
 }
Beispiel #5
0
 private void renameCmd_RenameLayer(RenameLayerCommand sender)
 {
     foreach (ScrapPaintLayerItem item in this._layers)
     {
         if (item.LayerID == sender.LayerID)
         {
             item.LayerName = sender.LayerName;
             item.IsAlive   = true;
             break;
         }
     }
 }