Skip to content

Commit

Permalink
[Common Controls] move more user control to common control DLL #1312
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Jun 5, 2022
1 parent ed57a54 commit a48cc06
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 1,009 deletions.
1 change: 1 addition & 0 deletions Analogy.CommonControls/Forms/FormMessageDetails.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Analogy.CommonControls.UserControls;
using Analogy.Interfaces;
using DevExpress.XtraEditors;

Expand Down
10 changes: 5 additions & 5 deletions Analogy.CommonControls/Forms/XtraFormLogGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public partial class XtraFormLogGrid : XtraForm
private readonly List<AnalogyLogMessage> _messages;
private readonly string _dataSource;
public LogMessagesUC Window => _logMessagesUcLogs1;
public XtraFormLogGrid(bool registerToAnalogyLogger)
public XtraFormLogGrid(bool registerToAnalogyLogger)
{
InitializeComponent();
_dataSource = "Analogy";
_messages = new List<AnalogyLogMessage>();
InitializeComponent();
_dataSource = "Analogy";
_messages = new List<AnalogyLogMessage>();

}
public XtraFormLogGrid(IAnalogyOfflineDataProvider? fileDataProvider):this(false)
public XtraFormLogGrid(IAnalogyOfflineDataProvider? fileDataProvider) : this(false)
{
FileDataProvider = fileDataProvider;
_logMessagesUcLogs1.SetFileDataSource(FileDataProvider);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions Analogy.CommonControls/UserControls/MessageDetailsUC.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using Analogy.Interfaces;
using DevExpress.XtraEditors;
using Markdig;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Analogy.CommonControls;
using Analogy.CommonControls.Tools;
using Analogy.Interfaces;
using DevExpress.XtraEditors;
using Markdig;

namespace Analogy
namespace Analogy.CommonControls.UserControls
{
public partial class MessageDetailsUC : XtraUserControl
{
Expand Down
7 changes: 0 additions & 7 deletions Analogy/Analogy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,6 @@
<Compile Update="UserControls\UCLogs.Designer.cs">
<DependentUpon>UCLogs.cs</DependentUpon>
</Compile>
<Compile Update="UserControls\MessageDetailsUC.cs" />
<Compile Update="UserControls\MessageDetailsUC.Designer.cs">
<DependentUpon>MessageDetailsUC.cs</DependentUpon>
</Compile>
<Compile Update="UserControls\UtilityUC.cs" />
<Compile Update="UserControls\UtilityUC.Designer.cs">
<DependentUpon>UtilityUC.cs</DependentUpon>
Expand Down Expand Up @@ -753,9 +749,6 @@
<EmbeddedResource Update="UserControls\UCLogs.resx">
<DependentUpon>UCLogs.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Update="UserControls\MessageDetailsUC.resx">
<DependentUpon>MessageDetailsUC.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Update="UserControls\UtilityUC.resx">
<DependentUpon>UtilityUC.cs</DependentUpon>
</EmbeddedResource>
Expand Down
1 change: 1 addition & 0 deletions Analogy/Forms/FormMessageDetails.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Analogy.CommonControls.UserControls;
using Analogy.Interfaces;
using DevExpress.XtraEditors;

Expand Down
657 changes: 0 additions & 657 deletions Analogy/UserControls/MessageDetailsUC.Designer.cs

This file was deleted.

157 changes: 0 additions & 157 deletions Analogy/UserControls/MessageDetailsUC.cs

This file was deleted.

Loading

0 comments on commit a48cc06

Please sign in to comment.