public ItemSettings(string path, ItemSettings template)
        {
            template.ThrowIfNull("template");

            Path = path;
            Mapping = template.Mapping;
            Ignore = template.Ignore;
        }
        public MappingWindow(ProjectSettings settings, ItemSettings item)
        {
            InitializeComponent();

            // set variables
            this.settings = settings;
            this.item = item;
            this.itemName = item.GetName();

            // fill controls inital values
            lblPath.Text = item.Path;
            txbMapping.Text = item.Mapping.OrDefault(itemName);

            // initialize controls
            txbMapping.SelectAll();
            txbMapping.Focus();

            UpdateMappingPreview();
        }