public void LoadFromFile(string path, string fileName)
        {
            var parameters = new StorageParameters {
                FileName = fileName, Path = path
            };
            var q = _storage.LoadQuery(parameters);

            Clear();
            var queryModel = _engine.LoadFromStoreQuery(this, q);

            StoreParameters = queryModel.StoreParameters;
            FromTables      = queryModel.FromTables;
            RegenerateTableLinks();
            SelectionProperties = queryModel.SelectionProperties;

            foreach (var sp in SelectionProperties)
            {
                // var t = FindFromTable(sp.);
                var prop = sp.FromTable.Properties.SingleOrDefault(p => p.StoreProperty.Name == sp.StoreProperty.Name);

                if (prop != null)
                {
                    prop.Selected = true;
                }
            }

            WhereClause = queryModel.WhereClause;
        }
        public void LoadFromFile(string path, string fileName)
        {
            var parameters = new StorageParameters {
                FileName = fileName, Path = path
            };
            var q = _storage.LoadQuery(parameters);

            Clear();
            var fullQuery = _engine.LoadQueryFromStoreQuery(Schema, q);

            ReloadControllerModels(fullQuery);
        }