Answer the question
In order to leave comments, you need to log in
How to use "amount in words" in a separate c# file?
In the main form file, there are event handlers, etc.
By pressing the button, the amount is calculated and displayed in the desired label. But since this whole function takes up a lot of space, I want to put it in a separate file, and in the right place, connect it indicating where to get the data from and where to enter it. How can I do that? Or perhaps there is a ready-made solution? I heard about some libraries for sharp, where it is enough to connect it and indicate in the right place what to write, where and in what currency. But found nothing
Answer the question
In order to leave comments, you need to log in
It is necessary to make a separate class in a separate file. And in the form, create an object of this class and call a function that will do what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question