Example #1
0
        public MainWindow()
        {
            InitializeComponent();
            scrollUpdateLog.ScrollToEnd();
            DataContext           = workingResources;
            imgOsuLogo.Opacity    = 0;
            IconLib               = new GameIcon(workingResources.BaseDir);
            pgbSong.DataContext   = workingResources;
            MusicIcon.DataContext = IconLib;
            GetSongName();
            GetSkinInfo();
            Task task = new Task(() =>
            {
                Thread.Sleep(3000);
                Dispatcher.Invoke(FadeInBlackBackGround);
            });
            Task task2 = new Task(() =>
            {
                Thread.Sleep(6000);
                try { Dispatcher.Invoke(MainOsu); }
                catch { }
            });

            task.Start();
            SongControlPanel.DataContext = IconLib;
            task2.Start();
        }
Example #2
0
 /// <summary>
 /// Use a custom path to access resources
 /// </summary>
 /// <param name="defaultPath">A reources path</param>
 public Cons(string defaultPath, GameIcon icons)
 {
     icons   = Icons;
     BaseDir = defaultPath;
     SetProperty();
 }
Example #3
0
 /// <summary>
 /// Use the default application path to access resource
 /// </summary>
 public Cons()
 {
     BaseDir = AppDomain.CurrentDomain.BaseDirectory;
     Icons   = new GameIcon(BaseDir);
     SetProperty();
 }