Пример #1
0
        private void btnSngCode_Click(object sender, EventArgs e)
        {
            string code = "";

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