Exemple #1
0
 /// <summary>
 ///     全局初始化
 /// </summary>
 /// <param name="shandle">显示区域的handle</param>
 /// <param name="ssize">显示区域的大小</param>
 public static void Init(IntPtr shandle, Size ssize)
 {
     _player = new Player(shandle, ssize);
     NotifySystem.Showtip(1000, LanguageManager.Get("OSUplayer"), LanguageManager.Get("Core_Init_Text"));
     Getpath();
     new Thread(Selfupdate.check_update).Start();
     Initset();
     _renderThread = new Thread(Render);
     _renderThread.Start();
 }
Exemple #2
0
 /// <summary>
 /// 全局初始化
 /// </summary>
 /// <param name="Shandle">显示区域的handle</param>
 /// <param name="Ssize">显示区域的大小</param>
 public static void init(IntPtr Shandle, Size Ssize)
 {
     player = new Player(Shandle, Ssize);
     notifyIcon1 = new NotifyIcon();
     notifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
     notifyIcon1.BalloonTipTitle = "OSUplayer";
     notifyIcon1.BalloonTipText = "正在初始化...";
     notifyIcon1.Icon = ((System.Drawing.Icon)(Resources.icon));
     notifyIcon1.Text = "OSUplayer";
     notifyIcon1.Visible = true;
     notifyIcon1.ShowBalloonTip(1000);
     Getpath();
     LoadPreference();
     new Thread(new ThreadStart(Uilties.Selfupdate.check_update)).Start();
     initset();
 }
Exemple #3
0
 /// <summary>
 /// 全局初始化
 /// </summary>
 /// <param name="Shandle">显示区域的handle</param>
 /// <param name="Ssize">显示区域的大小</param>
 public static void init(IntPtr Shandle, Size Ssize)
 {
     player = new Player(Shandle, Ssize);
     NotifySystem.Showtip(1000, "OSUplayer", "正在初始化...", System.Windows.Forms.ToolTipIcon.Info);
     Getpath();
     LoadPreference();
     new Thread(Selfupdate.check_update).Start();
     Initset();
 }