Exemple #1
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 #2
0
 private void AVSEditor()
 {
     avsW a = new avsW(this);
     a.ShowDialog();
 }