-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
302 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
using System; | ||
using Analogy.Interfaces; | ||
using Microsoft.Extensions.Logging; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
using Analogy.Interfaces; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Analogy.LogViewer.LoggersTree.LoggersTree | ||
{ | ||
|
@@ -16,34 +16,35 @@ public abstract class ExtensionLoggersTree : IAnalogyExtensionUserControl | |
public string AuthorMail { get; set; } = "[email protected]"; | ||
public List<string> AdditionalContributors { get; } = new List<string>(0); | ||
public abstract string Description { get; set; } | ||
private readonly Dictionary<Guid, UserControl> _userControls; | ||
private readonly Dictionary<Guid, UserControl> userControls; | ||
|
||
protected ExtensionLoggersTree() | ||
{ | ||
_userControls = new Dictionary<Guid, UserControl>(); | ||
userControls = new Dictionary<Guid, UserControl>(); | ||
} | ||
|
||
|
||
public UserControl CreateUserControl(Guid logWindowsId, ILogger logger) | ||
{ | ||
UcLoggersTree control = new UcLoggersTree(); | ||
_userControls.Add(logWindowsId, control); | ||
userControls.Add(logWindowsId, control); | ||
return control; | ||
} | ||
|
||
public UserControl GetUserControl(Guid logWindowsId) | ||
{ | ||
return _userControls[logWindowsId]; | ||
return userControls[logWindowsId]; | ||
} | ||
|
||
Task IAnalogyExtensionUserControl.InitializeUserControl(Control hostingControl, Guid logWindowsId, ILogger logger) | ||
{ | ||
(GetUserControl(logWindowsId) as UcLoggersTree)?.Init(); | ||
if (hostingControl is ILogRawSQL logRawSQL) | ||
{ | ||
(GetUserControl(logWindowsId) as UcLoggersTree)?.SetLogRawSQL(logRawSQL); | ||
} | ||
|
||
return Task.CompletedTask; | ||
} | ||
|
||
|
||
public virtual void NewMessage(IAnalogyLogMessage message, Guid logWindowsId) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
Analogy.LogViewer.LoggersTree/LoggersTree/UcLoggersTree.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.