Beispiel #1
0
        public void ReadFormatFile(string fileName)
        {
            ClearDataSource();

            items.ReadFromFile(fileName);

            items.RemoveAll(m => !propertyNames.Contains(m.PropertyName));
            items.DefaultValues.RemoveAll(m => !propertyNames.Contains(m.PropertyName));

            UpdateDataSource();

            lastFile = fileName;
        }
Beispiel #2
0
        public void ReadFormatFile(string fileName)
        {
            ClearDataSource();

            items.ReadFromFile(fileName);

            items.RemoveAll(m => !properties.Contains(m.PropertyName));
            items.DefaultValues.RemoveAll(m => !properties.Contains(m.PropertyName));

            UpdateDataSource();

            lastFile = fileName;

            label1.Text = "Annotation/property mapping - " + Path.GetFileNameWithoutExtension(fileName);

            dlgOpenDirectory.SelectedPath = Path.GetDirectoryName(fileName);
            dlgSaveFormatFile.FileName    = fileName;
        }