Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8518067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:52:52+00:00 2026-06-11T05:52:52+00:00

Items of a ComboBox are getting pulled from some DB cache,etc.. This ComboBox has

  • 0

Items of a ComboBox are getting pulled from some DB cache,etc.. This ComboBox has been used in one assembly and so there is the code for it in that assembly on how to load data. Now in a second assembly again I have the same combobox and again should be filled with the same items, so the code that loads items for this combobox is the same.

Now: I can either just copy paste that Load method in my new assembly OR I can add a reference to that assembly and create an instance of the class that this method is in it and then call that method. ( its methods are not static in that class)

Which approach do you suggest?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:52:53+00:00Added an answer on June 11, 2026 at 5:52 am

    If both assemblies are still in use (i.e. subject to later changes), then obviously the import + use the same class. If that method ever needs changing you need to do it in two places. It’s a maintenance nightmare.

    If the other assembly is “abandoned” (will never be changed again), I guess you could get away with just copying the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some Company names as Items in a ComboBox like this: 123 SomeCompany
In a ComboBox there are some items which have to be enabled and some
I'm trying to remove selected item from ComboBox Collection: Items are added manually, as
I have a combobox from which i need to programmatically disable items depending on
is there a more simple way to get combobox (WinForms) selected items text? string
I'm trying to remove selected item from ComboBox Collection: I wrote a buttonClick: cb01.Items.Remove(cb01.SelectedItem);.
i'm trying hard to load comboBox items from an xml file. Here is my
I have a comboxbox defined like this (basically): <ComboBox x:Name=pageViewSize> <ComboBox.Items> <ComboBoxItem IsSelected=True>5</ComboBoxItem> <ComboBoxItem>10</ComboBoxItem>
I am filling items to my ComboBox from a XML file using a DataTable.
I am trying to add some items to combobox, like its showed on msdn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.