private void AddImageToDatabase(String text)
        {
            String name = text;

            try
            {
                ImageSupporter.Save(ImageSupporter.Bitmap2BitmapImage(orginalBitmap), Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + "\\database\\" + name + ".png");
            }
            catch (Exception ex)
            {
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Boolean flaga = true;

            while (flaga)
            {
                Random random = new Random();
                int    i      = random.Next();

                if (!File.Exists(Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + "\\screens\\" + i + ".png"))
                {
                    ImageSupporter.Save((BitmapImage)obrazek.Source, Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + "\\screens\\" + i + ".png");
                    flaga = false;
                }
            }
        }