示例#1
0
 // Token: 0x0600011B RID: 283 RVA: 0x00007BC4 File Offset: 0x00005DC4
 public void DeleteLayerCommand(DeleteLayerCommand delCmd)
 {
     if (layerForm != null)
     {
         historyCommand.Add(delCmd);
         layerForm.AddCommand(delCmd);
     }
 }
示例#2
0
 // Token: 0x060000F8 RID: 248 RVA: 0x00006D60 File Offset: 0x00004F60
 private void DeleteLayer()
 {
     if (_select != null && MessageBox.Show(_select.LayerName + "我如何删除?", base.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
     {
         var deleteLayerCommand = new DeleteLayerCommand(SelectionLayer.LayerID);
         deleteLayerCommand.DeleteLayer += delCmd_DeleteLayer;
         _parent.DeleteLayerCommand(deleteLayerCommand);
     }
 }
示例#3
0
 private void DeleteLayer()
 {
     if ((this._select != null) && (MessageBox.Show(this._select.LayerName + "我如何删除?", base.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2) == DialogResult.Yes))
     {
         DeleteLayerCommand delCmd = new DeleteLayerCommand(this.SelectionLayer.LayerID);
         delCmd.DeleteLayer += new DeleteLayerCommand.DeleteLayerCommandDelegate(this.delCmd_DeleteLayer);
         this._parent.DeleteLayerCommand(delCmd);
     }
 }
示例#4
0
 // Token: 0x060000F9 RID: 249 RVA: 0x00006DD0 File Offset: 0x00004FD0
 private void delCmd_DeleteLayer(DeleteLayerCommand sender)
 {
     foreach (var scrapPaintLayerItem in _layers)
     {
         if (scrapPaintLayerItem.LayerID == sender.LayerID)
         {
             scrapPaintLayerItem.Visible = false;
             scrapPaintLayerItem.IsAlive = true;
             break;
         }
     }
 }