-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewController.cs
More file actions
43 lines (37 loc) · 1.07 KB
/
ViewController.cs
File metadata and controls
43 lines (37 loc) · 1.07 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
using System;
using AppKit;
using Foundation;
namespace BasicForm
{
public partial class ViewController : NSViewController
{
public ViewController(IntPtr handle) : base(handle)
{
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
// Do any additional setup after loading the view.
}
public override NSObject RepresentedObject
{
get
{
return base.RepresentedObject;
}
set
{
base.RepresentedObject = value;
// Update the view, if already loaded.
}
}
partial void SubmitBtnAction(NSButton sender)
{
var name = NameOutlet.StringValue;
var email = EmailOutlet.StringValue;
var checkbox = CheckboxOutlet.State;
string data = "Value of Name field: " + name + " Value of Email field: " + email + " Value of Subscribe checkbox field: " + checkbox;
Console.WriteLine(data);
}
}
}