public void Bind(ViceHWGR hwgr, BindingList <ViceWorld> worlds) { edWorld.Properties.DataSource = worlds; EditHwgr.EditValue = hwgr; EditHwgr.Enabled = false; m_assign = AssignEnum.ThisHwgrToWgr; }
public void Bind(AssignEnum _type, long storeID) { AssignEnum = _type; m_storeID = storeID; switch (_type) { case AssignEnum.WorldHwgrDisable: edParent.Properties.ReadOnly = true; edParent.EditValue = (Entity as WorldToHwgr).WorldID; goto case AssignEnum.ThisHwgrToWorld; case AssignEnum.ThisHwgrToWorld: lbChild.Text = "HWGR"; lbParent.Text = "World"; edChild.Properties.DataSource = DropItemsHwgr; edChild.EditValue = m_OneItem; edChild.Properties.ReadOnly = true; if (m_DropItemsWorld != null) { edParent.Properties.DataSource = m_DropItemsWorld; } break; case AssignEnum.HwgrWgrDisable: edParent.Properties.ReadOnly = true; edParent.EditValue = (Entity as HwgrToWgr).HWGR_ID; goto case AssignEnum.ThisWgrToHWGR; case AssignEnum.ThisWgrToHWGR: lbChild.Text = "WGR"; lbParent.Text = "HWGR"; edChild.Properties.DataSource = DropItemsWgr; edChild.EditValue = m_OneItem; edChild.Properties.ReadOnly = true; if (m_DropItemsHwgr != null) { edParent.Properties.DataSource = m_DropItemsHwgr; } break; case AssignEnum.ThisHwgrToWgr: lbChild.Text = "WGR"; lbParent.Text = "HWGR"; edParent.Properties.DataSource = DropItemsHwgr; edParent.EditValue = m_OneItem; edParent.Properties.ReadOnly = true; if (m_DropItemsWgr != null) { edChild.Properties.DataSource = m_DropItemsWgr; } break; } }
public void Bind(ViceWorld world) { EditHWGR.Properties.DataSource = ClientEnvironment.HWGRService.FindAll(); edWorld.EditValue = world; edWorld.Enabled = false; m_assign = AssignEnum.ThisHwgrToWorld; m_world = world; }
public void Bind(AssignEnum assignEnum, long m_storeID) { UC.Bind(assignEnum, m_storeID); switch (assignEnum) { case AssignEnum.ThisHwgrToWgr: case AssignEnum.ThisWgrToHWGR: lbl_AssignEntity.Text = Localizer.GetLocalized("ThisWgrToHWGR"); break; case AssignEnum.ThisHwgrToWorld: lbl_AssignEntity.Text = Localizer.GetLocalized("ThisHwgrToWorld"); break; case AssignEnum.HwgrWgrDisable: lbl_AssignEntity.Text = Localizer.GetLocalized("HwgrWgrDisable"); break; case AssignEnum.WorldHwgrDisable: lbl_AssignEntity.Text = Localizer.GetLocalized("WorldHwgrDisable"); break; } }
public void Bind (AssignEnum _type, long storeID) { AssignEnum = _type; m_storeID = storeID; switch (_type) { case AssignEnum.WorldHwgrDisable: edParent.Properties.ReadOnly = true; edParent.EditValue = (Entity as WorldToHwgr).WorldID; goto case AssignEnum.ThisHwgrToWorld; case AssignEnum.ThisHwgrToWorld: lbChild.Text = "HWGR"; lbParent.Text = "World"; edChild.Properties.DataSource = DropItemsHwgr; edChild.EditValue = m_OneItem; edChild.Properties.ReadOnly = true; if (m_DropItemsWorld != null) edParent.Properties.DataSource = m_DropItemsWorld; break; case AssignEnum.HwgrWgrDisable: edParent.Properties.ReadOnly = true; edParent.EditValue = (Entity as HwgrToWgr).HWGR_ID; goto case AssignEnum.ThisWgrToHWGR; case AssignEnum.ThisWgrToHWGR: lbChild.Text = "WGR"; lbParent.Text = "HWGR"; edChild.Properties.DataSource = DropItemsWgr; edChild.EditValue = m_OneItem; edChild.Properties.ReadOnly = true; if (m_DropItemsHwgr != null) edParent.Properties.DataSource = m_DropItemsHwgr; break; case AssignEnum.ThisHwgrToWgr: lbChild.Text = "WGR"; lbParent.Text = "HWGR"; edParent.Properties.DataSource = DropItemsHwgr; edParent.EditValue = m_OneItem; edParent.Properties.ReadOnly = true; if (m_DropItemsWgr != null) edChild.Properties.DataSource = m_DropItemsWgr; break; } }
public void Bind (ViceHWGR hwgr, BindingList<ViceWorld> worlds) { edWorld.Properties.DataSource = worlds; EditHwgr.EditValue = hwgr; EditHwgr.Enabled = false; m_assign = AssignEnum.ThisHwgrToWgr; }
public void Bind (ViceWorld world) { EditHWGR.Properties.DataSource = ClientEnvironment.HWGRService.FindAll(); edWorld.EditValue = world; edWorld.Enabled = false; m_assign = AssignEnum.ThisHwgrToWorld; m_world = world; }