Ejemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            ABCWaitingDialog.Show("", "Saving . . .!");

            STEnumDefinesController ctrl = new STEnumDefinesController();

            foreach (DataRow dr in ((DataTable)this.gridControl1.DataSource).Rows)
            {
                STEnumDefinesInfo info = (STEnumDefinesInfo)ctrl.GetObjectFromDataRow(dr);
                if (info != null)
                {
                    if (info.STEnumDefineID != Guid.Empty)
                    {
                        ctrl.UpdateObject(info);
                    }
                    else
                    {
                        ctrl.CreateObject(info);
                    }
                }
            }
            InvalidateData();
            EnumProvider.GetAllEnums();

            ABCWaitingDialog.Close();
        }
Ejemplo n.º 2
0
        public void SaveTables( )
        {
            ABCWaitingDialog.Show("", "Saving . . .!");

            if (this.ViewFieldConfig.DataSource != null)
            {
                STFieldConfigsController configCtrl = new STFieldConfigsController();
                foreach (DataRow dr in ((DataView)this.ViewFieldConfig.DataSource).Table.Rows)
                {
                    STFieldConfigsInfo configInfo = (STFieldConfigsInfo)configCtrl.GetObjectFromDataRow(dr);
                    if (configInfo != null)
                    {
                        configCtrl.UpdateObject(configInfo);
                        isModified = true;
                    }
                }
            }
            STTableConfigsController aliasCtrl = new STTableConfigsController();

            foreach (STTableConfigsInfo aliasInfo in TableList)
            {
                aliasCtrl.UpdateObject(aliasInfo);
            }

            DataConfigProvider.SynchronizeTableConfigs();
            InvalidateTableList();

            ABCWaitingDialog.Close();

            isNeedSaveTable = false;
        }
Ejemplo n.º 3
0
        public void OpenFromDatabase(STViewsInfo viewInfo)
        {
            ABCWaitingDialog.Show("", "Opening . . .!");

            HostControl hc = OwnerStudio.SurfaceManager.OpenNewForm(viewInfo);

            AddHostToTabManager(hc);

            ABCWaitingDialog.Close();
        }
Ejemplo n.º 4
0
        public void OpenFromXMLFile(String strFileName)
        {
            ABCWaitingDialog.Show("", "Opening . . .!");

            HostControl hc = OwnerStudio.SurfaceManager.OpenNewForm(strFileName);

            AddHostToTabManager(hc);

            ABCWaitingDialog.Close();
        }