-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathInputBox.cs
More file actions
51 lines (43 loc) · 1.14 KB
/
InputBox.cs
File metadata and controls
51 lines (43 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright © 2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
namespace CefSharp.WinForms.Example
{
public partial class InputBox : Form
{
public InputBox()
{
InitializeComponent();
}
public event EventHandler OnEvaluate
{
add { _evaluate.Click += value; }
remove { _evaluate.Click -= value; }
}
public string Instructions
{
get { return _instructions.Text; }
set { _instructions.Text = value; }
}
public string Result
{
get { return _result.Text; }
set { _result.Text = value; }
}
public string Title
{
set { Text = "Evaluate script - " + value; }
}
public string Value
{
get { return _value.Text; }
set { _value.Text = value; }
}
private void _close_Click(object sender, EventArgs e)
{
Close();
}
}
}