Esempio n. 1
0
        public virtual void SetPropertyEdited(string inName, bool inEdited)
        {
            if (VD2PropertyInfos.ContainsKey(inName))
            {
                VD2PropertyInfo info = null;
                if (VD2PropertyInfos.TryGetValue(inName, out info))
                {
                    info.EditedByUser = inEdited;

                    if (!info.Exists)
                    {
                        info.Exists = true;
                    }

                    UpdatePropertyInfo(inName, info);
                    VD2PropertyChangedEventArgs e = new VD2PropertyChangedEventArgs();
                    e.PropertyInfo = info;
                    e.PropertyName = inName;
                    e.NewValue     = GetType().GetProperty(inName).GetValue(this);
                    EventHandler <VD2PropertyChangedEventArgs> handler = VD2PropertyChanged;
                    if (handler != null)
                    {
                        handler(this, e);
                    }
                }
            }
        }
 private void OnMyFileEdited(object sender, VD2PropertyChangedEventArgs e)
 {
     if (_Document is VD2Data)
     {
         //VD2Data datadoc = (VD2Data)_Document;
         SetTabPageTitle(_Document.GetDocumentTitle());
     }
 }