| File was renamed from Plugin.BurnIn/ManualDebugWindow.xaml.cs |
| | |
| | | using System.ComponentModel; |
| | | using System.IO; |
| | | using System.Windows; |
| | | using Util.SB; |
| | | |
| | | namespace Plugin.BurnIn |
| | | { |
| | |
| | | |
| | | private ManualDebug debug; |
| | | |
| | | public ManualDebugWindow(string seqPath, string modelPath) |
| | | public ManualDebugWindow(string seqPath, string modelPath, bool isMuilt) : this(seqPath, modelPath, isMuilt, null, 1) |
| | | { |
| | | } |
| | | |
| | | public ManualDebugWindow(string seqPath, string modelPath, bool isMuilt, SingleCell[] cells, int col) |
| | | { |
| | | DataContext = this; |
| | | InitializeComponent(); |
| | | debug = (ManualDebug)sb.Children[0]; |
| | | ReadBtns(); |
| | | if (!isMuilt) |
| | | { |
| | | debug.HideCells(true); |
| | | } |
| | | //List<BtnConfig> settings = new List<BtnConfig> { new BtnConfig { Title = "上电激活", Name = "Active" } }; |
| | | debug.seqPath = seqPath; |
| | | debug.modelPath = modelPath; |
| | | debug.CellGrid.Columns = col; |
| | | debug.CellResultGrid.Columns = col; |
| | | debug.RefreshGrid(cells); |
| | | } |
| | | |
| | | private string ovenName; |
| | |
| | | } |
| | | } |
| | | |
| | | private int cellIndex; |
| | | private int cellIndex = -1; |
| | | public int CellIndex |
| | | { |
| | | get => cellIndex; |
| | |
| | | } |
| | | } |
| | | |
| | | private int cellCount = 0; |
| | | public int CellCount |
| | | { |
| | | get => cellCount; |
| | | set |
| | | { |
| | | Set(ref cellCount, value); |
| | | } |
| | | } |
| | | |
| | | private void ReadBtns() |
| | | { |
| | | string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Settings.ini"); |