1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-07-17 10:25:30 +02:00
admissionManager/InterfacesAndEnums/Interfaces.cs
Marcel Grześ f234ec1f26 First version of working application
- last changes and visual edit
2019-01-11 22:32:18 +01:00

60 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;
namespace HospitalServerManager.InterfacesAndEnums
{
public interface ISqlTableModel
{
List<string> GetColumnNames();
}
public interface IPrimaryKeyGetable
{
string GetPrimaryKey();
string GetPrimaryKeyName();
}
public interface INavigator
{
bool IsParameterSet { get; }
void SetParameter(object parameter);
void RemoveParameters();
IPageNavigateable ChangeFrame(Type typeOfPage, Frame navigationFrame);
}
public interface IPageNavigateable
{
void UnloadPage();
}
public interface IValidateIfInterfaceIsImplemented
{
/// <summary>
/// Validates if type implement interface. TypeProvider have to be initialized before use this overloaded method.
/// </summary>
/// <param name="typeName"></param>
/// <param name="interfaceNameToCheck"></param>
/// <returns></returns>
bool ValidateIfTypeImplementInterface(string typeName, string interfaceNameToCheck);
bool ValidateIfTypeImplementInterface(Type typeToCheck, string interfaceNameToCheck);
bool ValidateIfTypeImplementInterface(Type typeToCheck, Type interfaceToCheck);
}
public interface IProvideType
{
void RegisterType(Type typeToRegister);
Type GetTypeFromString(string typeName);
}
public interface IProvideDBInfo
{
IEnumerable<string> GetColumnNames(string tableName);
IDictionary<int, string> GetColumnTypesNames(string tableName);
}
public interface IHasEmailAdress
{
bool IsEmailAdressInitialized();
MailAddress GetEmailAdress();
}
}