compile ok .ㅠㅠ

This commit is contained in:
chi
2025-05-26 10:21:17 +09:00
parent 57dc6de740
commit 77a6aefb44
27 changed files with 780 additions and 204 deletions

View File

@@ -10,13 +10,12 @@ using System.Windows.Forms;
using Project.StateMachine;
using COMM;
using AR;
using Microsoft.IdentityModel.Tokens;
namespace Project.ViewForm
{
public partial class fAuto : Form
{
AGVMapControl.MapControl mapctl;
AGVControl.MapControl mapctl;
public fAuto()
{
InitializeComponent();
@@ -27,7 +26,7 @@ namespace Project.ViewForm
this.ctlAuto1.Scean = CtlAuto.eScean.Progress;
else
this.ctlAuto1.Scean = CtlAuto.eScean.Normal;
this.mapctl = new AGVMapControl.MapControl();
this.mapctl = new AGVControl.MapControl();
this.mapctl.Dock = DockStyle.Fill;
this.mapctl.Visible = true;
this.mapctl.Font = this.panel1.Font;
@@ -43,8 +42,28 @@ namespace Project.ViewForm
this.timer1.Start();
PUB.AGV.DataReceive += AGV_DataReceive;
var fn = new System.IO.FileInfo( AR.UTIL.CurrentPath+ "\\sample.route");
if (fn.Exists) this.mapctl.LoadFromFile(fn.FullName);
//auto load
var path = new System.IO.DirectoryInfo("route");
if (path.Exists == false) path.Create();
var files = path.GetFiles("*.route");
var fn = string.Empty;
if (files.Any() == false)
{
fn = AR.UTIL.MakePath("sample.route");
}
else if (files.Count() == 1)
{
fn = files.First().FullName;
}
if(fn.isEmpty()==false)
{
var fi = new System.IO.FileInfo(AR.UTIL.CurrentPath + "\\sample.route");
if (fi.Exists)
{
PUB.log.Add($"autoload : {fi.FullName}");
this.mapctl.LoadFromFile(fi.FullName);
}
}
}
private void AGV_DataReceive(object sender, arDev.Narumi.DataEventArgs e)
{