Ejemplo n.º 1
0
        public static void Init()
        {
            screenForm = new ScreenForm();

            screenForm.FormClosing += (sender, e) =>
            {
                Busy = false;
                GC.Collect();
            };

            saveImageDialog = new SaveFileDialog
            {
                AddExtension = true,
                DefaultExt   = "png",
                SupportMultiDottedExtensions = true,
                Filter           = "PNG Image|*.png|JPEG Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif",
                InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
            };

            saveRecordDialog = new SaveFileDialog
            {
                AddExtension = true,
                DefaultExt   = "gif",
                SupportMultiDottedExtensions = true,
                Filter           = "Gif Image|*.gif",
                InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
            };
        }
Ejemplo n.º 2
0
        public static void Init()
        {
            screenForm = new ScreenForm();

            screenForm.FormClosing += (sender, e) =>
            {
                Busy = false;
                GC.Collect();
            };
        }