blob: 7682ba4ceebf873da159cff2ea838206885d4a83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<UserControl x:Class="Tango.PPC.UI.Views.LoadingErrorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
xmlns:vm="clr-namespace:Tango.PPC.UI.ViewModels"
xmlns:global="clr-namespace:Tango.PPC.UI"
xmlns:local="clr-namespace:Tango.PPC.UI.Views"
mc:Ignorable="d"
d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:LoadingErrorViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.LoadingErrorViewVM}">
<Grid>
<DockPanel Margin="20 60 20 20">
<StackPanel DockPanel.Dock="Top">
<Image Source="../Images/warning-red.png" Width="300" Stretch="Uniform" HorizontalAlignment="Center"></Image>
<TextBlock HorizontalAlignment="Center" Margin="0 40 0 0" FontSize="{StaticResource TangoHeaderFontSize}">Application Loading Error</TextBlock>
<TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" FontSize="{StaticResource TangoTitleFontSize}">The application has failed to load properly due to the following reason.</TextBlock>
<TextBlock HorizontalAlignment="Center" Foreground="{StaticResource TangoGrayTextBrush}" TextAlignment="Center" Margin="100 20 100 0" TextWrapping="Wrap" Text="{Binding Error}"></TextBlock>
</StackPanel>
<Grid&g//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Tango Observables Generator
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. Do not modify!
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
using Newtonsoft.Json;
using System.Linq;
using Tango.DAL.Remote.DB;
using Tango.Core;
using System.ComponentModel;
using Tango.Core.CustomAttributes;
namespace Tango.BL.Entities
{
[Table("MACHINE_STUDIO_VERSIONS")]
public abstract class MachineStudioVersionBase : ObservableEntity<MachineStudioVersion>
{
public event EventHandler<String> VersionChanged;
public event EventHandler<String> BlobNameChanged;
public event EventHandler<String> InstallerBlobNameChanged;
public event EventHandler<String> CommentsChanged;
public event EventHandler<User> UserChanged;
protected String _version;
/// <summary>
/// Gets or sets the machinestudioversionbase version.
/// </summary>
[Column("VERSION")]
public String Version
{
get
{
return _version;
}
set
{
if (_version != value)
{
_version = value;
OnVersionChanged(value);
}
}
}
protected String _blobname;
/// <summary>
/// Gets or sets the machinestudioversionbase blob name.
/// </summary>
[Column("BLOB_NAME")]
public String BlobName
{
get
{
return _blobname;
}
set
{
if (_blobname != value)
{
_blobname = value;
OnBlobNameChanged(value);
}
}
}
protected String _installerblobname;
/// <summary>
/// Gets or sets the machinestudioversionbase installer blob name.
/// </summary>
[Column("INSTALLER_BLOB_NAME")]
public String InstallerBlobName
{
get
{
return _installerblobname;
}
set
{
if (_installerblobname != value)
{
_installerblobname = value;
OnInstallerBlobNameChanged(value);
}
}
}
protected String _comments;
/// <summary>
/// Gets or sets the machinestudioversionbase comments.
/// </summary>
[Column("COMMENTS")]
public String Comments
{
get
{
return _comments;
}
set
{
if (_comments != value)
{
_comments = value;
OnCommentsChanged(value);
}
}
}
protected String _userguid;
/// <summary>
/// Gets or sets the machinestudioversionbase user guid.
/// </summary>
[Column("USER_GUID")]
[ForeignKey("User")]
public String UserGuid
{
get
{
return _userguid;
}
set
{
if (_userguid != value)
{
_userguid = value;
}
}
}
protected User _user;
/// <summary>
/// Gets or sets the machinestudioversionbase user.
/// </summary>
[XmlIgnore]
[JsonIgnore]
public virtual User User
{
get
{
return _user;
}
set
{
if (_user != value)
{
_user = value;
if (User != null)
{
UserGuid = User.Guid;
}
OnUserChanged(value);
}
}
}
/// <summary>
/// Called when the Version has changed.
/// </summary>
protected virtual void OnVersionChanged(String version)
{
VersionChanged?.Invoke(this, version);
RaisePropertyChanged(nameof(Version));
}
/// <summary>
/// Called when the BlobName has changed.
/// </summary>
protected virtual void OnBlobNameChanged(String blobname)
{
BlobNameChanged?.Invoke(this, blobname);
RaisePropertyChanged(nameof(BlobName));
}
/// <summary>
/// Called when the InstallerBlobName has changed.
/// </summary>
protected virtual void OnInstallerBlobNameChanged(String installerblobname)
{
InstallerBlobNameChanged?.Invoke(this, installerblobname);
RaisePropertyChanged(nameof(InstallerBlobName));
}
/// <summary>
/// Called when the Comments has changed.
/// </summary>
protected virtual void OnCommentsChanged(String comments)
{
CommentsChanged?.Invoke(this, comments);
RaisePropertyChanged(nameof(Comments));
}
/// <summary>
/// Called when the User has changed.
/// </summary>
protected virtual void OnUserChanged(User user)
{
UserChanged?.Invoke(this, user);
RaisePropertyChanged(nameof(User));
}
/// <summary>
/// Initializes a new instance of the <see cref="MachineStudioVersionBase" /> class.
/// </summary>
public MachineStudioVersionBase() : base()
{
}
}
}
|