Пример #1
0
 /// <summary>
 /// Opens the window with intent of creating a new request
 /// </summary>
 /// <param name="DB">The Database containing the equipment and parts lists</param>
 public RequestForm(Database DB)
 {
     this.DB     = DB;
     workRequest = new WorkRequest();
     equipment   = new Equipment();
     launchType  = RequestFormLaunchType.New;
     Setup();
 }
Пример #2
0
 /// <summary>
 /// Opens the window with intent of editting an existing request
 /// </summary>
 /// <param name="DB">The Database containing the equipment and parts lists</param>
 /// <param name="workRequest">The work request to be edited</param>
 public RequestForm(Database DB, WorkRequest workRequest)
 {
     this.DB          = DB;
     this.workRequest = workRequest;
     equipment        = workRequest.Equipment;
     launchType       = RequestFormLaunchType.Edit;
     Setup();
 }