Exemplo n.º 1
0
        protected void loadData()
        {
            CTable t = new CTable("");

            vw = createObject();

            DataContext = vw;

            CUtil.EnableForm(false, this);

            if (loadParam.Mode.Equals("E"))
            {
                CTable m = OnixWebServiceAPI.SubmitObjectAPI(getInfoAPIName, loadParam.ActualView.GetDbObject());
                if (m != null)
                {
                    vw.SetDbObject(m);
                    vw.InitializeAfterLoaded();
                    vw.NotifyAllPropertiesChanged();
                    vw.InitializeAfterNotified();
                }
            }

            vw.IsModified = false;
            isInLoad      = false;

            CUtil.EnableForm(true, this);
        }