public frmMain() { Program.Styler = new MetroStyleManager(); Program.Styler.Style = Settings.Default.Style; Program.Styler.Theme = Settings.Default.Theme; StyleManager = Program.Styler; InitializeComponent(); SetStylerToControls(); if (string.IsNullOrEmpty(Settings.Default.PosterPath)) { Settings.Default.PosterPath = AppDomain.CurrentDomain.BaseDirectory + @"Posters\w185"; Settings.Default.Save(); } if (string.IsNullOrEmpty(Settings.Default.BaseDownloadPath)) { Settings.Default.BaseDownloadPath = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "SeriesManager", "DowloadedSeries"); Settings.Default.Save(); } _repo = TvShowRepo.Repo; Frm = this; _notificationManager = new NotificationManager(this); }
public NotificationManager(frmMain owner) { _owner = owner; }