public FormServiceRequestsWindow(RequestRecordCalledOff rec, RequestWindowPuropse mode, Form parMain, ServiceRequests servRequ) { this.parentMainWin = parMain; InitializeComponent(); requestController = new ServiceRequestsWinController(rec, mode, servRequ, this); this.Show(); parentMainWin.Hide(); }
public ServiceRequestsWinController(RequestRecordCalledOff rec, RequestWindowPuropse mode, ServiceRequests servReq, Form parentReq) { serviceRequests = servReq; this.requestWindow = parentReq; this.purposeOfTheWindow = mode; catchTheControls(); adjustCancelledRecFields(rec); }
/// <summary> /// fills up the content of the cancelled rccord /// </summary> /// <param name="rec">cancelled record</param> private void fillUpCancelledFields(RequestRecordCalledOff rec) { textBoxName.Text = rec.userKeroNev; textBoxArea.Text = rec.userTerulet; textBoxStartDate.Text = rec.keresDatum; textBoxAmount.Text = Convert.ToString(rec.keresMennyiseg); comboBoxProducts.Text = rec.termekNev; textBoxPlacing.Visible = false; labelPlacing.Visible = false; textBoxSubcontr.Text = rec.termekBeszall; infoLabel.Text = "Lemondott kérés"; }
/// <summary> /// adjust the window-view of the window case of cancelled record is coming /// </summary> /// <param name="rec">cancelled record</param> private void adjustCancelledRecFields(RequestRecordCalledOff rec) { fillUpCancelledFields(rec); }
/// <summary> /// adjust the window-view of the window case of cancelled record is coming /// </summary> /// <param name="rec">cancelled record</param> private void adjustCancelledRecFields(RequestRecordCalledOff rec) { fillUpCancelledFields(rec); adjustReadOnlyCase(); buttonOk.Visible = false; }