private void FormWorldMinMax_FormClosing(object sender, FormClosingEventArgs e) { StoreStructureContext context = Entity as StoreStructureContext; if (context != null) { context.TakeWorldDetail.CurrentDetailList.Update(context); } }
protected override void EntityChanged() { base.EntityChanged(); if (Entity != null) { context = Entity as StoreStructureContext; edWorld.Properties.DataSource = context.TakeStoreWorld.GetStoreWorldList(); edWorld.EditValue = context.StoreToWorldID; } }
protected override void EntityChanged() { base.EntityChanged(); if (m_context != Entity as StoreStructureContext) { m_context = Entity as StoreStructureContext; m_context.WorldChanged += context_WorldChanged; m_context.StoreChanged += m_context_StoreChanged; m_context_StoreChanged(this, null); } ReloadTree(); }
protected override void EntityChanged() { base.EntityChanged(); ts_ViewMinMax.Text = GetLocalized("ViewMinMax") ?? "View all min / max"; ts_Refresh.Text = GetLocalized("Refresh") ?? "Refresh"; context = Entity as StoreStructureContext; if (context != null) { context.TakeWorldDetail.YearChanged += new EventHandler(context_ParameterChanged); context.StoreChanged += new EventHandler(context_ParameterChanged); context_ParameterChanged(this, null); } }