Example #1
0
        public void addTaskBefore(string message, string autherID, string autherName, string auAd, string src, string srcAdd, CCOutputInterface outer)
        {
            YomiageTask ntask = new YomiageTask(message, autherID, autherName, auAd, outer, src, srcAdd, lastQueueCode++);

            ntask.updateListItem();
            queue.Enqueue(ntask);

            if (taskListv.InvokeRequired)
            {
                taskListv.Invoke(new addingTaskDelegate(addingTask), ntask.listviewlinkitem);
            }
            else
            {
                taskListv.Items.Add(ntask.listviewlinkitem);
            }
        }
Example #2
0
        public void addTask(string message, string autherID, string autherName, string autherAddinfo, CCInputInterface adder, string adderAddinfo)
        {
            CCOutputInterface def = null;


            if (outputers.Count > 0)
            {
                def = outputers[0];
            }
            string srcName = "";

            if (adder != null)
            {
                srcName = adder.getPluginName();
            }

            YomiageTask ntask = new YomiageTask(message, autherID, autherName, autherAddinfo, def, srcName, adderAddinfo, lastQueueCode++);

            foreach (CCTaskControllInterface e in taskcontrollers)
            {
                e.TaskCheck(ntask, false);
            }

            ntask.updateListItem();
            queue.Enqueue(ntask);

            if (taskListv.InvokeRequired)
            {
                taskListv.Invoke(new addingTaskDelegate(addingTask), ntask.listviewlinkitem);
            }
            else
            {
                taskListv.Items.Add(ntask.listviewlinkitem);
            }

            afterStackExcute();
            //taskListv.Items.Add(ntask.listviewlinkitem);
        }