How to create an addin within the existing windows application? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
There is a big windows application in which we also have WPF, I need to create an addin so that i can move my hige client to small addins. Problem is i need to pass commands or want to talk to other windows of the existing application from the addin. I have tried plugins which i have loaded through reflection. but how do i communicate to the other windows of the existing application?

You don't communicate with other windows directly. If you need an architecture like this, have a look at Prism for instance. And for communication between modules/add-ins you either use some sort of events (Prism has EventAggregator) or you provide interfaces in a project common to all other projects, and use dependency injection like MEF to provide modules with implementations of those interfaces. I know this is a very broead answer and you'll stil have to learn a lot, but your question is equally broad and there's just no way you can learn how to deal with large scalable applications in one-two-three. Or a couple of days/weeks.

Related

Why Microsoft framework has asp.net life cycle events? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I got this question in an interview.
Why Microsoft framework has asp.net life cycle events, instead of this, we can write everything in single event. Seriously I too dont know why Microsoft have so many events? and what is the advantage of it.
Could anyone help me to understand the benefits of distributing the process among the events?
The webforms were designed to mimic desktop applications, so that it was easier for desktop developers to enter the web world.
As a part of this, an control structure representing the page was needed, plus event handling (onclick handlers and such). To support this in the web world, the page lifecycle was introduced. This enabled developers to influence things at particular stages.

Generating forms that use an MVC Web API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am developing an interface that customizes and generates forms for customers to use on their own site. When a user logs in to the interface, he can create a form, add or remove fields from existing forms, and the system will generate the file.
I want to know what's the best approach for doing this. Making these forms independent and just use HTML/Javascript? or have them part of the overall MVC solution inside a Views folder so it can have server side code?
Probabily the best way is not to store the entire form, but having some metadata that describe the forms, then generate the gui dynamically. There are many ways to doing this, it basically depends on your skill, and your specifics, personally im developing something similar right now and i chose Angular2.
Here an example:
https://angular.io/docs/ts/latest/cookbook/dynamic-form.html

Is it possible for one C# dll to raise an event that another C# dll handles? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Is it possible to raise an event in one .dll that can be handled by another? If so, what should I be looking at.
EDIT:
I think the two dlls are running in the same process - they are both add-ins to another program. I'm limited to what I can do with add-ins, hence the need to have this communication.
I thought about writing to a local file and reading it from the other dll, but how would I know when to read it.
It's called Interprocess Communication
You probably would like to look on Pipes, or look into the IpcChannel Class, which may make things even easier. I personally didn't use any of those under C# language, but what important, is an idea and technology behind, the rest is an implementation detail.

How to re-create a Microsoft Access application to a WPF application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an existing MS access application for capturing information (normal add, edit forms with drop downs and so-forth) that I'd like to redesign into a WPF C# application using a Microsoft SQL database.
My question is, is WPF the easiest / quickest solution or are there any alternatives anyone can suggest?
I have some knowledge of WPF and a good understanding of SQL databases.
Thanks
It seems that your application is data driven so as an "easy but not so far" alternative to WPF I would suggest you to have a look at Visual Studio LightSwitch. It is especially designed to quickly create data driven screens with full CRUD hosted within Silverlight (desktop) or within HTML5 (web).
Silverlight is quite dead but it will be easy for you to jump on if you are already familiar with WPF.
Have a look here: https://www.youtube.com/watch?v=oIBJrGp-kOY

Get c# classes after a program is compiled [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a program that I am making for a friend and I don't want him to see the whole code, but I want him to be able to add classes that have attributes on the classes so he can add his own stuff to it, how would I be able to get classes using a compiled program and add them to the dictionary of methods to be called upon later?
Use MEF.
The Managed Extensibility Framework or MEF is a library for creating
lightweight, extensible applications. It allows application developers
to discover and use extensions with no configuration required. It also
lets extension developers easily encapsulate code and avoid fragile
hard dependencies. MEF not only allows extensions to be reused within
applications, but across applications as well.

Categories