Пример #1
0
 private string newBFI( string strPathOnCD, string strNameOnCD, ArrayList al )
 {
     BurnFileInfo bfi = new BurnFileInfo(
         Global.GetTempFileName(),
         strPathOnCD,
         Global.skapaSäkertFilnamn( strNameOnCD ),
         false );
     al.Add( bfi );
     m_strAktuellFil = bfi.CDFullFileName;
     return bfi.LocalFullFileName;
 }
Пример #2
0
        private void cmdBurnDVD_Click( object sender, EventArgs e )
        {
            if (!checkOK())
                return;

            _skola.Verifierad = true;
            _skola.save(true);
            var alFiles = new List<BurnFileInfo>();
            foreach (var s in Directory.GetFiles(Global.Skola.HomePath))
            {
                var strFN = Path.GetFileName(s);
                var bfi = new BurnFileInfo(s, null, strFN, false);
                switch (Path.GetFileName(strFN).ToLower())
                {
                    case "!fotoorder.emf":
                        continue;
                    case "!order.plata":
                        bfi.OnAll = true;
                        break;
                }
                alFiles.Add(bfi);
            }
            Burn.BurnHelpers.theNewAndFunBurn(
                this.FindForm(),
                alFiles,
                "K",
                string.Format("{0}_{1}_K",
                              Global.Skola.OrderNr,
                              Global.Preferences.Fotografnummer));
        }
Пример #3
0
        public void burnComplete()
        {
            _skola = Global.Skola;

            if ( FBekräftaGruppordning.showDialog( null, _skola ) != DialogResult.OK )
                return;

            ArrayList alFiles = new ArrayList();
            Global.saveSchool( true );
            foreach ( string s in Directory.GetFiles(Global.Skola.HomePath) )
            {
                string strFN = Path.GetFileName(s);
                BurnFileInfo bfi = new BurnFileInfo( s, null, strFN, false );
                switch ( Path.GetFileName(strFN).ToLower() )
                {
                    case "!fotoorder.emf":
                        continue;
                    case "!skola.xml":
                        bfi.OnAll = true;
                        break;
                }
                alFiles.Add( bfi );
            }
            theNewAndFunBurn( alFiles, "K", string.Format("{0}_{1}_K", _skola.OrderNr, Global.FotografNummerEndast) );
        }