public TJob(JOBTYPE _job, JobPool <JOBTYPE> _parent) { job = _job; parent = _parent; doneEvent = new ManualResetEvent(false); doneEvent.Reset(); }
public void AddJobType(JobTypeModelView jobtype) { using (SchedulerEntities db = new SchedulerEntities()) { JOBTYPE JT = new JOBTYPE(); JT.CreatedBy = HttpContext.Current.User.Identity.Name; JT.LastModifiedBy = HttpContext.Current.User.Identity.Name; JT.CreationDate = DateTime.Now; JT.ID = Guid.NewGuid(); JT.Duration = jobtype.Duration; JT.Unit = jobtype.Unit; JT.Rate = jobtype.Rate; JT.SkillRequired = jobtype.SkillRequired; JT.WorkersRequired = jobtype.WorkersRequired; JT.Tools = jobtype.Tools; JT.ToolCost = jobtype.ToolsCost; JT.FacilitiesRequired = jobtype.FacilitiesRequired; JT.FacilitiesCost = jobtype.FacilitiesCost; JT.Description = jobtype.Description; JT.JobPrice = jobtype.JobPrice; db.JOBTYPEs.Add(JT); db.SaveChanges(); } }
private void mRBtnMulti_CheckedChanged(object sender, EventArgs e) { this.mPanelMulti.Visible = true; this.mLblTotalFile.Text = "0"; this.mLblCompleteFile.Text = "0"; this.mJobType = JOBTYPE.JOBTYPE_MULTI; this.mListBoxFile.SelectionMode = SelectionMode.MultiExtended; }
public UDPSocket(JOBTYPE jobtype, string ipAddress, int port) { if (jobtype == JOBTYPE.RECVDTA) { udp = new UdpClient(port); } else { udp = new UdpClient(); } ipep = new IPEndPoint(IPAddress.Parse(ipAddress), port); }
private void mRBtnSingle_CheckedChanged(object sender, EventArgs e) { this.mPanelMulti.Visible = false; this.mJobType = JOBTYPE.JOBTYPE_SINGLE; this.mListBoxFile.SelectionMode = SelectionMode.One; }