Exemple #1
0
        private void FindResource()
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);

            resourceSelectorDialog.ShowDialog(App.Controller.View);

            if (resourceSelectorDialog.Valid)
            {
                this.ProjectExplorer.SelectResource(resourceSelectorDialog.Resources[0]);
            }
        }
Exemple #2
0
        private void setAsProjectStartupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);

            resourceSelectorDialog.ShowDialog(App.Controller.View);

            if (resourceSelectorDialog.Valid)
            {
                PhactoryHost.Database.Resource resource = resourceSelectorDialog.Resources[0];
                App.Controller.Entities.StartupResourceId = resource.Id;
                App.Controller.SaveProject();

                this.ProjectExplorer.SelectResource(resource);
            }
        }
Exemple #3
0
        private void setAsProjectStartupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);
            resourceSelectorDialog.ShowDialog(App.Controller.View);

            if (resourceSelectorDialog.Valid)
            {
                PhactoryHost.Database.Resource resource = resourceSelectorDialog.Resources[0];
                App.Controller.Entities.StartupResourceId = resource.Id;
                App.Controller.SaveProject();

                this.ProjectExplorer.SelectResource(resource);
            }
        }
Exemple #4
0
        private void FindResource()
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);
            resourceSelectorDialog.ShowDialog(App.Controller.View);

            if (resourceSelectorDialog.Valid)
            {
                this.ProjectExplorer.SelectResource(resourceSelectorDialog.Resources[0]);
            }
        }