public static void CreateAllJobsAsset() { AllJobs database = ScriptableObject.CreateInstance <AllJobs> (); AssetDatabase.CreateAsset(database, "Assets/Jobs/AllJobs #.asset"); AssetDatabase.SaveAssets(); }
public CCTrayProject[] GetProjectList() { UpdateAllJobsIfCacheExpired(); return(AllJobs.Select(a => new CCTrayProject(Configuration, a.Name) { ShowProject = a.Color != "disabled" }).ToArray()); }
public void UpdateView(AllJobs jobs) { if (FFTPatch.Context != ourContext) { ourContext = FFTPatch.Context; cbJob = null; } jobsListBox.SelectedIndexChanged -= jobsListBox_SelectedIndexChanged; jobsListBox.DataSource = jobs.Jobs; jobsListBox.SelectedIndexChanged += jobsListBox_SelectedIndexChanged; jobsListBox.SelectedIndex = 0; jobEditor.Job = jobsListBox.SelectedItem as Job; }
/// <summary> /// Alternate method for retrieving current status for all projects without /// exception handling, for use within other ICruiseServerManager methods /// to provide user feedback /// </summary> /// <returns></returns> public CruiseServerSnapshot GetCruiseServerSnapshotEx() { List <ProjectStatus> projectStatues = AllJobs .Where(a => ProjectsAndCurrentStatus.ContainsKey(a.Name)) .Select(a => Api.GetProjectStatus(a.Url, ProjectsAndCurrentStatus[a.Name])) .ToList(); // Reset the ProjectsAndCurrentStatus dictionary ProjectsAndCurrentStatus = projectStatues.ToDictionary(a => a.Name); var snapshot = new CruiseServerSnapshot(projectStatues.ToArray(), new QueueSetSnapshot()); return(snapshot); }
public void RefreshJobs() { if (AllJobs == null) { return; } AllJobs.Clear(); var list = experienceRepos.GetAllDecorators(); foreach (var job in list) { AllJobs.Add(job); job.PropertyChanged += Job_PropertyChanged; } }
public void UpdateView(AllJobs jobs, Context context) { if (context != ourContext) { ourContext = context; cbJob = null; } jobsListBox.SelectedIndexChanged -= jobsListBox_SelectedIndexChanged; jobsListBox.DataSource = jobs.Jobs; jobsListBox.SelectedIndexChanged += jobsListBox_SelectedIndexChanged; jobsListBox.SelectedIndex = 0; //jobEditor.Job = jobsListBox.SelectedItem as Job; jobEditor.SetJob(jobsListBox.SelectedItem as Job, context); jobsListBox.SetChangedColors(); }
public MainLogic() { wasPageIdChanged = false; currentPageID = 0; jobMaster = new JobMaster(); jobnet = new JobNet(); drushim = new Drushim(); allJobs = new AllJobs(); IrrelevantJobs = new List <Job>(); RecommendedJobs = new Dictionary <string, Job>(); jobSiteChangedPage = ""; sqlm = new Helpers.MySQLManager(); }
private void SetUpCollectionEvents() { batteries.ItemAdded += delegate(Battery bat) { AllBatteries.Add(bat.UID, bat); bat.AssignHub(_source); }; batteries.ItemRemoved += delegate(Battery bat) { BatteriesWithNoDrones.Remove(bat.UID); AllBatteries.Remove(bat.UID); }; drones.ItemAdded += delegate(IDataSource drone) { ((Drone)drone).AssignHub(_source); AllDrones.Add(drone.UID, drone); DronesWithNoJobs.Add(drone.UID, (Drone)drone); }; drones.ItemRemoved += delegate(IDataSource drone) { AllDrones.Remove(drone); DronesWithNoJobs.Remove((Drone)drone); }; DronesWithNoJobs.ItemAdded += (drone) => { drone.transform.SetParent(_source.transform); }; DronesWithNoJobs.ItemRemoved += (drone) => { drone.transform.SetParent(Drone.ActiveDrones); }; completedJobs.ItemAdded += delegate(IDataSource job) { incompleteJobs.Remove(job); AllCompleteJobs.Add(job.UID, job); }; completedJobs.ItemRemoved += (job) => AllCompleteJobs.Remove(job); incompleteJobs.ItemAdded += delegate(IDataSource job) { AllJobs.Add(job.UID, (Job)job); AllIncompleteJobs.Add(job.UID, job); }; incompleteJobs.ItemRemoved += (job) => AllIncompleteJobs.Remove(job); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Access some class members to force the static constructors to run. object dummy = AllAbilities.PSPNames; dummy = PSPResources.Lists.AbilityAttributes; dummy = PSXResources.Lists.AbilityAttributes; dummy = SkillSet.GetDummySkillSets(PatcherLib.Datatypes.Context.US_PSX); dummy = AllMonsterSkills.PSXNames; dummy = AllJobs.GetNames(PatcherLib.Datatypes.Context.US_PSX); dummy = ActionMenuEntry.AllActionMenuEntries; dummy = ShopAvailability.GetAllAvailabilities(PatcherLib.Datatypes.Context.US_PSX); dummy = SpriteSet.GetSpriteSets(PatcherLib.Datatypes.Context.US_PSX); dummy = SpecialName.GetSpecialNames(PatcherLib.Datatypes.Context.US_PSX); dummy = Event.GetEventNames(PatcherLib.Datatypes.Context.US_PSX); Application.Run(new MainForm()); }
private void UpdateDataSources() { foreach (ComboBoxWithDefault itemComboBox in new ComboBoxWithDefault[] { rightHandComboBox, leftHandComboBox, headComboBox, bodyComboBox, accessoryComboBox, warTrophyComboBox }) { itemComboBox.BindingContext = new BindingContext(); itemComboBox.DataSource = Item.GetEventItems(ourContext); } primarySkillComboBox.BindingContext = new BindingContext(); primarySkillComboBox.DataSource = new List <SkillSet>(SkillSet.GetEventSkillSets(ourContext).Values); secondaryActionComboBox.BindingContext = new BindingContext(); secondaryActionComboBox.DataSource = new List <SkillSet>(SkillSet.GetEventSkillSets(ourContext).Values); foreach (ComboBoxWithDefault abilityComboBox in new ComboBoxWithDefault[] { reactionComboBox, supportComboBox, movementComboBox }) { abilityComboBox.BindingContext = new BindingContext(); abilityComboBox.DataSource = AllAbilities.GetEventAbilities(ourContext); } faithComboBox.BindingContext = new BindingContext(); faithComboBox.DataSource = zeroTo100; braveryComboBox.BindingContext = new BindingContext(); braveryComboBox.DataSource = zeroTo100; dayComboBox.DataSource = zeroTo31; levelComboBox.DataSource = levelStrings; experienceComboBox.DataSource = byteNumberWithRandom; spriteSetComboBox.DataSource = SpriteSet.GetSpriteSets(ourContext); specialNameComboBox.DataSource = SpecialName.GetSpecialNames(ourContext); jobComboBox.DataSource = AllJobs.GetDummyJobs(ourContext); monthComboBox.DataSource = Enum.GetValues(typeof(Month)); teamColorComboBox.DataSource = Enum.GetValues(typeof(TeamColor)); facingDirectionComboBox.DataSource = Enum.GetValues(typeof(Facing)); preRequisiteJobComboBox.DataSource = Enum.GetValues(typeof(PreRequisiteJob)); }
public void EndJob() { CurrentJob.EndTime = DateTime.Now; AllJobs.Add(CurrentJob); CurrentJob = null; }