示例#1
0
        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();
 }
示例#3
0
 public WorkOnHold(ClientActions actions)
 {
     data = new HoldData(actions);
     InitializeComponent();
     lbl_name.Text = data.Client.FullName;
 }