/// <summary> /// 設定更新 /// </summary> private void updateSettings() { SettingData setting = SettingData.GetInstance(); DoubleText doubleText = null; // ロボットの縦 doubleText = (DoubleText)pnlSetting.Controls[0]; doubleText.Value = setting.RobotSize.Vertical; // ロボットの横 doubleText = (DoubleText)pnlSetting.Controls[1]; doubleText.Value = setting.RobotSize.Horizontal; // 畑の縦 doubleText = (DoubleText)pnlSetting.Controls[2]; doubleText.Value = setting.FarmSize.Vertical; // 畑の横 doubleText = (DoubleText)pnlSetting.Controls[3]; doubleText.Value = setting.FarmSize.Horizontal; // 草刈り開始時刻 usrKusakariStart.DayOfWeek = (int)setting.KusakariStart.DayOfWeek; usrKusakariStart.Hour = setting.KusakariStart.Hour; usrKusakariStart.Minute = setting.KusakariStart.Minulte; // 夜警開始時刻 usrYakeiStart.DayOfWeek = (int)setting.YakeiStart.DayOfWeek; usrYakeiStart.Hour = setting.YakeiStart.Hour; usrYakeiStart.Minute = setting.YakeiStart.Minulte; // 動作完了判定閾値 FloatText floatText = (FloatText)pnlSetting.Controls[4]; floatText.Value = setting.MoveEndRate * 100; // エリアマップ生成 AreaMap areaMap = AreaMap.GetInstance(); areaMap.Allocate(setting.MapLength, setting.MapWidth); // 動作マップ生成 MoveMap moveMap = MoveMap.GetInstance(); moveMap.Allocate(setting.MapLength, setting.MapWidth); }