Beispiel #1
0
        static void Main(string[] args)
        {
            Uploader    uploader        = new Uploader();
            Nachrichten benachrichtiger = new Nachrichten();

            uploader.VideoUploaded += benachrichtiger.VideoUploaded;

            uploader.VideoUpload();

            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            // create objects from classes
            Uploader    videoUploader   = new Uploader();
            Nachrichten benachrichtiger = new Nachrichten();

            // event abonnieren lassen
            // VideoUploaded Event wird abnoniert von nachrichten klasse Methode
            videoUploader.VideoUploaded += benachrichtiger.VideoUploaded;

            videoUploader.VideoUpload();
            Console.ReadKey();
        }