예제 #1
0
        //Initialize important Variables
        private void Initialize()
        {
            _dir = FileIO.SaveImagesPath;
            if (string.IsNullOrWhiteSpace(_dir))
            {
                _dir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "ImgurSniper");
            }

            if (!Directory.Exists(_dir))
            {
                Directory.CreateDirectory(_dir);
            }

            _imgur = new ImgurIO();
        }
예제 #2
0
 //Initialize important Variables
 private void Initialize()
 {
     _dir   = FileIO.SaveImagesPath;
     _imgur = new ImgurIO();
 }