public bool UpdateType()
        {
            bool x = Types.UpdateType(ID, Name, BusinessPrice, ClientPrice, BusinessClientPrice, AllCompanyId, this.TheUnit, BaraCode);

            BllGlobal.UpdateAllType();
            return(x);
        }
Esempio n. 2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            string x = "";

            if (Allcom.Count > 0)
            {
                foreach (BLL.Company c in Allcom)
                {
                    x += c.ID + ",";
                }
                x = x.Substring(0, x.Length - 1);
            }
            else
            {
                x = "";
            }
            BLL.Types tpp = BLL.Types.GetTypeByID(_idtype);
            tpp.AllCompanyId = x; tpp.UpdateType();
            frmRealMainForm.FrmTypso.MyRefresh();
            MessageBox.Show("تم  حفظ قائمة التجار", "تنبيه", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }