Пример #1
0
        // Token: 0x060000F4 RID: 244 RVA: 0x00006B60 File Offset: 0x00004D60
        public void AddLayer()
        {
            var addLayerCommand = new AddLayerCommand("层" + (_layers.Count + 1).ToString(), SelectionIndex);

            addLayerCommand.AddLayer += addCmd_AddLayer;
            _parent.AddLayerCommand(addLayerCommand);
        }
Пример #2
0
        // Token: 0x060000F3 RID: 243 RVA: 0x00006AFC File Offset: 0x00004CFC
        private void ScrapPaintLayer_Shown(object sender, EventArgs e)
        {
            var addLayerCommand = new AddLayerCommand("层" + (_layers.Count + 1).ToString(), SelectionIndex);

            addLayerCommand.AddLayer += addCmd_AddLayer;
            AddCommand(addLayerCommand);
            layer_SelectLayer(_layers[0]);
        }
Пример #3
0
        public void AddLayer()
        {
            int             num    = this._layers.Count + 1;
            AddLayerCommand addCmd = new AddLayerCommand("层" + num.ToString(), this.SelectionIndex);

            addCmd.AddLayer += new AddLayerCommand.AddLayerCommandDelegate(this.addCmd_AddLayer);
            this._parent.AddLayerCommand(addCmd);
        }
Пример #4
0
        private void ScrapPaintLayer_Shown(object sender, EventArgs e)
        {
            int             num    = this._layers.Count + 1;
            AddLayerCommand addCmd = new AddLayerCommand("层" + num.ToString(), this.SelectionIndex);

            addCmd.AddLayer += new AddLayerCommand.AddLayerCommandDelegate(this.addCmd_AddLayer);
            this.AddCommand(addCmd);
            this.layer_SelectLayer(this._layers[0]);
        }
Пример #5
0
 // Token: 0x0600011A RID: 282 RVA: 0x00007B78 File Offset: 0x00005D78
 public void AddLayerCommand(AddLayerCommand addCmd)
 {
     if (layerForm != null)
     {
         historyCommand.Add(addCmd);
         if (!addCmd.IsEvent)
         {
             addCmd.AddLayer += layerForm.addCmd_AddLayer;
         }
         layerForm.AddCommand(addCmd);
     }
 }
Пример #6
0
        // Token: 0x060000F5 RID: 245 RVA: 0x00006BB8 File Offset: 0x00004DB8
        public void addCmd_AddLayer(AddLayerCommand sender)
        {
            foreach (var scrapPaintLayerItem in _layers)
            {
                if (scrapPaintLayerItem.LayerID == sender.LayerID)
                {
                    scrapPaintLayerItem.Visible   = true;
                    scrapPaintLayerItem.LayerName = sender.LayerName;
                    scrapPaintLayerItem.IsAlive   = true;
                    return;
                }
            }
            var scrapPaintLayerItem2 = sender.CreateLayer(_parent.Width, _parent.Height);

            scrapPaintLayerItem2.LayerName     = sender.LayerName;
            scrapPaintLayerItem2.IsAlive       = true;
            scrapPaintLayerItem2.SelectLayer  += layer_SelectLayer;
            scrapPaintLayerItem2.LayerChanged += layer_LayerChanged;
            scrapPaintLayerItem2.Rename       += layer_Rename;
            _layers.Insert(sender.InsertIndex, scrapPaintLayerItem2);
            SelectionIndex = sender.InsertIndex;
        }
Пример #7
0
        public void addCmd_AddLayer(AddLayerCommand sender)
        {
            foreach (ScrapPaintLayerItem item in this._layers)
            {
                if (item.LayerID == sender.LayerID)
                {
                    item.Visible   = true;
                    item.LayerName = sender.LayerName;
                    item.IsAlive   = true;
                    return;
                }
            }
            ScrapPaintLayerItem item2 = sender.CreateLayer(this._parent.Width, this._parent.Height);

            item2.LayerName     = sender.LayerName;
            item2.IsAlive       = true;
            item2.SelectLayer  += new ScrapPaintLayerItem.LayerDelegate(this.layer_SelectLayer);
            item2.LayerChanged += new ScrapPaintLayerItem.LayerDelegate(this.layer_LayerChanged);
            item2.Rename       += new ScrapPaintLayerItem.LayerRenameDelegate(this.layer_Rename);
            this._layers.Insert(sender.InsertIndex, item2);
            this.SelectionIndex = sender.InsertIndex;
        }