94 lines
3.2 KiB
C#
94 lines
3.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Media;
|
|
|
|
namespace DTS.Common.Interface
|
|
{
|
|
/// <summary>
|
|
/// this interface describes a UI page, specifically datapro pages
|
|
/// </summary>
|
|
public interface IDataPROPage : INotifyPropertyChanged
|
|
{
|
|
Visibility TestSetupChangeButtonVisible { get; set; }
|
|
Visibility AutomaticModeStatusVisible { get; set; }
|
|
string PageName { get; set; }
|
|
ImageSource PageImage { get; set; }
|
|
bool IsAdd { get; set; }
|
|
bool UsesModifyEnhancements { get; set; }
|
|
string EditIDString { get; set; }
|
|
string AddIDString { get; set; }
|
|
string ModifiedObjectName { get; set; }
|
|
bool AutomaticProgression { get; set; }
|
|
bool RecoveryDownloadMode { get; set; }
|
|
string UniqueId { get; }
|
|
string GetName();
|
|
long GetID();
|
|
void SetID(long id);
|
|
Color TileColor { get; }
|
|
void SetTileColor(Color c);
|
|
void SavePage(object obj);
|
|
string CurrentSearchTerm { get; set; }
|
|
void ClearSearchTerm();
|
|
void SetEnabled(bool bEnable);
|
|
bool UsesNAVControl{ get; set; }
|
|
bool UsesSearchControl { get; set; }
|
|
bool UsesSelectControl { get; set; }
|
|
void VerifyProgress(object o);
|
|
void SaveAndExit();
|
|
void RefreshButtonPressed();
|
|
void SetDoneButtonIsEnabled(bool bEnabled);
|
|
void SetBackButtonIsEnabled(bool bEnabled);
|
|
void DoneButtonPress();
|
|
bool HasBackButton { get; set; }
|
|
bool HasRefreshButton { get; set; }
|
|
bool HasCancelButton { get; set; }
|
|
bool HasSaveButton { get; set; }
|
|
void SetCancelEnabled(bool bEnabled);
|
|
bool HasNextButton { get; set; }
|
|
Color ContentBackgroundColor { get; set; }
|
|
object MainContent { get; set; }
|
|
ContentControl GetMainContentControl();
|
|
void SetReturning();
|
|
bool Validate(ref List<string> errors, ref List<string> warnings, bool displayWindow);
|
|
bool OKToProceed();
|
|
void FormClosing(Action OnComplete = null);
|
|
bool ControlInOnSetActive { get; set; }
|
|
void OnSetActive();
|
|
void UnSet();
|
|
void SetCurrentItem(object o);
|
|
void SetupPageAvailable();
|
|
}
|
|
|
|
/// <summary>
|
|
/// these are properties on the datapro page that change and may need to be acted on
|
|
/// </summary>
|
|
public enum DataProPageProperties
|
|
{
|
|
UsesModifyEnhancements,
|
|
TestSetupChangeButtonVisible,
|
|
AutomaticModeStatusVisible,
|
|
PageName,
|
|
PageImage,
|
|
IsAdd,
|
|
EditIDString,
|
|
AddIDString,
|
|
ModifiedObjectName,
|
|
AutomaticProgression,
|
|
RecoveryDownloadMode,
|
|
UsesNAVControl,
|
|
UsesSearchControl,
|
|
UsesSelectControl,
|
|
HasBackButton,
|
|
HasRefreshButton,
|
|
HasCancelButton,
|
|
HasSaveButton,
|
|
HasNextButton,
|
|
ContentBackgroundColor,
|
|
MainContent,
|
|
GenerateReportsVisible
|
|
}
|
|
}
|