示例#1
0
文件: View.cs 项目: rgiot/phactory
        private void FindResource()
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);

            resourceSelectorDialog.ShowDialog(App.Controller.View);

            if (resourceSelectorDialog.Valid)
            {
                this.ProjectExplorer.SelectResource(resourceSelectorDialog.Resources[0]);
            }
        }
示例#2
0
文件: View.cs 项目: rgiot/phactory
        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);
            }
        }
示例#3
0
文件: View.cs 项目: rgiot/phactory
        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);
            }
        }
示例#4
0
文件: View.cs 项目: rgiot/phactory
        private void FindResource()
        {
            ResourceSelector resourceSelectorDialog = new ResourceSelector(null);
            resourceSelectorDialog.ShowDialog(App.Controller.View);

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