protected void ui_BtnDelete_Click(object sender, EventArgs e)
 {
     ImageButton btn = (ImageButton)sender;
     Companies objData = new Companies();
     objData.LoadByPrimaryKey(Int32.Parse(btn.CommandArgument));
     objData.MarkAsDeleted();
     objData.Save();
     BindAllCompanies();
 }
        protected void ui_BtnEdit_Click(object sender, EventArgs e)
        {
            ImageButton btn = (ImageButton)sender;

            Companies objData = new Companies();
            objData.LoadByPrimaryKey(Int32.Parse(btn.CommandArgument));
            ui_txtCompNameEn.Text = objData.CompNameEng;
            ui_txtCompNameAr.Text = objData.CompNameAr;
            ui_txtCompCode.Text = objData.Comp_Code;
            ui_txtOldEmail.Text = objData.OLD_EMAIL;
            ui_txtName1.Text = objData.Doctor_Name;
            ui_txtNewEmail1.Text = objData.New_Email;
            ui_txtNumber1.Text = objData.Phone_Number;
            ui_txtName2.Text = objData.Doctor_Name_2;
            ui_txtNewEmail2.Text = objData.New_Email_2;
            ui_txtNumber2.Text = objData.Phone_Number2;

            ui_btnSave.Text = "Save";
            SavedCompaniesObj = objData;
        }