Exemple #1
0
        private void Ef_SelectedProjectChanged(object sender, VSProvider.VSProject vp)
        {
            if (dataSource == null)
            {
                dataSource = ExplorerForms.ef.Command_Get_DataSources();
            }

            this.vp = vp;

            if (vp == null)
            {
                return;
            }

            if (dataSource.ContainsKey(vp))
            {
                P = dataSource[vp];
            }
            else
            {
                dataSource.Add(vp, new ArrayList());
                P = dataSource[vp];
            }

            this.BeginInvoke((new Action(() => { LoadDataObjects(P); })));
        }
Exemple #2
0
        public VSProjectItem(VSProject project, object internalProjectItem)
        {
            this.ItemType        = s_ProjectItemElement_ItemType.GetValue(internalProjectItem, null) as string;
            this.Include         = s_ProjectItemElement_Include.GetValue(internalProjectItem, null) as string;
            this.project         = project;
            _internalProjectItem = internalProjectItem;

            // todo - expand this

            if (this.ItemType == "Compile" || this.ItemType == "EntityDeploy")
            {
                var file = new FileInfo(project.FileName);

                fileName = Path.Combine(file.DirectoryName, this.Include);
            }
        }