Example #1
0
        void ViewReadOnlyStatusUpdate()
        {
            csIComponent comp = View.CurrentObject as csIComponent;

            if (comp != null)
            {
                View.AllowEdit.SetItemValue("fmComponentViewController.csIComponent.ReadOnly", !comp.ReadOnly);
            }
        }
 protected override void OnViewChanging(View view)
 {
     if (view.CurrentObject is fmIFinIndexStructure)
     {
         csIComponent comp = view.CurrentObject as csIComponent;
         if (comp != null && !comp.ReadOnly)
         {
             base.OnViewChanging(view);
         }
         else
         {
             this.Active.SetItemValue("fmFinIndexStructureViewController.CompReadOnly", false);
         }
     }
     else
     {
         this.Active.SetItemValue("fmFinIndexStructureViewController.NotIndexStructure", false);
     }
 }