Пример #1
0
                public void PropertyChanged_Character(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::CharacterLibrary.CharacterInstance obj = sender as global::CharacterLibrary.CharacterInstance;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Character_Name(obj.Name, DATA_CHANGED);
                                bindings.Update_Character_Description(obj.Description, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Name":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Character_Name(obj.Name, DATA_CHANGED);
                                }
                                break;
                            }

                            case "Description":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Character_Description(obj.Description, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }