Esempio n. 1
0
        private void Initialize()
        {
            try
            {
                classModule = new ClassModule(Global.ProjectConnectionString, Global.ProjectDataProvider);
                Validation = new Validation();
                Validation.Validate(this);

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

                    dr = classModule.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 == Global.Operation.VIEW)
                    {
                        userControlButtonsSave.Visible = false;
                        Lock();
                    }
                }

                textBoxModuleName.Focus();

            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 2
0
 private void Initialize()
 {
     try
     {              
         classModule = new ClassModule(Global.ProjectConnectionString, Global.ProjectDataProvider);
         Validation = new Validation();
         Validation.Validate(this);
     }
     catch (Exception)
     {
         throw;
     }        
 }