public void OnFirstInitialized()
{
string[] args = Environment.GetCommandLineArgs();
if (args.Count() == 2)
{
var iEditor = _pluginLoader.GetEditor();
_fileService.OpenFile(iEditor, args[1]);
}
else
{
string filePath = Properties.Settings.Default.LastSavedFilePath;
if (filePath == "Default")
{
filePath = "Novels\\マニュアル.kieAow";
}
if (!Path.IsPathRooted(filePath))
{
Assembly myAssembly = Assembly.GetEntryAssembly();
string path = myAssembly.Location;
filePath = Path.Combine(Path.GetDirectoryName(path), filePath);
}
if (File.Exists(filePath))
{
var iEditor = _pluginLoader.GetEditor();
_fileService.OpenFile(iEditor, filePath);
}
}
FileBoxModelManager.Load();
}