Archive Browser
Download ScriptingHost-Jint2.zip, last updated 31/08/2020 (66.93 KB)
Download- md5: 3ee9967fdf782810e5e943f1b7e319f9
- sha1: 865279a70fc8634273c37a85ff8a5bffd21087c3
- sha256: 1a5c1588ba9e8f2390f5f3bd41f0c7f4b8c86feb65c9cf1b460aca49488addfc
using System.Windows.Forms;
// Adding Scripting to .NET Applications
// https://www.cyotek.com/blog/adding-scripting-to-net-applications
// Copyright © 2020 Cyotek Ltd. All Rights Reserved.
// This work is licensed under the MIT License.
// See LICENSE.TXT for the full text
// Found this example useful?
// https://www.paypal.me/cyotek
namespace Cyotek.Demo.ScriptingHost
{
internal class SampleApplication
{
#region Private Fields
private readonly MainForm _host;
private string _title;
#endregion Private Fields
#region Public Constructors
public SampleApplication(MainForm host)
{
_host = host;
_title = Application.ProductName;
}
#endregion Public Constructors
#region Public Properties
public string Title
{
get { return _title; }
set
{
_title = value;
_host.UpdateWindowTitle();
}
}
#endregion Public Properties
#region Public Methods
public void Quit()
{
_host.Close();
}
#endregion Public Methods
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate