protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var httpUtils = new EtherApiClient(); var generator = new EmailGeneratorService(); var main = new Main(httpUtils, generator); main.Show(); }
public Main(EtherApiClient client, EmailGeneratorService generator) { InitializeComponent(); _etherClient = client; _generator = generator; }