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