public ResolutionInputBox(avsW p,string r)
        {
            InitializeComponent();
            padre = p;
            resizer = r;

            this.Text = r;
            this.Disposed += new EventHandler(ResolutionInputBox_Disposed);

            this.MaximumSize = this.Size;
            this.MinimumSize = this.Size;

            ancho.TextChanged += new EventHandler(ancho_TextChanged);
            alto.TextChanged += new EventHandler(alto_TextChanged);
            aspect.SelectedIndexChanged += new EventHandler(aspect_SelectedIndexChanged);
            mod16.CheckedChanged += new EventHandler(mod16_CheckedChanged);
        }
Exemple #2
0
        public cropW(avsW aW, AviSynthClip clip)
        {
            InitializeComponent();
            this.aW = aW;
            this.clip = clip;

            this.Disposed += new EventHandler(cropW_Disposed);

            VideoBox.MouseDown += new MouseEventHandler(VideoBox_MouseDown);
            VideoBox.MouseUp += new MouseEventHandler(VideoBox_MouseUp);
            VideoBox.MouseMove += new MouseEventHandler(VideoBox_MouseMove);

            Izquierda.TextChanged += new EventHandler(TxtChange);
            Derecha.TextChanged += new EventHandler(TxtChange);
            Arriba.TextChanged += new EventHandler(TxtChange);
            Abajo.TextChanged += new EventHandler(TxtChange);

            FrameActual.KeyPress += new KeyPressEventHandler(FrameActual_KeyPress);
        }
Exemple #3
0
        public mainW(string[] args)
            : this()
        {
            InvokedFromCommandline = true;

            if (args[0].Equals("-new", StringComparison.InvariantCultureIgnoreCase))
            {
                CommandLineNewFile = true;
                return;
            }

            FileInfo f = new FileInfo(args[0]);

            switch (f.Extension.ToLower())
            {
                case ".ass":
                case ".ssa":
                case ".srt":
                case ".txt":

                    openFile = args[0];

                    chgCaption(openFile);
                    loadFileNoParms();
                    break;

                case ".avs":
                case ".avsi":

                    try
                    {
                        avsW avs0rz = new avsW(this, args[0]);
                        avs0rz.ShowDialog();
                        //avs0rz.Focus();
                        //this.Enabled = false;
                        //this.WindowState = FormWindowState.Minimized;
                    }
                    catch { errorMsg("Error cargando el archivo '" + args[0] + "'"); }

                    break;

                default:
                    errorMsg("Formato de archivo no reconocido.");
                    break;
            }
        }
Exemple #4
0
 private void AVSEditor()
 {
     avsW a = new avsW(this);
     a.ShowDialog();
 }