|
using System;
using Sedge.Core.Configuration;
using Sedge.Core.Execution;
using Sedge.Core.Globalization;
using Sedge.UI.View;
using Sedge.UI.ViewModel;
namespace Sedge.UI.Controller
{
public class ScreenshotController : IStepController
{
#region Private fields
private Suite _suite;
private Options _options;
#endregion //Private fields
#region Properties
private ScreenshotView _view;
public object View
{
get
{
if (_view == null)
{
_view = new ScreenshotView(new ScreenshotViewModel(_suite, _options));
}
return _view;
}
}
public string Caption
{
get
{
string caption = _options.Caption();
if (String.IsNullOrEmpty(caption))
caption = Locale.Strings.ScreenshotViewCaption;
return caption;
}
}
#endregion //Properties
#region Methods
public void Initialize(Suite suite, Options options)
{
_suite = suite;
_options = options;
}
public bool EnterStep(bool fromPrev)
{
return true;
}
public bool LeaveStep(bool toNext)
{
return true;
}
#endregion //Methods
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a software developer from Toronto with 15 years of experience in software design and development. My major professional area is the development of highly customized software solutions, including desktop and web applications. Industrial process automation and hardware-related software development are among my favorite projects and I enjoyed developing several applications for semiconductor manufacturing companies.
My blog: http://LunarFrog.com/blog