private void MainForm_Load(object sender, EventArgs e) { if (Runtime.DesignMode) { return; } _capture = new Capture(Handle); _goodbyedpiManager = new Manager(); GeneralSetting.Load(); LayoutSetting.Load(); CaptureSetting.Load(); BuildLayout(); // 업데이트 tmp 파일 삭제 var di = new DirectoryInfo(Application.StartupPath); var fis = di.GetFiles("*.update.tmp"); foreach (var fi in fis) { string filePath = fi.FullName.Replace(".update.tmp", ""); fi.CopyTo(filePath, true); fi.Delete(); } }