using System;
using System.Collections.Generic;
using SharedDatabase.Entities;
namespace WorkflowConfigurator.UserControls
{
///
/// Interface to be implemented by (sub)controls
/// for process/part/workstep modification.
///
public interface IMyUI
{
///
/// Update UI elements lock state (visible/enabled/etc.)
///
/// Process name, descriptions, checks and Oracle parameters can be changed
/// Everything can be changed
void UpdateLockState(bool limitedUnlock, bool completeUnlock);
///
/// Update UI elements from data objects.
///
void Data2UI();
///
/// Verify validity of data in UI elements.
///
/// Messgae when data are not valid
/// true = data valid
bool VerifyUIData(out string message);
///
/// Update data objects from UI elements.
///
void UI2Data();
///
/// Save UI settings like splitter positions, column widths, etc. to Program.LocalSettings object.
///
void Settings2UI();
///
/// SRestore UI settings like splitter positions, column widths, etc. from Program.LocalSettings object.
///
void UI2Settings();
///
/// Set 'unsavedChanges' etc. Called from bottom to top.
///
void SetUnsavedFlag();
///
/// Reset 'unsavedChanges' etc. Called from top to bottom.
///
void ResetUnsavedFlag();
void UpdateProcess(Process process, Reason reason, IList allProcesses);
}
}