private void GetTrnType() { priceType = contxt.PriceListTypes.FirstOrDefault(o => o.ListTypeName == Trntype); GetAddressBook(); GetProducts(); }
private void FormPriceList_Load(object sender, EventArgs e) { contxt = new PMModel(); partners = new List <AddressBook>(); partner = new AddressBook(); products = new List <Product>(); sessionList = new List <SupplierLedger>(); priceList = new PriceList(); priceType = new PriceListType(); Trntype = formMode; GetTrnType(); GetProducts(); ShowPriceList(); state = FORMSTATE.NOOP; SetButtons(); panelMid.Enabled = false; isFormLoading = false; }