福亮度转换
This commit is contained in:
@ -8,6 +8,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
|
||||
namespace mainProgram
|
||||
{
|
||||
@ -18,7 +19,7 @@ namespace mainProgram
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private ProjectManager mProjectManager;//保存打开的/新建的工程对象
|
||||
private ProjectManager mProjectManager = null;//保存打开的/新建的工程对象
|
||||
|
||||
public void RecieveProjectManager(ProjectManager value)
|
||||
{
|
||||
@ -47,53 +48,25 @@ namespace mainProgram
|
||||
|
||||
private void RadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
//SpectralDataReaderWriter xx = new SpectralDataReaderWriter(@"D:\Desktop\0easySifProject\1raw\2021_12_16\beijing_17_57_44.csv");
|
||||
if (mProjectManager is null)
|
||||
{
|
||||
MessageBox.Show(this, "请先打开工程!", "提示");
|
||||
return;
|
||||
}
|
||||
|
||||
//SpectralData tmp1 = xx.GetSpectral(1);
|
||||
//for (int ii = 0; ii < tmp1.spectralDataLength; ii++)
|
||||
//{
|
||||
// tmp1.spectral[ii] = 1;
|
||||
//}
|
||||
//xx.UpdateSpectral(1, tmp1);
|
||||
RadCorrectionWindow w = new RadCorrectionWindow();
|
||||
//w.TransferEvent += RecieveProjectManager;
|
||||
|
||||
//SpectralData tmp3 = xx.GetSpectral(3);
|
||||
//for (int ii = 0; ii < tmp3.spectralDataLength; ii++)
|
||||
//{
|
||||
// tmp3.spectral[ii] = 3;
|
||||
//}
|
||||
//xx.UpdateSpectral(3, tmp3);
|
||||
//w.Show();//不阻塞
|
||||
w.ShowDialog();//阻塞
|
||||
|
||||
//SpectralData tmp7 = xx.GetSpectral(7);
|
||||
//for (int ii = 0; ii < tmp7.spectralDataLength; ii++)
|
||||
//{
|
||||
// tmp7.spectral[ii] = 7;
|
||||
//}
|
||||
//xx.UpdateSpectral(7, tmp7);
|
||||
//mProjectManager.Rad();
|
||||
|
||||
//SpectralData tmp10 = xx.GetSpectral(10);
|
||||
//for (int ii = 0; ii < tmp10.spectralDataLength; ii++)
|
||||
//{
|
||||
// tmp10.spectral[ii] = 10;
|
||||
//}
|
||||
//xx.UpdateSpectral(10, tmp10);
|
||||
Thread t1 = new Thread(new ThreadStart(mProjectManager.Rad));
|
||||
t1.Start();
|
||||
|
||||
//xx.SaveCSV(@"D:\Desktop\0easySifProject\1raw\2021_12_16\beijing_17_57_44__.csv");
|
||||
|
||||
|
||||
|
||||
//SpectralDataReaderWriter xx = new SpectralDataReaderWriter(@"D:\Desktop\0easySifProject\1raw\2021_12_13\beijing_15_53_16.csv");
|
||||
|
||||
//SpectralData tmp1 = xx.GetSpectral(1);
|
||||
//for (int ii = 0; ii < tmp1.spectralDataLength; ii++)
|
||||
//{
|
||||
// tmp1.spectral[ii] = 1;
|
||||
//}
|
||||
//xx.UpdateSpectral(1, tmp1);
|
||||
|
||||
//xx.SaveCSV(@"D:\Desktop\0easySifProject\1raw\2021_12_13\beijing_15_53_16__.csv");
|
||||
|
||||
mProjectManager.Rad();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user