Skip to content

Commit

Permalink
Remove CLIS
Browse files Browse the repository at this point in the history
  • Loading branch information
fahminlb33 committed Feb 28, 2021
1 parent 835cf84 commit e7ffd78
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 1,502 deletions.
7 changes: 0 additions & 7 deletions src/KFmaintenance/Services/FormService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,19 @@ namespace KFmaintenance.Services
{
public interface IFormService : IDisposable
{
void ShowClis();
void ShowFileServer();
}

public class FormService : IFormService
{
private const int FileFormId = 0;
private const int ClisFormId = 1;
private Dictionary<int, Form> _forms = new Dictionary<int, Form>();

public void ShowFileServer()
{
InternalShowForm(FileFormId, () => new FileServerForm());
}

public void ShowClis()
{
InternalShowForm(ClisFormId, () => new ClisForm());
}

private void InternalShowForm(int id, Func<Form> createFunc)
{
var formExists = _forms.TryGetValue(id, out Form form);
Expand Down
Loading

0 comments on commit e7ffd78

Please sign in to comment.