Added dependency injection
This commit is contained in:
parent
2293c4f9e1
commit
39a9baf5c6
13 changed files with 59 additions and 581 deletions
|
|
@ -11,6 +11,7 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using CatalogVbLib;
|
||||
using ImageCatalog_2.Services;
|
||||
using MaddoShared;
|
||||
using Microsoft.VisualBasic;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
|
|
@ -22,8 +23,12 @@ namespace ImageCatalog
|
|||
|
||||
public partial class MainForm
|
||||
{
|
||||
public MainForm()
|
||||
private readonly ITestService _service;
|
||||
|
||||
public MainForm(ITestService testService)
|
||||
{
|
||||
_service = testService;
|
||||
|
||||
InitializeComponent();
|
||||
_Button3.Name = "Button3";
|
||||
_Button2.Name = "Button2";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue