예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            this.Closing += WindowClosing;

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

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

            helper       = new InstallerHelper(_path, error_toast, success_toast, this);
            _imgurhelper = new ImgurLoginHelper(error_toast, success_toast);

            error_toast.Show("Loading...", TimeSpan.FromSeconds(2));
            Load();
        }
예제 #2
0
        //Constructor
        public MainWindow()
        {
            InitializeComponent();

            //Update Loading Indicator
            loadingDesc.Content = str.initializing;

            //Check for Commandline Arguments
            Arguments();

            //Create Documents\ImgurSniper Path
            if (!Directory.Exists(DocPath))
            {
                Directory.CreateDirectory(DocPath);
            }

            //Initialize Helpers
            Helper       = new InstallerHelper(Path, DocPath, error_toast, success_toast, this);
            _imgurhelper = new ImgurLoginHelper(error_toast, success_toast);

            //Load Config
            Loaded += delegate { Load(); };
        }