1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-10-19 08:50:36 +02:00
admissionManager/InterfacesAndEnums/Interfaces.cs
Marcel Grześ 0806b25c79 Basic funcionality was completed.
- EditRecordDialog has been added and edited; Others pages (View) has been added and completed;
- All ViewModel and Models was completed;
- WebService, ApiComandProvider has full funcionality,
- New interface has been created;
- Application is working now :) it's time to refractoring and testing
2019-01-07 19:49:48 +01:00

54 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
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);
}
}