Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.
Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.View;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
|
||||
using System;
|
||||
@@ -53,8 +52,7 @@ namespace StgSharp
|
||||
_databindingIndexMap = new Dictionary<string, DataBindingEntry>();
|
||||
}
|
||||
|
||||
public override void CustomizedInitialize(
|
||||
[NotNull]ViewModelBase viewModelBinding )
|
||||
public override void CustomizedInitialize( [NotNull]ViewModelBase viewModelBinding )
|
||||
{
|
||||
Designer = new Design( this );
|
||||
Responder = new Control( this );
|
||||
@@ -65,21 +63,21 @@ namespace StgSharp
|
||||
Responder.Initialize( viewModelBinding.MethodLookup );
|
||||
}
|
||||
|
||||
public override bool TryGetObjectReference(
|
||||
string name,
|
||||
out DataBindingEntry entry )
|
||||
public override bool TryGetObjectReference( string name, out DataBindingEntry entry )
|
||||
{
|
||||
if( _databindingIndexMap.TryGetValue( name, out entry ) ) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
try
|
||||
{
|
||||
entry = name switch
|
||||
{
|
||||
_ => default( DataBindingEntry ),
|
||||
};
|
||||
return !entry.ExactEqual( default( DataBindingEntry ) );
|
||||
}
|
||||
catch( Exception ) {
|
||||
catch( Exception )
|
||||
{
|
||||
entry = default( DataBindingEntry );
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user