|
|
@ -33,6 +33,8 @@ using static System.Windows.Forms.VisualStyles.VisualStyleElement; |
|
|
|
using SunlightCentralizedControlManagement_SCCM_.ViewModel; |
|
|
|
using LiveChartsCore.SkiaSharpView.WPF; |
|
|
|
using System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder; |
|
|
|
using nGantt.GanttChart; |
|
|
|
using nGantt; |
|
|
|
|
|
|
|
|
|
|
|
namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
@ -57,10 +59,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
|
List<string> qw = MainWindowViewModel.Machines.AsEnumerable().Select(row => row.Field<string>("name")).ToList();//转换列名为机台
|
|
|
|
int asd = qw.Count(); |
|
|
|
|
|
|
|
var rowgroup1 = GanttChart.CreateGanttRowGroup("HeaderdGanttRowGroup"); |
|
|
|
var row1 = GanttChart.CreateGanttRow(rowgroup1, "GanttRow 1"); |
|
|
|
GanttChart.AddGanttTask(row1, new GanttTask() { Start = DateTime.Parse("2012-02-01"), End = DateTime.Parse("2012-03-01"), Name = "GanttRow 1:GanttTask 1", TaskProgressVisibility = System.Windows.Visibility.Hidden }); |
|
|
|
GanttChart.AddGanttTask(row1, new GanttTask() { Start = DateTime.Parse("2012-03-05"), End = DateTime.Parse("2012-05-01"), Name = "GanttRow 1:GanttTask 2" }); |
|
|
|
GanttChart.AddGanttTask(row1, new GanttTask() { Start = DateTime.Parse("2012-06-01"), End = DateTime.Parse("2012-06-15"), Name = "GanttRow 1:GanttTask 3" }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void ListViewItem_Quit(object sender, System.Windows.Input.MouseButtonEventArgs e)//退出事件
|
|
|
|
{ |
|
|
|
|
|
|
|