mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-11-09 04:55:27 +01:00
81960a6660
The code was cleaned from unnecessary coments, Background color was changed
338 lines
15 KiB
C#
338 lines
15 KiB
C#
#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\DiagnosesPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7592709C432FB935BAE817950431E37E"
|
|
//------------------------------------------------------------------------------
|
|
// <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 DiagnosesPage :
|
|
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 DiagnosesPage_obj5_Bindings :
|
|
global::Windows.UI.Xaml.IDataTemplateExtension,
|
|
global::Windows.UI.Xaml.Markup.IDataTemplateComponent,
|
|
global::Windows.UI.Xaml.Markup.IComponentConnector,
|
|
IDiagnosesPage_Bindings
|
|
{
|
|
private global::HospitalServerManager.ViewModel.DiagnosisViewModel 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;
|
|
|
|
public DiagnosesPage_obj5_Bindings()
|
|
{
|
|
}
|
|
|
|
// IComponentConnector
|
|
|
|
public void Connect(int connectionId, global::System.Object target)
|
|
{
|
|
switch(connectionId)
|
|
{
|
|
case 5: // View\DiagnosesPage.xaml line 130
|
|
this.obj5 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target);
|
|
break;
|
|
case 6: // View\DiagnosesPage.xaml line 137
|
|
this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 7: // View\DiagnosesPage.xaml line 140
|
|
this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 8: // View\DiagnosesPage.xaml line 143
|
|
this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
|
|
break;
|
|
case 9: // View\DiagnosesPage.xaml line 145
|
|
this.obj9 = (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.DiagnosisViewModel) item, 1 << phase);
|
|
}
|
|
|
|
public void Recycle()
|
|
{
|
|
}
|
|
|
|
// IDiagnosesPage_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.DiagnosisViewModel)newDataRoot;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Update methods for each path node used in binding steps.
|
|
private void Update_(global::HospitalServerManager.ViewModel.DiagnosisViewModel 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_FieldOfSurgery(obj.FieldOfSurgery, phase);
|
|
this.Update_Description(obj.Description, phase);
|
|
}
|
|
}
|
|
}
|
|
private void Update_PrimaryKey(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DiagnosesPage.xaml line 137
|
|
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\DiagnosesPage.xaml line 140
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null);
|
|
}
|
|
}
|
|
private void Update_FieldOfSurgery(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DiagnosesPage.xaml line 143
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null);
|
|
}
|
|
}
|
|
private void Update_Description(global::System.String obj, int phase)
|
|
{
|
|
if ((phase & ((1 << 0) | NOT_PHASED )) != 0)
|
|
{
|
|
// View\DiagnosesPage.xaml line 145
|
|
XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj9, 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\DiagnosesPage.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\DiagnosesPage.xaml line 12
|
|
{
|
|
this.RosterViewModel = (global::HospitalServerManager.ViewModel.RosterViewModel)(target);
|
|
}
|
|
break;
|
|
case 3: // View\DiagnosesPage.xaml line 28
|
|
{
|
|
this.pageTitle = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
|
|
}
|
|
break;
|
|
case 4: // View\DiagnosesPage.xaml line 117
|
|
{
|
|
this.databaseView = (global::Windows.UI.Xaml.Controls.ListView)(target);
|
|
}
|
|
break;
|
|
case 11: // View\DiagnosesPage.xaml line 82
|
|
{
|
|
this.sortComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
|
((global::Windows.UI.Xaml.Controls.ComboBox)this.sortComboBox).SelectionChanged += this.SortComboBox_SelectionChanged;
|
|
}
|
|
break;
|
|
case 12: // View\DiagnosesPage.xaml line 85
|
|
{
|
|
this.radioBtn1 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
|
|
((global::Windows.UI.Xaml.Controls.RadioButton)this.radioBtn1).Click += this.RadionBtn_Click;
|
|
}
|
|
break;
|
|
case 13: // View\DiagnosesPage.xaml line 86
|
|
{
|
|
this.radionBtn2 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
|
|
((global::Windows.UI.Xaml.Controls.RadioButton)this.radionBtn2).Click += this.RadionBtn_Click;
|
|
}
|
|
break;
|
|
case 14: // View\DiagnosesPage.xaml line 55
|
|
{
|
|
this.searchBox = (global::Windows.UI.Xaml.Controls.TextBox)(target);
|
|
}
|
|
break;
|
|
case 15: // View\DiagnosesPage.xaml line 57
|
|
{
|
|
this.lookInComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
|
|
}
|
|
break;
|
|
case 16: // View\DiagnosesPage.xaml line 60
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element16 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element16).Click += this.SearchButton_Click;
|
|
}
|
|
break;
|
|
case 17: // View\DiagnosesPage.xaml line 61
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element17 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element17).Click += this.ResetButton_Click;
|
|
}
|
|
break;
|
|
case 18: // View\DiagnosesPage.xaml line 31
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element18 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element18).Click += this.NewRecordButton_Click;
|
|
}
|
|
break;
|
|
case 19: // View\DiagnosesPage.xaml line 32
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element19 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element19).Click += this.DeleteButton_Click;
|
|
}
|
|
break;
|
|
case 20: // View\DiagnosesPage.xaml line 33
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Button element20 = (global::Windows.UI.Xaml.Controls.Button)(target);
|
|
((global::Windows.UI.Xaml.Controls.Button)element20).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\DiagnosesPage.xaml line 130
|
|
{
|
|
global::Windows.UI.Xaml.Controls.Grid element5 = (global::Windows.UI.Xaml.Controls.Grid)target;
|
|
DiagnosesPage_obj5_Bindings bindings = new DiagnosesPage_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;
|
|
}
|
|
}
|
|
}
|
|
|