private void Network_PropertyChangeHandler(object sender, ChangePropertyEvent e)
        {
            MObject mo = MScene.Root.FindModuleByInstanceID(e.InstanceID);

            if (mo != null)
            {
                mo.Tag = e.PropertyTag;
            }

            if (e.InstanceID.Equals(InstanceID))
            {
                Invoke((MethodInvoker) delegate
                {
                    ErrorLabel.Text      = "Success!";
                    ErrorLabel.ForeColor = Color.DarkGreen;
                    Success = true;
                    //UpdatePropertiesButton.Text = "OK";
                    timer1.Start();
                });
            }
            else
            {
                ErrorLabel.Text             = "Can't Update. Try Again?";
                ErrorLabel.ForeColor        = Color.DarkRed;
                UpdatePropertiesButton.Text = "Try Again";
            }
        }
        private void MMessageBus_PropertyChangeEvent(object sender, ChangePropertyEvent e)
        {
            MSceneObject mo = (MSceneObject)MScene.ModelRoot.FindModuleByInstanceID(e.InstanceID);

            if (mo != null)
            {
                mo.Tag = e.PropertyTag;
            }
        }
Example #3
0
 private void MMessageBus_PropertyChangeEvent(object sender, ChangePropertyEvent e)
 {
     if (e.InstanceID == InstanceID)
     {
         StatusText.Text = "SUCCESS";
     }
     else
     {
         StatusText.Text = "Can't update. Retry?";
     }
 }
Example #4
0
 private void MMessageBus_PropertyChangeEvent(object sender, ChangePropertyEvent e)
 {
     if (Target == null)
     {
         return;
     }
     if (e.InstanceID == Target.InstanceID)
     {
         StatusLabel.Text = "Updated. You can now close this form or test the link.";
     }
 }
 private void MMessageBus_PropertyChangeEvent(object sender, ChangePropertyEvent e)
 {
     throw new NotImplementedException();
 }