Ejemplo n.º 1
0
        public void ShowEventDialog(EventInfo eventInfo)
        {
            var eventControl = new EventControl();

            eventControl.Initialize(eventInfo);
            WinFormPublic.ShowDialog(eventControl);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
    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());
    }
Ejemplo n.º 4
0
        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);
        }