269 lines
10 KiB
C#
269 lines
10 KiB
C#
#pragma checksum "C:\Users\selim\Source\Repos\autocatuwp\AutoCat\Pages\AuthPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1F96DA443106FFFB23755568067AE484D9714DB37AA1C95D01B485BBBB90B537"
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace AutoCat.Pages
|
|
{
|
|
partial class AuthPage :
|
|
global::Windows.UI.Xaml.Controls.Page,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector2
|
|
{
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.19041.1")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private static class XamlBindingSetters
|
|
{
|
|
public static void Set_Windows_UI_Xaml_Controls_TextBox_Text(global::Windows.UI.Xaml.Controls.TextBox obj, global::System.String value, string targetNullValue)
|
|
{
|
|
if (value == null && targetNullValue != null)
|
|
{
|
|
value = targetNullValue;
|
|
}
|
|
obj.Text = value ?? global::System.String.Empty;
|
|
}
|
|
};
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.19041.1")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private class AuthPage_obj1_Bindings :
|
|
global::Windows.UI.Xaml.Markup.IDataTemplateComponent,
|
|
global::Windows.UI.Xaml.Markup.IXamlBindScopeDiagnostics,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
|
IAuthPage_Bindings
|
|
{
|
|
private global::AutoCat.Pages.AuthPage dataRoot;
|
|
private bool initialized = false;
|
|
private const int NOT_PHASED = (1 << 31);
|
|
private const int DATA_CHANGED = (1 << 30);
|
|
|
|
// Fields for each control that has bindings.
|
|
private global::Windows.UI.Xaml.Controls.TextBox obj2;
|
|
|
|
// Static fields for each binding's enabled/disabled state
|
|
private static bool isobj2TextDisabled = false;
|
|
|
|
private AuthPage_obj1_BindingsTracking bindingsTracking;
|
|
|
|
public AuthPage_obj1_Bindings()
|
|
{
|
|
this.bindingsTracking = new AuthPage_obj1_BindingsTracking(this);
|
|
}
|
|
|
|
public void Disable(int lineNumber, int columnNumber)
|
|
{
|
|
if (lineNumber == 17 && columnNumber == 59)
|
|
{
|
|
isobj2TextDisabled = true;
|
|
}
|
|
}
|
|
|
|
// IComponentConnector
|
|
|
|
public void Connect(int connectionId, global::System.Object target)
|
|
{
|
|
switch(connectionId)
|
|
{
|
|
case 2: // Pages\AuthPage.xaml line 17
|
|
this.obj2 = (global::Windows.UI.Xaml.Controls.TextBox)target;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
// IDataTemplateComponent
|
|
|
|
public void ProcessBindings(global::System.Object item, int itemIndex, int phase, out int nextPhase)
|
|
{
|
|
nextPhase = -1;
|
|
}
|
|
|
|
public void Recycle()
|
|
{
|
|
return;
|
|
}
|
|
|
|
// IAuthPage_Bindings
|
|
|
|
public void Initialize()
|
|
{
|
|
if (!this.initialized)
|
|
{
|
|
this.Update();
|
|
}
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
this.Update_(this.dataRoot, NOT_PHASED);
|
|
this.initialized = true;
|
|
}
|
|
|
|
public void StopTracking()
|
|
{
|
|
this.bindingsTracking.ReleaseAllListeners();
|
|
this.initialized = false;
|
|
}
|
|
|
|
public void DisconnectUnloadedObject(int connectionId)
|
|
{
|
|
throw new global::System.ArgumentException("No unloadable elements to disconnect.");
|
|
}
|
|
|
|
public bool SetDataRoot(global::System.Object newDataRoot)
|
|
{
|
|
this.bindingsTracking.ReleaseAllListeners();
|
|
if (newDataRoot != null)
|
|
{
|
|
this.dataRoot = (global::AutoCat.Pages.AuthPage)newDataRoot;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public void Loading(global::Windows.UI.Xaml.FrameworkElement src, object data)
|
|
{
|
|
this.Initialize();
|
|
}
|
|
|
|
// Update methods for each path node used in binding steps.
|
|
private void Update_(global::AutoCat.Pages.AuthPage obj, int phase)
|
|
{
|
|
if (obj != null)
|
|
{
|
|
if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
|
|
{
|
|
this.Update_viewModel(obj.viewModel, phase);
|
|
}
|
|
}
|
|
}
|
|
private void Update_viewModel(global::AutoCat.ViewModel.AuthViewModel obj, int phase)
|
|
{
|
|
if (obj != null)
|
|
{
|
|
if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
|
|
{
|
|
this.Update_viewModel_Email(obj.Email, phase);
|
|
}
|
|
}
|
|
}
|
|
private void Update_viewModel_Email(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0)
|
|
{
|
|
// Pages\AuthPage.xaml line 17
|
|
if (!isobj2TextDisabled)
|
|
{
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBox_Text(this.obj2, obj, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.19041.1")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
private class AuthPage_obj1_BindingsTracking
|
|
{
|
|
private global::System.WeakReference<AuthPage_obj1_Bindings> weakRefToBindingObj;
|
|
|
|
public AuthPage_obj1_BindingsTracking(AuthPage_obj1_Bindings obj)
|
|
{
|
|
weakRefToBindingObj = new global::System.WeakReference<AuthPage_obj1_Bindings>(obj);
|
|
}
|
|
|
|
public AuthPage_obj1_Bindings TryGetBindingObject()
|
|
{
|
|
AuthPage_obj1_Bindings bindingObject = null;
|
|
if (weakRefToBindingObj != null)
|
|
{
|
|
weakRefToBindingObj.TryGetTarget(out bindingObject);
|
|
if (bindingObject == null)
|
|
{
|
|
weakRefToBindingObj = null;
|
|
ReleaseAllListeners();
|
|
}
|
|
}
|
|
return bindingObject;
|
|
}
|
|
|
|
public void ReleaseAllListeners()
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Connect()
|
|
/// </summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.19041.1")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public void Connect(int connectionId, object target)
|
|
{
|
|
switch(connectionId)
|
|
{
|
|
case 1: // Pages\AuthPage.xaml line 1
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
|
|
((global::Windows.UI.Xaml.Controls.Page)element1).Loaded += this.Page_Loaded;
|
|
}
|
|
break;
|
|
case 2: // Pages\AuthPage.xaml line 17
|
|
{
|
|
this.Email = (global::Windows.UI.Xaml.Controls.TextBox)(target);
|
|
}
|
|
break;
|
|
case 3: // Pages\AuthPage.xaml line 18
|
|
{
|
|
this.Password = (global::Windows.UI.Xaml.Controls.PasswordBox)(target);
|
|
}
|
|
break;
|
|
case 4: // Pages\AuthPage.xaml line 19
|
|
{
|
|
this.Login = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)this.Login).Click += this.Login_Click;
|
|
}
|
|
break;
|
|
case 5: // Pages\AuthPage.xaml line 20
|
|
{
|
|
this.Progress = (global::Windows.UI.Xaml.Controls.ProgressRing)(target);
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
this._contentLoaded = true;
|
|
}
|
|
|
|
/// <summary>
|
|
/// GetBindingConnector(int connectionId, object target)
|
|
/// </summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.19041.1")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
|
|
{
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
|
|
switch(connectionId)
|
|
{
|
|
case 1: // Pages\AuthPage.xaml line 1
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
|
|
AuthPage_obj1_Bindings bindings = new AuthPage_obj1_Bindings();
|
|
returnValue = bindings;
|
|
bindings.SetDataRoot(this);
|
|
this.Bindings = bindings;
|
|
element1.Loading += bindings.Loading;
|
|
global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
|
|
}
|
|
break;
|
|
}
|
|
return returnValue;
|
|
}
|
|
}
|
|
}
|
|
|