Exemple #1
0
        private static void Handle_SMAPINotFound()
        {
            string text;

            if (File.Exists(SDVEXE))
            {
                text = helper.GetString("L_WARN_SMAPINOTFOUND");
            }
            else
            {
                text = helper.GetString("L_WARN_GAMENOTFOUND");
            }
            logger.Log(text, ConsoleLogger.LogLevel.Warn);
            MainWindow window = new MainWindow();

            window.Closed        += new EventHandler((sender, e) => { Application.Exit(); });
            window.Notice.Content = text;
            window.Show(); window.Activate();
            Application.Run();
        }
Exemple #2
0
 private void onMouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
 {
     Desc.Content = helper.GetString("L_" + (sender as Button).Name + "_Desc");
 }
Exemple #3
0
 internal void LogTrans(string resxPath, LogLevel level = LogLevel.Info, params string[] args)
 {
     Log(helper.GetString(resxPath, args), level);
 }