public static int LaunchBuiltInApplication(Apps app, string task = "") { string enchanted = task; if (task == "" || task == " ") //check if there is a better task than empty. { var def = Ext.GetDefaultTask(app); if (def != null) { enchanted = def; } } if (app < Apps.FeedbackDirect && app > Apps.Settings) { //Description Attribute return(LaunchApplication(GuidFromApp(app), enchanted)); } else { return(LaunchApplication(Ext.GetDescription(app), enchanted)); } }
public static T GetTask <T>(TaskType taskType) where T : ITask => s_activeTasks.TryGetValue(taskType, out var task) ? (T)task : throw new Exception($"Nem fut a(z) {Ext.GetDescription<T>()} háttérfolyamat.");