예제 #1
0
파일: FormModule.cs 프로젝트: m12k/Files
        private void Initialize()
        {
            try
            {
                module = new BTSS.Logic.Projects.Module(Common.Core.ProjectConnectionString, Common.Core.ProjectDataProvider);
                validation = new BTSS.Common.Validation(); 
                validation.Validate(this);

                if (Operation == Common.Core.Operation.UPDATE || Operation == Common.Core.Operation.VIEW)
                {                     
                    DataRow dr;

                    dr = module.GetProjectModuleDetails(ModuleId);

                    textBoxID.Text = ModuleId;
                    textBoxModuleName.Text = dr["mod_name"].ToString();
                    textBoxModuleName.Tag = dr["mod_name"].ToString();
                    textBoxDescription.Text = dr["mod_desc"].ToString();
                          
                    if (Operation == BTSS.Common.Core.Operation.VIEW)
                    {
                        userControlButtonsSave.Visible = false;
                        Lock();
                    }
                }

                InitializeGrid();

                if (Common.Core.ProjectDataProvider == BTSS.Common.Core.DataProvider.SQL) LoadTables();
                textBoxModuleName.Focus();

            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #2
0
 private void Initialize()
 {
     try
     {              
         Module = new BTSS.Logic.Projects.Module(Common.Core.ProjectConnectionString, Common.Core.ProjectDataProvider);
         validation = new BTSS.Common.Validation(); 
         validation.Validate(this);
         SetControlListingAccessRights();
     }
     catch (Exception)
     {
         throw;
     }        
 }