1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-07-27 20:55:30 +02:00
admissionManager/obj/x86/Debug/View/PatientsPage.g.cs
Marcel Grześ 81960a6660 Cleaning the code
The code was cleaned from unnecessary coments,
Background color was changed
2019-01-12 11:25:51 +01:00

370 lines
16 KiB
C#

#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\PatientsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "32F7DBD9BA0CD3AB4435FEE0259751BA"
//------------------------------------------------------------------------------
// <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 HospitalServerManager.View
{
partial class PatientsPage :
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.17.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private static class XamlBindingSetters
{
public static void Set_Windows_UI_Xaml_Controls_TextBlock_Text(global::Windows.UI.Xaml.Controls.TextBlock 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.17.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private class PatientsPage_obj5_Bindings :
global::Windows.UI.Xaml.IDataTemplateExtension,
global::Windows.UI.Xaml.Markup.IDataTemplateComponent,
global::Windows.UI.Xaml.Markup.IComponentConnector,
IPatientsPage_Bindings
{
private global::HospitalServerManager.ViewModel.PatientViewModel dataRoot;
private bool initialized = false;
private const int NOT_PHASED = (1 << 31);
private const int DATA_CHANGED = (1 << 30);
private bool removedDataContextHandler = false;
// Fields for each control that has bindings.
private global::System.WeakReference obj5;
private global::Windows.UI.Xaml.Controls.TextBlock obj6;
private global::Windows.UI.Xaml.Controls.TextBlock obj7;
private global::Windows.UI.Xaml.Controls.TextBlock obj8;
private global::Windows.UI.Xaml.Controls.TextBlock obj9;
private global::Windows.UI.Xaml.Controls.TextBlock obj10;
private global::Windows.UI.Xaml.Controls.TextBlock obj11;
public PatientsPage_obj5_Bindings()
{
}
// IComponentConnector
public void Connect(int connectionId, global::System.Object target)
{
switch(connectionId)
{
case 5: // View\PatientsPage.xaml line 139
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
break;
case 6: // View\PatientsPage.xaml line 148
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 7: // View\PatientsPage.xaml line 151
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 8: // View\PatientsPage.xaml line 154
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 9: // View\PatientsPage.xaml line 156
this.obj9 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 10: // View\PatientsPage.xaml line 158
this.obj10 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 11: // View\PatientsPage.xaml line 160
this.obj11 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
default:
break;
}
}
public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
{
if (this.SetDataRoot(args.NewValue))
{
this.Update();
}
}
// IDataTemplateExtension
public bool ProcessBinding(uint phase)
{
throw new global::System.NotImplementedException();
}
public int ProcessBindings(global::Windows.UI.Xaml.Controls.ContainerContentChangingEventArgs args)
{
int nextPhase = -1;
ProcessBindings(args.Item, args.ItemIndex, (int)args.Phase, out nextPhase);
return nextPhase;
}
public void ResetTemplate()
{
Recycle();
}
// IDataTemplateComponent
public void ProcessBindings(global::System.Object item, int itemIndex, int phase, out int nextPhase)
{
nextPhase = -1;
switch(phase)
{
case 0:
nextPhase = -1;
this.SetDataRoot(item);
if (!removedDataContextHandler)
{
removedDataContextHandler = true;
(this.obj5.Target as global::Windows.UI.Xaml.Controls.Grid).DataContextChanged -= this.DataContextChangedHandler;
}
this.initialized = true;
break;
}
this.Update_((global::HospitalServerManager.ViewModel.PatientViewModel) item, 1 << phase);
}
public void Recycle()
{
}
// IPatientsPage_Bindings
public void Initialize()
{
if (!this.initialized)
{
this.Update();
}
}
public void Update()
{
this.Update_(this.dataRoot, NOT_PHASED);
this.initialized = true;
}
public void StopTracking()
{
}
public void DisconnectUnloadedObject(int connectionId)
{
throw new global::System.ArgumentException("No unloadable elements to disconnect.");
}
public bool SetDataRoot(global::System.Object newDataRoot)
{
if (newDataRoot != null)
{
this.dataRoot = (global::HospitalServerManager.ViewModel.PatientViewModel)newDataRoot;
return true;
}
return false;
}
// Update methods for each path node used in binding steps.
private void Update_(global::HospitalServerManager.ViewModel.PatientViewModel obj, int phase)
{
if (obj != null)
{
if ((phase & (NOT_PHASED | (1 << 0))) != 0)
{
this.Update_PrimaryKey(obj.PrimaryKey, phase);
this.Update_Surname(obj.Surname, phase);
this.Update_Name(obj.Name, phase);
this.Update_BirthDate(obj.BirthDate, phase);
this.Update_PatientState(obj.PatientState, phase);
this.Update_PatientSex(obj.PatientSex, phase);
}
}
}
private void Update_PrimaryKey(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\PatientsPage.xaml line 148
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
}
}
private void Update_Surname(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\PatientsPage.xaml line 151
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
}
}
private void Update_Name(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\PatientsPage.xaml line 154
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null);
}
}
private void Update_BirthDate(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\PatientsPage.xaml line 156
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, obj, null);
}
}
private void Update_PatientState(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\PatientsPage.xaml line 158
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj10, obj, null);
}
}
private void Update_PatientSex(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\PatientsPage.xaml line 160
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj11, obj, null);
}
}
}
/// <summary>
/// Connect()
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Connect(int connectionId, object target)
{
switch(connectionId)
{
case 1: // View\PatientsPage.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: // View\PatientsPage.xaml line 13
{
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
}
break;
case 3: // View\PatientsPage.xaml line 32
{
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
}
break;
case 4: // View\PatientsPage.xaml line 126
{
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
}
break;
case 13: // View\PatientsPage.xaml line 86
{
this.sortComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
((global::Windows.UI.Xaml.Controls.ComboBox)this.sortComboBox).SelectionChanged += this.SortComboBox_SelectionChanged;
}
break;
case 14: // View\PatientsPage.xaml line 92
{
this.sendEmailToSelected = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)this.sendEmailToSelected).Click += this.SendEmailToSelected_Click;
}
break;
case 15: // View\PatientsPage.xaml line 89
{
this.radioBtn1 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
((global::Windows.UI.Xaml.Controls.RadioButton)this.radioBtn1).Click += this.RadionBtn_Click;
}
break;
case 16: // View\PatientsPage.xaml line 90
{
this.radionBtn2 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
((global::Windows.UI.Xaml.Controls.RadioButton)this.radionBtn2).Click += this.RadionBtn_Click;
}
break;
case 17: // View\PatientsPage.xaml line 59
{
this.searchBox = (global::Windows.UI.Xaml.Controls.TextBox)(target);
}
break;
case 18: // View\PatientsPage.xaml line 61
{
this.lookInComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
}
break;
case 19: // View\PatientsPage.xaml line 64
{
global::Windows.UI.Xaml.Controls.Button element19 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element19).Click += this.SearchButton_Click;
}
break;
case 20: // View\PatientsPage.xaml line 65
{
global::Windows.UI.Xaml.Controls.Button element20 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element20).Click += this.ResetButton_Click;
}
break;
case 21: // View\PatientsPage.xaml line 35
{
global::Windows.UI.Xaml.Controls.Button element21 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element21).Click += this.NewRecordButton_Click;
}
break;
case 22: // View\PatientsPage.xaml line 36
{
global::Windows.UI.Xaml.Controls.Button element22 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element22).Click += this.DeleteButton_Click;
}
break;
case 23: // View\PatientsPage.xaml line 37
{
global::Windows.UI.Xaml.Controls.Button element23 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element23).Click += this.EditButton_Click;
}
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.17.0")]
[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 5: // View\PatientsPage.xaml line 139
{
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
PatientsPage_obj5_Bindings bindings = new PatientsPage_obj5_Bindings();
returnValue = bindings;
bindings.SetDataRoot(element5.DataContext);
element5.DataContextChanged += bindings.DataContextChangedHandler;
global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element5, bindings);
global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element5, bindings);
}
break;
}
return returnValue;
}
}
}