1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-07-27 20:55:30 +02:00
admissionManager/obj/x86/Debug/View/RoomsPage.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

325 lines
14 KiB
C#

#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\RoomsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "97C40912E4C26778CF20BAD99D1F9169"
//------------------------------------------------------------------------------
// <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 RoomsPage :
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 RoomsPage_obj5_Bindings :
global::Windows.UI.Xaml.IDataTemplateExtension,
global::Windows.UI.Xaml.Markup.IDataTemplateComponent,
global::Windows.UI.Xaml.Markup.IComponentConnector,
IRoomsPage_Bindings
{
private global::HospitalServerManager.ViewModel.RoomViewModel 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;
public RoomsPage_obj5_Bindings()
{
}
// IComponentConnector
public void Connect(int connectionId, global::System.Object target)
{
switch(connectionId)
{
case 5: // View\RoomsPage.xaml line 129
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
break;
case 6: // View\RoomsPage.xaml line 135
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 7: // View\RoomsPage.xaml line 138
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
break;
case 8: // View\RoomsPage.xaml line 140
this.obj8 = (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.RoomViewModel) item, 1 << phase);
}
public void Recycle()
{
}
// IRoomsPage_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.RoomViewModel)newDataRoot;
return true;
}
return false;
}
// Update methods for each path node used in binding steps.
private void Update_(global::HospitalServerManager.ViewModel.RoomViewModel obj, int phase)
{
if (obj != null)
{
if ((phase & (NOT_PHASED | (1 << 0))) != 0)
{
this.Update_PrimaryKey(obj.PrimaryKey, phase);
this.Update_PlacesNumber(obj.PlacesNumber, phase);
this.Update_IsSpecialCare(obj.IsSpecialCare, phase);
}
}
}
private void Update_PrimaryKey(global::System.String obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\RoomsPage.xaml line 135
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj, null);
}
}
private void Update_PlacesNumber(global::System.Int32 obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\RoomsPage.xaml line 138
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj.ToString(), null);
}
}
private void Update_IsSpecialCare(global::System.Boolean obj, int phase)
{
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
{
// View\RoomsPage.xaml line 140
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj.ToString(), 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\RoomsPage.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\RoomsPage.xaml line 13
{
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
}
break;
case 3: // View\RoomsPage.xaml line 29
{
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
}
break;
case 4: // View\RoomsPage.xaml line 116
{
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
}
break;
case 10: // View\RoomsPage.xaml line 83
{
this.sortComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
((global::Windows.UI.Xaml.Controls.ComboBox)this.sortComboBox).SelectionChanged += this.SortComboBox_SelectionChanged;
}
break;
case 11: // View\RoomsPage.xaml line 86
{
this.radioBtn1 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
((global::Windows.UI.Xaml.Controls.RadioButton)this.radioBtn1).Click += this.RadionBtn_Click;
}
break;
case 12: // View\RoomsPage.xaml line 87
{
this.radionBtn2 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
((global::Windows.UI.Xaml.Controls.RadioButton)this.radionBtn2).Click += this.RadionBtn_Click;
}
break;
case 13: // View\RoomsPage.xaml line 56
{
this.searchBox = (global::Windows.UI.Xaml.Controls.TextBox)(target);
}
break;
case 14: // View\RoomsPage.xaml line 58
{
this.lookInComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
}
break;
case 15: // View\RoomsPage.xaml line 61
{
global::Windows.UI.Xaml.Controls.Button element15 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element15).Click += this.SearchButton_Click;
}
break;
case 16: // View\RoomsPage.xaml line 62
{
global::Windows.UI.Xaml.Controls.Button element16 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element16).Click += this.ResetButton_Click;
}
break;
case 17: // View\RoomsPage.xaml line 32
{
global::Windows.UI.Xaml.Controls.Button element17 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element17).Click += this.NewRecordButton_Click;
}
break;
case 18: // View\RoomsPage.xaml line 33
{
global::Windows.UI.Xaml.Controls.Button element18 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element18).Click += this.DeleteButton_Click;
}
break;
case 19: // View\RoomsPage.xaml line 34
{
global::Windows.UI.Xaml.Controls.Button element19 = (global::Windows.UI.Xaml.Controls.Button)(target);
((global::Windows.UI.Xaml.Controls.Button)element19).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\RoomsPage.xaml line 129
{
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
RoomsPage_obj5_Bindings bindings = new RoomsPage_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;
}
}
}