23 lines
579 B
C#
23 lines
579 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PrivateBox
|
|
{
|
|
public partial class MainForm:Form
|
|
{
|
|
public IEncryptionService Encrytion { get; init; }
|
|
public MainForm(IServiceProvider provider) {
|
|
InitializeComponent();
|
|
this.Encrytion = provider.GetRequiredService<IEncryptionService>();
|
|
}
|
|
}
|
|
}
|