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>(); }
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))); }
private void runToolStripMenuItem_Click(object sender, EventArgs e) { var dialog = new RunUI(_windowManager.ActivateItems); dialog.Show(); }