Example #1
0
        /// <summary>
        /// 新しいレイヤーを追加する。
        /// </summary>
        /// <param name="fileName">ファイル名</param>
        private void AddNewLayerToFirst(string fileName)
        {
            var layer = new LayerEntry();

            layer.FileName = fileName;
            layerSet.Insert(0, layer);
        }
Example #2
0
        /// <summary>
        /// 新しいレイヤーを追加する。
        /// </summary>
        /// <param name="fileName">ファイル名</param>
        private void AddNewLayer(string fileName)
        {
            var layer = new LayerEntry();

            layer.FileName = fileName;
            layerSet.Add(layer);
        }
 /// <summary>
 /// 新しいLayerEntryControlを構築する。
 /// </summary>
 public LayerEntryControl()
 {
     layerEntry        = null;
     selectedBackColor = Color.Aqua;
     imageFileName     = string.Empty;
     InitializeComponent();
     toolStripDropDown              = new ToolStripDropDown();
     colorSettingControl            = new ColorSettingControl();
     colorSettingControl.LayerEntry = layerEntry;
     toolStripDropDown.Items.Add(new ToolStripControlHost(colorSettingControl));
 }
Example #4
0
        /// <summary>
        /// レイヤーコントロールを作成する。
        /// </summary>
        /// <param name="layer">設定するレイヤー</param>
        private void CreateLayerControl(LayerEntry layer)
        {
            var control = new LayerEntryControl();

            control.UpButtonClick     += OnLayerUpButtonClick;
            control.DownButtonClick   += OnLayerDownButtonClick;
            control.DeleteButtonClick += OnLayerDeleteButtonClick;
            control.LayerEntry         = layer;
            control.BorderStyle        = BorderStyle.FixedSingle;
            panelLayerParent.Controls.Add(control);
            control.Dock = DockStyle.Bottom;
        }
Example #5
0
 /// <summary>
 /// レイヤーイベント
 /// </summary>
 /// <param name="index">レイヤーインデックス</param>
 /// <param name="layer">レイヤー</param>
 public LayerEventArgs(int index, LayerEntry layer)
 {
     Index = index;
     Layer = layer;
 }
Example #6
0
 /// <summary>
 /// 新しいインスタンスを構築する。
 /// </summary>
 public ColorSettingControl()
 {
     entry       = null;
     colorDialog = null;
     InitializeComponent();
 }