using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace GummingCommon
{
public enum ResopnseType
{
TableViewSelected
}
public enum KeyType
{
VK_LEFT,
VK_UP,
VK_RIGHT,
VK_DOWN,
VK_LEFTUP,
VK_UPUP,
VK_RIGHTUP,
VK_DOWNUP,
VK_ADD,
UnCheck
}
public enum FromType
{
Null,
System,
User
}
public enum CaptureType
{
Initialize,
AdjustFromControl,
AdjustFromCamera,
TpStart,
TpStartUp,
TpWidth,
TpType,
TpColorCode,
RemoveAll,
SetGraph,
RemoveGraph,
RefreshImage,
RefreshStandard,
RefreshMeridian,
ApplicationExit,
PutImageAutoParameter,
}
public enum CallbackType
{
Debug = 0,
StartProcessing = 1,
InProcessing = 2,
EndProcess = 3,
EvaluationCancel = 4,
EvaluationNext = 5,
PushAppWarnLog,
PushAppErrorLog,
CloseDialogView,
CloseWindow,
ShowDialogView,
PreviousView,
PatternView,
PatternManage,
ControlView,
QuitGumming,
ControlViewRefresh,
ControlViewJustBack,
ControlViewReloadParameters,
KeyPressThreadStop,
CutTest,
PrintSettingCancel,
ImageCancel,
HomePageCreate,
HoemPageList,
TestEditSave,
TestEditCancel,
TestEditScan,
TestEditAnalysis,
TestEditDelete,
TestRecordScan,
TestRecordCancel,
TestRecordEdit,
TabReportCancel,
TabReportPrintView,
TabReportSave,
TabReportAnalysis,
TabMeridian,
TabMeridianCancel,
TabAnalysisEvaluation,
CameraCreateNew,
CameraAnalysis,
CameraCancel,
AnalysisCancel,
AnalysisScan,
//мÓ
Formula,
AddErrMsg,
Robot
}
///
/// This method enumerates keys to indicate Custom MessageBox DialogState
///
public enum DialogState
{
Ok = 0,
No = 1,
Cancel = 2,
YestoAll = 3,
CancelX = 4,
}
///
/// Available Icon options.
/// Abstracted to allow some level of UI Agnosticness
///
public enum CustomDialogIcons
{
None,
Information,
Question,
Exclamation,
Stop,
Warning,
Error,
OK
}
///
///
///
public enum ColumnType
{
Default,
Hide,
}
public enum Severity
{
None,
Error,
Warning,
RedWarning,
NotSupported,
}
///
/// Common MessageBoxService interface
///
public interface IMessageBoxService
{
///
/// Gets or sets the state of the dialog.
///
/// The state of the dialog.
DialogState DialogState { get; set; }
///
/// Gets or sets the value of the CanMuchOpened.
///
bool CanMuchOpened { get; set; }
///
/// Gets or sets the value of the Topmost
///
bool Topmost { get; set; }
///
/// Shows an error message
///
/// The error message
void ShowError(string message, Window owner);
///
/// Shows an error message
///
/// The error message
void ShowError(string message);
///
/// Shows an information message
///
/// The information message
void ShowInformation(string message);
///
/// Shows an warning message
///
/// The warning message
void ShowWarning(string message);
///
/// Shows an Successful message
///
/// The Success Message
void ShowSuccess(string message);
///
/// Displays a Yes/No dialog and returns the user input.
///
/// The message to be displayed.
/// The icon to be displayed.
/// User selection.
void ShowYesNo(string message, CustomDialogIcons icon);
///
/// Displays a Yes/No/Cancel dialog and returns the user input.
///
/// The message to be displayed.
/// The icon to be displayed.
/// User selection.
void ShowYesNoCancel(string message, CustomDialogIcons icon);
///
/// Displays a OK/Cancel dialog and returns the user input.
///
/// The message to be displayed.
/// The icon to be displayed.
/// User selection.
void ShowOkCancel(string message, CustomDialogIcons icon);
IMessageBoxService New();
bool ShowInTaskBar { get; set; }
bool IsKeepInProcessVisibility { get; set; }
}
public class ColumnViewModel : ViewModelBase
{
public ColumnType Type { get; private set; }
public int ColumnIndex { get; set; }
public string ColumnName { get; private set; }
public string DisplayName { get; private set; }
public int ColumnWidth { get; set; }
public ColumnViewModel(ColumnType columnType, string displayName, string columnName, int columnIndex, int columnWidth)
{
Type = columnType;
ColumnIndex = columnIndex;
DisplayName = displayName;
ColumnName = columnName;
ColumnWidth = columnWidth;
}
}
}