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

            resourceSelectorDialog.ShowDialog(App.Controller.View);

            if (resourceSelectorDialog.Valid)
            {
                this.ProjectExplorer.SelectResource(resourceSelectorDialog.Resources[0]);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #4
0
        private void FindResource()
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);
            resourceSelectorDialog.ShowDialog(App.Controller.View);

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