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(); } }
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(); } }