private void button_Test_ELVSS_Function_Click(object sender, EventArgs e) { ChannelWinformAPIFactory channelAPIFactory = new ChannelWinformAPIFactory(VendorForm.GetInstance().GetVendor()); int height = Convert.ToInt32(textBox_Full_Height.Text); int width = Convert.ToInt32(textBox_Full_Width.Text); for (int ch = 0; ch < VendorForm.GetInstance().GetChannelLength(); ch++) { if (Channel_API[ch] == null) { Channel_API[ch] = channelAPIFactory.GetIBusinessAPI(richTextBoxes[ch], height, width); } if (ocparams[ch] == null) { ocparams[ch] = new DP213_OCParameters(Channel_API[ch], ch, richTextBoxes[ch]); } IOCFactory factory = new DP213OCFactory(Channel_API[ch], ocparams[ch], ch, new OCVars(Channel_API[ch])); ICompensation elvssOC = factory.GetELVSSCompensation(); elvssOC.Compensation(); } }
public TestForCompensation() { _compensation = new Compensation(); }
public ReportTranslator() { _compensation = new Compensation(); }