Пример #1
0
        private void Initialize()
        {
            try
            {
                classGroup = new ClassGroup(Global.ProjectConnectionString, Global.ProjectDataProvider);
                Validation = new Validation();
                Validation.Validate(this);

                InitializeGrid(); 

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

                    dr = classGroup.GetGroupDetails(GroupId);

                    textBoxID.Text = GroupId;
                    textBoxGroupName.Text = dr["grp_name"].ToString();
                    textBoxGroupName.Tag = dr["grp_name"].ToString();
                    textBoxDescription.Text = dr["grp_desc"].ToString();
                     
                    if (Operation == Global.Operation.VIEW)
                    {
                        userControlButtonsSave.Visible = false;
                        Lock();
                    } 
                }

                LoadModuleAccess();
                textBoxGroupName.Focus();
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
 private void Initialize()
 {
     try
     {
         classGroup = new ClassGroup(Global.ProjectConnectionString, Global.ProjectDataProvider);
         Validation = new Validation();
         Validation.Validate(this);
     }
     catch (Exception)
     {
         throw;
     }        
 }