Exemplo n.º 1
0
        private void btnSngCode_Click(object sender, EventArgs e)
        {
            string code = "";

            if (_fg)
            {
                code += _sngMath.Code() + "\n";
            }
            code += _sngEffect.Code();
            ShowCode.ShowCodeDialog(code);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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); }
 }
Exemplo n.º 6
0
 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);
     }
 }
Exemplo n.º 7
0
 private void btnTblCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_tblEffect);
 }
Exemplo n.º 8
0
 private void btnIndCod_Click(object sender, EventArgs e)
 {
     UpdateIndividual();
     ShowCode.ShowCodeDialog(_indEffect);
 }
Exemplo n.º 9
0
 private void btnSmpCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(EffectClasses.BrightnessHDMA.MultiCode(_smpEffectTop, _smpEffectBtm));
 }
Exemplo n.º 10
0
 private void btnImgCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_imgMath, _imgEffect);
 }
Exemplo n.º 11
0
 private void btnVerCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_yEffect);
 }
Exemplo n.º 12
0
 private void btnWinCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_windowingMath);
 }
Exemplo n.º 13
0
 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); }
 }
Exemplo n.º 14
0
 private void btnLinCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_line.Code());
 }
Exemplo n.º 15
0
 private void btnWhlCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_whole.Code());
 }
Exemplo n.º 16
0
 private void btnAbsCod_Click(object sender, EventArgs e)
 {
     ShowCode.ShowCodeDialog(_absEffect);
 }