static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var jp = new JsonPortal(); jp.Input += jp.Objekt_anzeigen; jp.Show(); }
public TaskPortal(CrmServiceClient crmServiceClient, string currentDirectory, CommandLineArgs arguments) { this.crmServiceClient = crmServiceClient; this.currentDirectory = currentDirectory; this.arguments = arguments; var jsonFile = Path.Combine(currentDirectory, arguments.Json); this.json = SimpleJson.DeserializeObject <Json>(File.ReadAllText(jsonFile)) .portals.FirstOrDefault(x => x.profile == arguments.Profile); downloadedFiles = new List <string>(); }