コード例 #1
0
ファイル: UI.cs プロジェクト: emsha/FunFactory
    void Awake()
    {
        instance = this;
        GameObject toolBoxPanel = gameObject.transform.GetChild(0).gameObject;

        toolBoxPanel.SetActive(true);
        runControls = gameObject.transform.GetChild(1).GetComponent <RunUI>();
        machines    = gameObject.transform.GetChild(2).GetComponent <MachineUI>();
        select      = gameObject.transform.GetChild(3).GetComponent <SelectUI>();
    }
コード例 #2
0
ファイル: RunUITests.cs プロジェクト: 24418863/rdm
        public void AllCommandsCompatible()
        {
            Console.WriteLine("Looking in" + typeof(ExecuteCommandCreateNewExtractableDataSetPackage).Assembly);
            Console.WriteLine("Looking in" + typeof(ExecuteCommandViewCohortAggregateGraph).Assembly);
            Console.WriteLine("Looking in" + typeof(ExecuteCommandUnpin).Assembly);

            allowedToBeIncompatible.AddRange(RunUI.GetIgnoredCommands());

            var notSupported = RepositoryLocator.CatalogueRepository.MEF.GetAllTypes()
                               .Where(t => typeof(IAtomicCommand).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface) //must be something we would normally expect to be a supported Type
                               .Where(t => !RunUI.IsSupported(t))                                                         //but for some reason isn't
                               .Except(allowedToBeIncompatible)                                                           //and isn't a permissable one
                               .ToArray();

            Assert.AreEqual(0, notSupported.Length, "The following commands were not compatible with RunUI:" + Environment.NewLine + string.Join(Environment.NewLine, notSupported.Select(t => t.Name)));

            var supported = RepositoryLocator.CatalogueRepository.MEF.GetAllTypes().Where(RunUI.IsSupported).ToArray();

            Console.WriteLine("The following commands are supported:" + Environment.NewLine + string.Join(Environment.NewLine, supported.Select(cmd => cmd.Name)));
        }
コード例 #3
0
ファイル: RDMPTopMenuStripUI.cs プロジェクト: rkm/RDMP
        private void runToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dialog = new RunUI(_windowManager.ActivateItems);

            dialog.Show();
        }