void PropertyChanged(PropertyValueChangedEventArgs e)
        {
            string fullpropname     = "";
            string propType         = "";
            string OriginalPropName = "";

            GridItem      p    = e.ChangedItem;
            List <string> path = GenericProperties.ExtractPropPath(p, ref OriginalPropName, ref fullpropname, ref propType);


            switch (propType)
            {
            case "Form":
                GenericProperties.copyProperty_STT(this, prop, fullpropname, path);
                break;

            case "display":
                GenericProperties.copyProperty_STT(_display, prop, fullpropname, path);
                break;

            case "DataSource":
                manager.AjustHint("");
                break;
            }
        }
        void PropertyChanged2(UIElement src)
        {
            string fullpropname     = "";
            string propType         = "";
            string OriginalPropName = "";


            List <string> path = src.ExtractPropPath(ref OriginalPropName, ref fullpropname, ref propType);



            switch (propType)
            {
            case "Form":
                GenericProperties.copyProperty_STT(this, prop, fullpropname, path);
                break;

            case "AngularGauge":

                GenericProperties.copyProperty_STT(_angularGauge, prop, fullpropname, path);



                break;

            case "DataSource":
                manager.AjustHint("");
                break;
            }
        }
 public formManager(Form form, StartForm main, XmlNode initnode, string description, GenericProperties formsettings)
 {
     formDesc          = description;
     mainForm          = main;
     initDataNode      = initnode;
     settings          = formsettings;
     myForm            = form;
     form.FormClosing += targetFormClosing;
     form.Shown       += target_Shown;
 }
Beispiel #4
0
 public void ShowPropertyForm(Form caller, GenericProperties prop,
                              SetValueCallBack2 PropertyChanged2,
                              GetValueCallBack2 getPropertyValue,
                              bool forceToShow)
 {
     if (propWindow2 != null)
     {
         propWindow2.showWindow(caller, prop, PropertyChanged2, getPropertyValue, forceToShow);
         propWindow2.setTopmost(true);
     }
 }
        object  GetPropertyValue(UIElement src)
        {
            string        fullpropname     = "";
            string        propType         = "";
            string        OriginalPropName = "";
            List <string> path             = src.ExtractPropPath(ref OriginalPropName, ref fullpropname, ref propType);

            switch (propType)
            {
            case "Form":
                return(GenericProperties.newGetProperty(this, prop, fullpropname, path));

            case "display":
                return(GenericProperties.newGetProperty(_display, prop, fullpropname, path));
            }
            return(null);
        }
Beispiel #6
0
        public void showWindow(GenericProperties prop, SetValueCallBack valueCallBack, bool ForceToTshow)
        {
            try
            {
                setCallback = valueCallBack;

                propertyGrid1.SelectedObject = prop;
                Text = "Properties of " + prop.Form_Text;
            }
            catch (Exception e) { LogManager.Log("Properties Windows error: " + e.Message); }

            if (ForceToTshow)
            {
                Show();
                if (this.WindowState == FormWindowState.Minimized)
                {
                    this.WindowState = FormWindowState.Normal;
                }
            }
        }
Beispiel #7
0
        public void showWindow(Form hostWindow, GenericProperties structData,
                               SetValueCallBack2 setvalueCallBack,
                               GetValueCallBack2 getvalueCallBack, bool ForceToTshow)
        {
            _changeCallback = setvalueCallBack;

            _getvalueCallback = getvalueCallBack;

            Text = "Properties of " + hostWindow.Text;


            if (ForceToTshow)
            {
                Show();
                if (this.WindowState == FormWindowState.Minimized)
                {
                    this.WindowState = FormWindowState.Normal;
                }
            }
            EditObject(structData, setvalueCallBack, getvalueCallBack);
        }
        void PropertyChanged2(UIElement src)
        {
            string fullpropname     = "";
            string propType         = "";
            string OriginalPropName = "";


            List <string> path = src.ExtractPropPath(ref OriginalPropName, ref fullpropname, ref propType);


            switch (propType)
            {
            case "Form":
                GenericProperties.copyProperty_STT(this, prop, fullpropname, path);
                break;

            case "display":
                GenericProperties.copyProperty_STT(_display, prop, fullpropname, path);
                break;
            }
        }
        object GetPropertyValue(UIElement src)
        {
            string fullpropname     = "";
            string propType         = "";
            string OriginalPropName = "";
            // if src.t "DataSource_recording"


            List <string> path = src.ExtractPropPath(ref OriginalPropName, ref fullpropname, ref propType);

            switch (propType)
            {
            case "Form":
                return(GenericProperties.newGetProperty(this, prop, fullpropname, path));

            case "Graph":
                return(GenericProperties.newGetProperty(_cartesianChart, prop, fullpropname, path));

            case "DataSource":
                return(null);
            }
            return(null);
        }