/// <summary>
 /// Function to fill NonSelected Items List
 /// </summary>
 public void FillNonSelectedList()
 {
     try
     {
         QuickLaunchItemsBll BllQuickLaunchItems = new QuickLaunchItemsBll();
         listObjNonSelected = BllQuickLaunchItems.QuickLaunchNonSelectedViewAll(false);
         lstbxNonSelected.DataSource = listObjNonSelected[0];
         lstbxNonSelected.ValueMember = "quickLaunchItemsId";
         lstbxNonSelected.DisplayMember = "itemsName";
         listObjSelected = BllQuickLaunchItems.QuickLaunchNonSelectedViewAll(true);
         lstbxSelected.DataSource = listObjSelected[0];
         lstbxSelected.ValueMember = "quickLaunchItemsId";
         lstbxSelected.DisplayMember = "itemsName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("MC:1 " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        /// <summary>
        /// Save or edit function, Here checking the items in the list
        /// </summary>
        private void SaveorEdit()
        {
            try
            {

                QuickLaunchItemsInfo infoQuickLaunchItems = new QuickLaunchItemsInfo();
                QuickLaunchItemsBll BllQuickLaunchItems=new QuickLaunchItemsBll();
                if (listObjSelected[0].Rows.Count >= 1)
                {
                    foreach (DataRow dRoW in listObjSelected[0].Rows)
                    {
                        infoQuickLaunchItems.ItemsName = dRoW.ItemArray[0].ToString();
                        infoQuickLaunchItems.QuickLaunchItemsId = Convert.ToDecimal(dRoW.ItemArray[1]);
                        infoQuickLaunchItems.Status = true;
                        infoQuickLaunchItems.Extra1 = string.Empty;
                        infoQuickLaunchItems.Extra2 = string.Empty;
                        BllQuickLaunchItems.QuickLaunchItemsEdit(infoQuickLaunchItems);
                    }
                    foreach (DataRow dRoW in listObjNonSelected[0].Rows)
                    {
                        infoQuickLaunchItems.ItemsName = dRoW.ItemArray[0].ToString();
                        infoQuickLaunchItems.QuickLaunchItemsId = Convert.ToDecimal(dRoW.ItemArray[1]);
                        infoQuickLaunchItems.Status = false;
                        infoQuickLaunchItems.Extra1 = string.Empty;
                        infoQuickLaunchItems.Extra2 = string.Empty;
                        BllQuickLaunchItems.QuickLaunchItemsEdit(infoQuickLaunchItems);
                    }
                    Messages.SavedMessage();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Select atleast one form in quick launch", "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("MC:4 " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }