//──────────────────────────────────────── #endregion #region アクション //──────────────────────────────────────── /// <summary> /// フォームのロード時。 /// </summary> public void Load() { Log_Method pg_Method = new Log_MethodImpl(0); Log_Reports log_Reports_Load = new Log_ReportsImpl(pg_Method); pg_Method.BeginMethod(Info_Operating.Name_Library, this, "Load", log_Reports_Load); // // // タイトル { StringBuilder s = new StringBuilder(); s.Append("GamePad v"); s.Append(Application.ProductVersion); s.Append(" - Xenon Tools"); this.Form1.Text = s.ToString(); } // キー設定 { KeyconfigImpl keycnf; // キーコンフィグ読取 { XTo_KeyconfigImpl xToO = new XTo_KeyconfigImpl(); xToO.XTo( out keycnf, log_Reports_Load ); this.Input.Table_Humaninput_Keyconfig = keycnf.O_Table_Keycnf; } // キー設定(1P) if (keycnf.Dic_KeyCnf.ContainsKey(1)) { KeyconfigPadImpl keycnfPad = keycnf.Dic_KeyCnf[1]; { string sErrorMsg; this.Form1.UsercontrolPage2.Open(1, keycnfPad, out sErrorMsg); if ("" != sErrorMsg) { // エラー if (log_Reports_Load.CanCreateReport) { Log_RecordReports r = log_Reports_Load.BeginCreateReport(EnumReport.Error); r.SetTitle("▲エラー111!", pg_Method); r.Message = sErrorMsg; log_Reports_Load.EndCreateReport(); } goto gt_EndMethod; } } { string sErrorMsg; this.Form1.UsercontrolPage3.Open(1, keycnfPad, out sErrorMsg); if ("" != sErrorMsg) { // エラー if (log_Reports_Load.CanCreateReport) { Log_RecordReports r = log_Reports_Load.BeginCreateReport(EnumReport.Error); r.SetTitle("▲エラー112!", pg_Method); r.Message = sErrorMsg; log_Reports_Load.EndCreateReport(); } goto gt_EndMethod; } } } } // タイマー開始。 this.Form1.Pctmr1.Enabled = true; goto gt_EndMethod; // // gt_EndMethod: pg_Method.EndMethod(log_Reports_Load); log_Reports_Load.EndLogging(pg_Method); }
//──────────────────────────────────────── /// <summary> /// フォームのロード時。 /// </summary> public void Load() { Log_Method pg_Method = new Log_MethodImpl(0); Log_Reports log_Reports_Load = new Log_ReportsImpl(pg_Method); pg_Method.BeginMethod(Info_Operating.Name_Library, this, "Load",log_Reports_Load); // // // タイトル { StringBuilder s = new StringBuilder(); s.Append("GamePad v"); s.Append(Application.ProductVersion); s.Append(" - Xenon Tools"); this.Form1.Text = s.ToString(); } // キー設定 { KeyconfigImpl keycnf; // キーコンフィグ読取 { XTo_KeyconfigImpl xToO = new XTo_KeyconfigImpl(); xToO.XTo( out keycnf, log_Reports_Load ); this.Input.Table_Humaninput_Keyconfig = keycnf.O_Table_Keycnf; } // キー設定(1P) if (keycnf.Dic_KeyCnf.ContainsKey(1)) { KeyconfigPadImpl keycnfPad = keycnf.Dic_KeyCnf[1]; { string sErrorMsg; this.Form1.UsercontrolPage2.Open(1, keycnfPad, out sErrorMsg); if ("" != sErrorMsg) { // エラー if (log_Reports_Load.CanCreateReport) { Log_RecordReports r = log_Reports_Load.BeginCreateReport(EnumReport.Error); r.SetTitle("▲エラー111!", pg_Method); r.Message = sErrorMsg; log_Reports_Load.EndCreateReport(); } goto gt_EndMethod; } } { string sErrorMsg; this.Form1.UsercontrolPage3.Open(1, keycnfPad, out sErrorMsg); if ("" != sErrorMsg) { // エラー if (log_Reports_Load.CanCreateReport) { Log_RecordReports r = log_Reports_Load.BeginCreateReport(EnumReport.Error); r.SetTitle("▲エラー112!", pg_Method); r.Message = sErrorMsg; log_Reports_Load.EndCreateReport(); } goto gt_EndMethod; } } } } // タイマー開始。 this.Form1.Pctmr1.Enabled = true; goto gt_EndMethod; // // gt_EndMethod: pg_Method.EndMethod(log_Reports_Load); log_Reports_Load.EndLogging(pg_Method); }