private void init()
        {
            var lv = (args.Length == 0) ? null : util.getRegGroup(args[0], "(lv\\d+(,\\d+)*)");

            util.setLog(config, lv);

            if (args.Length > 0)
            {
                var ar = new ArgReader(args, config, this);
                ar.read();
                if (ar.isConcatMode)
                {
                    urlText.Text = string.Join("|", args);
                    rec.rec();
                }
                else
                {
                    if (ar.lvid != null)
                    {
                        urlText.Text = ar.lvid;
                    }
                    config.argConfig = ar.argConfig;
                    rec.argTsConfig  = ar.tsConfig;
                    rec.isRecording  = true;
//					rec.setArgConfig(args);
                    if (ar.isPlayMode)
                    {
                        player.play();
                    }
                    else
                    {
                        rec.rec();
                    }
                }
                if (bool.Parse(config.get("Isminimized")))
                {
                    this.WindowState = FormWindowState.Minimized;
                }
            }
        }
        private void init()
        {
            if (args.Length > 0)
            {
                var ar = new ArgReader(args, config, this);
                ar.read();
                if (ar.isConcatMode)
                {
                    urlText.Text = string.Join("|", args);
                    rec.rec(false);
                }
                else
                {
                    if (ar.lvid != null)
                    {
                        urlText.Text = ar.lvid;
                    }
                    config.argConfig = ar.argConfig;
                    rec.argTsConfig  = ar.tsConfig;
                    rec.isRecording  = true;
//					rec.setArgConfig(args);
                    if (ar.isPlayMode)
                    {
                        player.play();
                    }
                    else
                    {
                        rec.rec(false);
                    }
                }
                if (bool.Parse(config.get("Isminimized")))
                {
                    this.WindowState = FormWindowState.Minimized;
                }
            }
        }
Пример #3
0
 private void recBtnAction(object sender, EventArgs e)
 {
     rec.isClickedRecBtn = true;
     rec.rec();
 }