void GetSelectedDB_Folders()
        {
            try
            {
                DataTable myDataTable_SolutionFolders = new SolutionFoldersDAL().getList_Search(10000, 1, " SolutionID= " + this.cmbSolutions.SelectedValue.ToString(), "FolderName");

                if (myDataTable_SolutionFolders != null)
                {
                    this.SolutionFolders_bindingSource.DataSource = myDataTable_SolutionFolders;
                }

                if (this.SolutionFolders_bindingSource.DataSource != null)
                {
                    this.cmbSolutionFolders.DataSource = this.SolutionFolders_bindingSource;
                    this.cmbSolutionFolders.DisplayMember= "FolderName";
                    this.cmbSolutionFolders.ValueMember = "ID";
                }

                this.cmbSolutionFolders.Refresh();
                this.cmbSolutionFolders.Update();

            }
            catch (Exception ex)
            {

            }
        }
        void Update_SolutionFolders()
        {
            try
            {
                SolutionFoldersDAL = new DAL.SolutionFoldersDAL();

                clsActionStatus = new clsActionStatus();

                SolutionFoldersDAL.ID = this.txtID.Text == CommonVariables.New_IntialValue ? 0 : int.Parse(this.txtID.Text);
                SolutionFoldersDAL.SolutionID = int.Parse(this.txtSolutionID.Text);
                SolutionFoldersDAL.ParentFolderId = 0; //int.Parse(this.cmbParentFolderId.SelectedValue.ToString());
                SolutionFoldersDAL.FolderName = this.txtFolderName.Text;
                SolutionFoldersDAL.NamespaceFormat = this.txtNamespaceFormat.Text;
                SolutionFoldersDAL.FDescription = this.txtFDescription.Text;
                SolutionFoldersDAL.isCreateFolder = this.chkisCreateFolder.Checked;

                SolutionFoldersDAL.UserId = CommonClasses.Security.UserID;
                SolutionFoldersDAL.isActive = this.cbkisActive.Checked;

                if (isNew_SolutionFolders == false && isNew_SolutionFolders == false)
                {
                    Messages.Edit_New_error("Solution Folders");
                    return;
                }

                if (SolutionFoldersDAL.ID > 0)
                {
                    clsActionStatus = SolutionFoldersDAL.Update();
                }
                else
                {
                    clsActionStatus = SolutionFoldersDAL.Insert();
                }

                if (clsActionStatus.is_Error == false)
                {
                    isNew_SolutionFolders = isEdit_SolutionFolders = false;
                    Messages.SuccessMessage(clsActionStatus.Action_SuccessStatus, "Solution Folders");

                    this.txtID.Text = clsActionStatus.Return_Id;

                    this.Solutions_bindingSource.EndEdit();

                    if (SolutionFoldersDAL.ID <= 0)
                    {
                        if (Messages.myAddMore("Solution Folders") == System.Windows.Forms.DialogResult.Yes)
                        {
                            this.txtID.Focus();
                            this.New_SolutionFolders();
                        }
                    }

                }
                else
                {
                    Messages.GeneralError(clsActionStatus.Action_FailureStatus, "Solution Folders");
                }
            }
            catch (Exception ex)
            {
                CommonClasses.Messages.GeneralError(ex.Message, " SolutionFolders");
            }
        }
        void ViewAll_SolutionFolders(Boolean isSearch = false, string SearchText = "")
        {
            try
            {

                DataTable myDataTable_SolutionsDB = new DataTable();// = new JobStatusHeadDAL().getList(1000, 1, "Id", "asc");

                if (isSearch == true)
                {

                    myDataTable_SolutionsDB = new SolutionFoldersDAL().getList_Search(1000, 1, " SolutionID=" + this.txtSolutionID.Text + " and (FolderName like '" + SearchText + "%' or NamespaceFormat like '" + SearchText + "%')", "ID", "asc");
                }
                else
                {
                    myDataTable_SolutionsDB = new SolutionFoldersDAL().getList_Search(1000, 1, " SolutionID=" + this.txtSolutionID.Text, "ID");
                }

                this.SolutionFolders_bindingSource.DataSource = myDataTable_SolutionsDB;

                this.bnMain.BindingSource = this.SolutionFolders_bindingSource;

                if (this.isMapped_SolutionFolders == false)
                {

                    this.Binding_SolutionFolders();
                    this.isMapped_SolutionFolders = true;

                }
            }
            catch (Exception ex)
            {
                CommonClasses.Messages.GeneralError(ex.Message, " Solution Folders");
            }
        }
        void Delete_SolutionFolders()
        {
            try
            {
                if (Messages.myDeleteMsgBox("Solution Folders", this.txtFolderName.Text) == System.Windows.Forms.DialogResult.Yes)
                {
                    SolutionFoldersDAL = new DAL.SolutionFoldersDAL();
                    clsActionStatus = new clsActionStatus();

                    SolutionFoldersDAL.ID = int.Parse(this.txtID.Text);

                    clsActionStatus = SolutionFoldersDAL.Delete();

                    if (clsActionStatus.is_Error == false)
                    {
                        isNew_SolutionFolders = false;
                        isEdit_SolutionFolders = false;
                        Messages.DeletionMessage(clsActionStatus.Action_SuccessStatus, "Solution Folders");

                        this.SolutionFolders_bindingSource.RemoveCurrent();

                    }
                    else
                    {
                        Messages.DeletionMessage(clsActionStatus.Action_FailureStatus, "Solution Folders");
                    }

                }
            }
            catch (Exception ex)
            {
                CommonClasses.Messages.GeneralError(ex.Message, " Solution Folders");
            }
        }