Method calling and parameters.

What is the relationship between Class 1 and Class 2? Are they just two completely separate classes?

Class 1 and 2 I didn't write. They were part of an asp.net app that was never completed that I'm modifying to work in a form. Originally they worked together. Class 1 has a method that is a utility of sorts that either encrypts or decrypts (for lack of a better term, it's more of a conversion thing about obfuscation than anything) credentials.
Class 2 method is all the conversion code that works based on the string parameters being passed between the two classes from what I can tell.

Why can't you call Class2.Method2() from within Class1.Method1()? Please expand upon this.

I suppose I could if I merged the function from Class1 into Class2, but since it works as intended with the separate classes and methods, my first attempt is to just get the form to be able to initiate Class1 so I can get things working. Currently there's no way to do what the methods are built to do without stepping through the code and looking at output.

What do you mean by "takes parameters"? Do you mean "Class1.Method1() uses the return value from Class2.Method2()"?

I'm not entirely sure about the parameters, but Class2 encodes or decodes a username and password string variable from Class1 based on the object being instantiated (not sure if I'm describing that correctly). What I do know is that the two string parameters in Class1.Method1 directly relates to Class2.Method2 (there are separate methods for encoding/decoding, but I'm just keeping it simple)

The way you worded this makes it seem like you might need some event-driven or multi-threading programming.

I know the original two classes work together because it's part of a functional larger application (basically what I'm working with is a library that the larger app uses). It's all functional as it is. My main thing is being able to return the results of the encoding/decoding that ultimately end up in Class1 in a variable, to the form I created so I can manipulate and display results.

/r/csharp Thread Parent