Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /RsiEditor/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations) (download)
Sun Jul 26 02:18:54 2009 UTC (14 years, 8 months ago) by pex
File size: 2770 byte(s)


1 pex 1 using System;
2     using System.Collections.Generic;
3     using System.Windows.Forms;
4     using RipSync;
5    
6     namespace RipSync.RsiEditor
7     {
8     static class Program
9     {
10     /// <summary>
11     /// アプリケーションのメイン エントリ ポイントです。
12     /// </summary>
13     [STAThread]
14     static void Main()
15     {
16     if (System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length > 1)
17     {
18     MessageBox.Show("既に起動しています。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
19     return;
20     }
21    
22     Application.EnableVisualStyles();
23     Application.SetCompatibleTextRenderingDefault(false);
24    
25     const string logName = "Main";
26    
27     //各種インスタンスの生成を行う。
28     Logger logger = Logger.GetInstance();
29     logger.Open();
30     logger.Write(LogLevel.Info, logName, "Start RipSync.RsiEditor");
31    
32     ////コンフィグを読み込む
33     //Managers.ApplicationManager.GetInstance().LoadConfig();
34     //logger.Write(LogLevel.Info, logName, "AppManager initialized.");
35    
36     //Plugins.PluginLoader loader = Plugins.PluginLoader.GetInstance();
37     //if (loader.LoadPlugins())
38     //{
39     // logger.Write(LogLevel.Info, logName, string.Format("Plugins are loaded. types:{0}", loader.Types.Count));
40     //}
41    
42     ////プラグイン設定読み込み
43     //IList<Plugins.Plugin<Plugins.Bases.PluginBase>> plugins = loader.GetPlugins<Plugins.Bases.PluginBase>();
44     //foreach (Plugins.Plugin<Plugins.Bases.PluginBase> plugin in plugins)
45     //{
46     // loader.LoadConfig(plugin);
47     //}
48    
49     ////コマンドライン引数処理
50     //string[] ss = System.Environment.GetCommandLineArgs();
51     //if (ss.Length >= 2)
52     //{
53     // Managers.ApplicationManager.GetInstance().Load(ss[1]);
54     // Managers.ApplicationManager.GetInstance().Refresh();
55     //}
56    
57     Application.Run(new frmRsiEditor());
58    
59     //終了処理
60    
61     ////アプリケーションコンフィグ保存
62     //Managers.ApplicationManager.GetInstance().SaveConfig();
63    
64     ////プラグイン設定保存
65     //foreach (Plugins.Plugin<Plugins.Bases.PluginBase> plugin in plugins)
66     //{
67     // loader.SaveConfig(plugin);
68     //}
69    
70     logger.Write(LogLevel.Info, logName, "End RipSync.RsiEditor");
71     logger.Close();
72     }
73     }
74     }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26