private void btnSngCode_Click(object sender, EventArgs e) { string code = ""; if (_fg) { code += _sngMath.Code() + "\n"; } code += _sngEffect.Code(); ShowCode.ShowCodeDialog(code); }
private void btnPosCod_Click(object sender, EventArgs e) { string code = ""; if (_fg) { code += _posMath.Code() + "\n"; } code += _posEffect.Code(ChooseChannel.GetOneChannel, ChooseChannel.GetTwoChannel, ChooseChannel.GetThreeChannels); ShowCode.ShowCodeDialog(code); }
private void btnDiaCod_Click(object sender, EventArgs e) { string code = ""; if (_fg) { code += _diaMath.Code() + "\n"; } code += EffectClasses.FullColorHDMA.Code(_diaColRed, _diaColGrn, _diaColBlu, ChooseChannel.GetOneChannel, ChooseChannel.GetTwoChannel, ChooseChannel.GetThreeChannels); ShowCode.ShowCodeDialog(code); }
private void btnTblCod_Click(object sender, EventArgs e) { string code = ""; if (_fg) { code += _tblMath.Code() + "\n"; } else { code += "init: \n"; } code += EffectClasses.FullColorHDMA.Code(_tblRed, _tblGreen, _tblBlue, ChooseChannel.GetOneChannel, ChooseChannel.GetTwoChannel, ChooseChannel.GetThreeChannels); ShowCode.ShowCodeDialog(code); }
private void btnImage_Code_Click(object sender, EventArgs e) { try { if (!Multi.UseAble) { throw new FormatException("Effect cannot be created from image!\n" + "The scanlines: " + String.Join(", ", Multi.BlackLines) + " " + "would need 3 black sections, and the scanlines: " + String.Join(", ", Multi.WhiteLines) + " at least 3 white ones.\n" + "Both of which cannot be done using only 2 windows without further HDMA (which this tool doesn't implement)"); } else { new ShowCode(Multi.Code()).ShowDialog(); } } catch (FormatException FE) { ShowCode.ShowMessage(FE); } catch (Exception Ex) { ShowCode.ShowMessage(Ex); } }
private void btnMulCod_Click(object sender, EventArgs e) { try { string code = ""; if (_fg) { code += _mulMath.Code() + "\n"; } code += EffectClasses.FullColorHDMA.Code(_mulRed, _mulGreen, _mulBlue, ChooseChannel.GetOneChannel, ChooseChannel.GetTwoChannel, ChooseChannel.GetThreeChannels); ShowCode.ShowCodeDialog(code); } catch (EffectClasses.AbordException) { } catch (Exception ex) { ShowCode.ShowMessage(ex); } }
private void btnTblCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_tblEffect); }
private void btnIndCod_Click(object sender, EventArgs e) { UpdateIndividual(); ShowCode.ShowCodeDialog(_indEffect); }
private void btnSmpCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(EffectClasses.BrightnessHDMA.MultiCode(_smpEffectTop, _smpEffectBtm)); }
private void btnImgCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_imgMath, _imgEffect); }
private void btnVerCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_yEffect); }
private void btnWinCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_windowingMath); }
private void btnDynamic_Code_Click(object sender, EventArgs e) { try { new ShowCode(Dynamic_Circle.Code()).ShowDialog(); } catch (FormatException FE) { ShowCode.ShowMessage(FE); } catch (Exception Ex) { ShowCode.ShowMessage(Ex); } }
private void btnLinCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_line.Code()); }
private void btnWhlCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_whole.Code()); }
private void btnAbsCod_Click(object sender, EventArgs e) { ShowCode.ShowCodeDialog(_absEffect); }