public void ShowEventDialog(EventInfo eventInfo) { var eventControl = new EventControl(); eventControl.Initialize(eventInfo); WinFormPublic.ShowDialog(eventControl); }
private void ButtonTestException_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { UIPublic.ShowWaitingForm(); var eventInfo = new ExceptionEventInfo(new Exception("这是测试消息") , true , true).AddEventData("测试", "测试"); var eventControl = new EventControl(); eventControl.Initialize(eventInfo); UIPublic.CloseWaitingForm(); WinFormPublic.ShowDialog(eventControl); }
void OnEnable() { if (_resource != null && _week != null) { GetWeek.Initialize(); GetResource.Initialize(); _eventControl.Initialize(); } else { throw new NullReferenceException($"_resource, _week NullRerenceException"); } StartCoroutine(GetWeek.EWeekProcess()); StartCoroutine(GetResource.EResourceProcess()); }
private void ButtonTestInformation_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { EventControl eventControl = null; UIPublic.ShowWaitingForm(); var eventInfo = new EventInfo(EventInfo.EventType_Information , "这是测试消息" , true , true); eventControl = new EventControl(); eventControl.Initialize(eventInfo); UIPublic.CloseWaitingForm(); WinFormPublic.ShowDialog(eventControl); }