コード例 #1
0
 private void EditLayer(Layer layer)
 {
     if (mPreset.Layer.ContainsKey(layer))
     {
         var fm = new LayerInfoDialog(mFile, mPreset.Layer.Find(layer)[0]);
         fm.ShowDialog();
         DispLayerInfo();
         DispLayerRanges();
     }
     else
     {
         AddLayer();
     }
 }
コード例 #2
0
        private void AddLayer()
        {
            var layer = new Layer();

            layer.Header.KeyLo = byte.MaxValue;
            var fm = new LayerInfoDialog(mFile, layer);

            fm.ShowDialog();
            if (byte.MaxValue != layer.Header.KeyLo)
            {
                mPreset.Layer.Add(layer);
                DispLayerInfo();
            }
        }