mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2025-01-09 13:37:33 +01:00
81960a6660
The code was cleaned from unnecessary coments, Background color was changed
377 lines
16 KiB
C#
377 lines
16 KiB
C#
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DoctorsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A8FEAD9916947BA29990371874F07C99"
|
|
//------------------------------------------------------------------------------
|
|
// <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 DoctorsPage :
|
|
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 DoctorsPage_obj5_Bindings :
|
|
global::Windows.UI.Xaml.IDataTemplateExtension,
|
|
global::Windows.UI.Xaml.Markup.IDataTemplateComponent,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
|
IDoctorsPage_Bindings
|
|
{
|
|
private global::HospitalServerManager.ViewModel.DoctorViewModel 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;
|
|
private global::Windows.UI.Xaml.Controls.TextBlock obj12;
|
|
|
|
public DoctorsPage_obj5_Bindings()
|
|
{
|
|
}
|
|
|
|
// IComponentConnector
|
|
|
|
public void Connect(int connectionId, global::System.Object target)
|
|
{
|
|
switch(connectionId)
|
|
{
|
|
case 5: // View\DoctorsPage.xaml line 139
|
|
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
|
|
break;
|
|
case 6: // View\DoctorsPage.xaml line 149
|
|
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 7: // View\DoctorsPage.xaml line 152
|
|
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 8: // View\DoctorsPage.xaml line 155
|
|
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 9: // View\DoctorsPage.xaml line 157
|
|
this.obj9 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 10: // View\DoctorsPage.xaml line 159
|
|
this.obj10 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 11: // View\DoctorsPage.xaml line 161
|
|
this.obj11 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 12: // View\DoctorsPage.xaml line 163
|
|
this.obj12 = (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.DoctorViewModel) item, 1 << phase);
|
|
}
|
|
|
|
public void Recycle()
|
|
{
|
|
}
|
|
|
|
// IDoctorsPage_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.DoctorViewModel)newDataRoot;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Update methods for each path node used in binding steps.
|
|
private void Update_(global::HospitalServerManager.ViewModel.DoctorViewModel obj, int phase)
|
|
{
|
|
if (obj != null)
|
|
{
|
|
if ((phase & (NOT_PHASED | (1 << 0))) != 0)
|
|
{
|
|
this.Update_PrimaryKey(obj.PrimaryKey, phase);
|
|
this.Update_Name(obj.Name, phase);
|
|
this.Update_Surname(obj.Surname, phase);
|
|
this.Update_AdacemicDegree(obj.AdacemicDegree, phase);
|
|
this.Update_MedicalSpecialization(obj.MedicalSpecialization, phase);
|
|
this.Update_EmploymentDate(obj.EmploymentDate, phase);
|
|
this.Update_JobPosition(obj.JobPosition, phase);
|
|
}
|
|
}
|
|
}
|
|
private void Update_PrimaryKey(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 149
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
|
|
}
|
|
}
|
|
private void Update_Name(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 152
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
|
|
}
|
|
}
|
|
private void Update_Surname(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 155
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null);
|
|
}
|
|
}
|
|
private void Update_AdacemicDegree(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 157
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, obj, null);
|
|
}
|
|
}
|
|
private void Update_MedicalSpecialization(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 159
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj10, obj, null);
|
|
}
|
|
}
|
|
private void Update_EmploymentDate(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 161
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj11, obj, null);
|
|
}
|
|
}
|
|
private void Update_JobPosition(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DoctorsPage.xaml line 163
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj12, 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\DoctorsPage.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\DoctorsPage.xaml line 12
|
|
{
|
|
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
|
|
}
|
|
break;
|
|
case 3: // View\DoctorsPage.xaml line 31
|
|
{
|
|
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
|
}
|
|
break;
|
|
case 4: // View\DoctorsPage.xaml line 126
|
|
{
|
|
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
|
|
}
|
|
break;
|
|
case 14: // View\DoctorsPage.xaml line 85
|
|
{
|
|
this.sortComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
|
((global::Windows.UI.Xaml.Controls.ComboBox)this.sortComboBox).SelectionChanged += this.SortComboBox_SelectionChanged;
|
|
}
|
|
break;
|
|
case 15: // View\DoctorsPage.xaml line 88
|
|
{
|
|
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\DoctorsPage.xaml line 89
|
|
{
|
|
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\DoctorsPage.xaml line 58
|
|
{
|
|
this.searchBox = (global::Windows.UI.Xaml.Controls.TextBox)(target);
|
|
}
|
|
break;
|
|
case 18: // View\DoctorsPage.xaml line 60
|
|
{
|
|
this.lookInComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
|
}
|
|
break;
|
|
case 19: // View\DoctorsPage.xaml line 63
|
|
{
|
|
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\DoctorsPage.xaml line 64
|
|
{
|
|
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\DoctorsPage.xaml line 34
|
|
{
|
|
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\DoctorsPage.xaml line 35
|
|
{
|
|
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\DoctorsPage.xaml line 36
|
|
{
|
|
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\DoctorsPage.xaml line 139
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
|
|
DoctorsPage_obj5_Bindings bindings = new DoctorsPage_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;
|
|
}
|
|
}
|
|
}
|
|
|