public void AddClientActions(ClientActions ca) { WorkOnHold work = new WorkOnHold(ca); // add to list WorkOnHoldLst.Add(work); // add to Controls this.Controls.Add(work); int i = WorkOnHoldLst.IndexOf(work); work.btn_activate.Click += new EventHandler(btn_activate_Click); work.Location = new Point(0, i * work.Height); work.Visible = true; work.Show(); work.Refresh(); }
public HoldData(ClientActions ca) { Client = ca.GetClient(); ElapsedTime = ca.GetElapsedTime(); StartTime = ca.GetStartTime(); Notes = ca.GetNotes(); WorkType = ca.GetTypeOfWork(); }
public WorkOnHold(ClientActions actions) { data = new HoldData(actions); InitializeComponent(); lbl_name.Text = data.Client.FullName; }