Example #1
0
 protected void OnSystemSaved(object sender, SystemEventArgs data)
 {
     if (data == null) data = new SystemEventArgs ();
     if (SystemSaved != null) SystemSaved (this, data);
 }
Example #2
0
 public void SetProtocol(string protocol)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.Protocol = protocol;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #3
0
 public void SetUser(string user)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.User = user;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #4
0
 public void SetName(string name)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.Name = name;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #5
0
 public void SetPort(string port)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.Port = port;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #6
0
 public void SetHost(string host)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.Host = host;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #7
0
 public void SetIsGateway(string isGateway)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.IsGateway = isGateway;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #8
0
 public void SetGatewayName(string gateway)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.GatewayName = gateway;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #9
0
 public void SetAuthType(string authType)
 {
     var data = new SystemEventArgs();
     data.Before = this.Clone ();
     this.AuthType = authType;
     data.After = this;
     data.Action = "change";
     OnSystemChanged (this, data);
 }
Example #10
0
 protected void OnSystemUpdated(object sender, SystemEventArgs e)
 {
     var system = e.After;
     systemListStore.Clear ();
     this.SystemChanged (system);
 }
Example #11
0
 protected void OnSystemDeleted(object sender, SystemEventArgs e)
 {
     systemListStore.Clear ();
     this.InitListStore ();
 }
Example #12
0
 protected void OnSystemCreated(object sender, SystemEventArgs e)
 {
     var system = e.After;
     this.InsertSystem (system);
 }