mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-10-19 08:50:36 +02:00
0806b25c79
- 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
54 lines
1.5 KiB
C#
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);
|
|
}
|
|
}
|