-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from albanian-xrm/feature/new-UI
Filter entities or attributes and relationships
- Loading branch information
Showing
16 changed files
with
548 additions
and
78 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Microsoft.Xrm.Sdk.Metadata; | ||
using Syncfusion.Windows.Forms.Tools; | ||
using Syncfusion.WinForms.ListView; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace AlbanianXrm.EarlyBound.Helpers | ||
{ | ||
class CollectionEventHandler | ||
{ | ||
private readonly TreeNodeAdv attributes; | ||
private readonly string logicalName; | ||
private readonly SfComboBox cmbFindEntity; | ||
|
||
public CollectionEventHandler(TreeNodeAdv attributes, string logicalName, SfComboBox cmbFindEntity) | ||
{ | ||
this.attributes = attributes; | ||
this.logicalName = logicalName; | ||
this.cmbFindEntity = cmbFindEntity; | ||
} | ||
|
||
internal void Nodes_CollectionChanged(object sender, CollectionChangeEventArgs e) | ||
{ | ||
attributes.Nodes.CollectionChanged -= Nodes_CollectionChanged; | ||
if(cmbFindEntity.SelectedValue as string == logicalName) | ||
{ | ||
cmbFindEntity.SelectedValue = null; | ||
cmbFindEntity.SelectedValue = logicalName; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace AlbanianXrm.EarlyBound.Helpers | ||
{ | ||
internal class ComboItem | ||
{ | ||
public string Key { get; set; } | ||
public string Value { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.