diff options
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyDomain.cs')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyDomain.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyDomain.cs b/CSharp/Ivy/IvyPPC/IvyDomain.cs index a9f215b..163374f 100644 --- a/CSharp/Ivy/IvyPPC/IvyDomain.cs +++ b/CSharp/Ivy/IvyPPC/IvyDomain.cs @@ -28,10 +28,19 @@ namespace IvyBus public IvyDomain()
{
InitializeComponent();
- domain = Ivy.getDomain(domain);
- ivybus.Text = domain;
}
-
+ public void SetDefault()
+ {
+ if (IsEmpty())
+ {
+ domain = Ivy.getDomain(domain);
+ ivybus.Text = domain;
+ }
+ }
+ public bool IsEmpty()
+ {
+ return domain == "";
+ }
private void ivybus_Validating(object sender, CancelEventArgs e)
{
|