예제 #1
0
        /// <summary>
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            _coreSettings = new CoreSettings(Properties.Settings.Default);
            var themeManagerHelper = new ThemeManagerHelper();

            _style = new MetroStyle(this, Accent, ThemeSwitch, _coreSettings, themeManagerHelper);
            _style.Load(true);
            var linkerTime = Assembly.GetExecutingAssembly().GetLinkerTime();

            LinkerTime.Content = linkerTime.ToString(CultureInfo.InvariantCulture);
            Load();
        }
 public MainWindow()
 {
     ISettings coreSettings = new CoreSettings();
     InitializeComponent();
     _style = new MetroStyle(this, Accent, ThemeSwitch, coreSettings);
     _style.Load(true);
     var activeDevices = new ActiveDevices();
     _rotateDisplay = new RotateDisplay();
     _rotateButtonAndCanvas = new RotateButtonAndCanvas();
     BuildDeviceButtons(activeDevices);
     var appSettings = new ApplicationSettings(this, new NotifyIcon(), activeDevices, _rotateDisplay, _rotateButtonAndCanvas);
     appSettings.Run();
     var linkerTime = Assembly.GetExecutingAssembly().GetLinkerTime();
     LinkerTime.Content = linkerTime.ToString(CultureInfo.InvariantCulture);
     _overrideProtection = 1;
 }
예제 #3
0
        // ReSharper restore PrivateFieldCanBeConvertedToLocalVariable

        /// <summary>
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            _hashAlgorithmDictionary = new HashAlgorithmDictionary();
            _folderBrowser           = new ExplorerFolderBrowser();
            _applicationSettings     = new ApplicationSettings();
            _basics             = new ApplicationBasics(_folderBrowser, _applicationSettings);
            _dialogService      = new DialogService(this);
            TaskbarItemInfo     = new TaskbarItemInfo();
            _themeManagerHelper = new ThemeManagerHelper();
            _coreSettings       = new CoreSettings(Properties.Settings.Default);
            _style = new MetroStyle(this, Accent, ThemeSwitch, _coreSettings, _themeManagerHelper);

            _style.Load(true);

            var linkerTime = Assembly.GetExecutingAssembly().GetLinkerTime();

            LinkerTime.Content = linkerTime.ToString(CultureInfo.InvariantCulture);
            Load();
        }
예제 #4
0
        /// <summary>
        /// </summary>
        public MainWindow()
        {
            _coreSettings = new CoreSettings();
            InitializeComponent();
            _style = new MetroStyle(this, Accent, ThemeSwitch, _coreSettings);
            _style.Load(true);
            var linkerTime = Assembly.GetExecutingAssembly().GetLinkerTime();
            LinkerTime.Content = linkerTime.ToString(CultureInfo.InvariantCulture);
            WindowState = WindowState.Minimized;
            _app = (App) Application.Current;
            var multiThreadingHelper = new MultiThreadingHelper();
            var filePath = new FilePath(multiThreadingHelper);
            _worker = new Worker(filePath, _app);

            using (var backgroundWorker = new BackgroundWorker())
            {
                backgroundWorker.DoWork += (sender, args) => Load();
                backgroundWorker.WorkerReportsProgress = true;
                backgroundWorker.RunWorkerCompleted += BackgroundWorkerRunWorkerCompleted;
                backgroundWorker.RunWorkerAsync();
            }
            _overrideProtection = 1;
        }