예제 #1
0
        private void button15_Click(object sender, EventArgs e)
        {
            progressBar4.Visible = true;
            progressBar4.Enabled = true;

            button15.Enabled = false;
            listView3.Enabled = false;

            work_papers wp = new work_papers();
            wp.mode = 2;
            listView3.Items.Clear();
            migrantWorker.RunWorkerAsync(wp);
        }
예제 #2
0
        private void button16_Click(object sender, EventArgs e)
        {
            foreach (Control c in tabPage13.Controls)
            {
                c.Enabled = false;
            }
            progressBar4.Visible = true;
            progressBar4.Enabled = true;

            List<Appointment> toCopy = new List<Appointment>();
            foreach (ListViewItem lvi in listView2.SelectedItems)
            {
                toCopy.Add((Appointment)lvi.Tag);
            }
            work_papers wp = new work_papers();
            wp.mode = 3;
            wp.appts = toCopy;
            migrantWorker.RunWorkerAsync(wp);
        }
예제 #3
0
        private void migrantWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            foreach (Control c in tabPage13.Controls)
            {
                c.Enabled = true;
            }
            progressBar4.Visible = false;
            progressBar4.Enabled = false;

            int result = (int)e.Result;
            if (result > 0)
            {
                work_papers wp = new work_papers();
                wp.mode = 2;
                listView3.Items.Clear();
                button15.Enabled = false;
                listView3.Enabled = false;
                progressBar4.Visible = true;
                progressBar4.Enabled = true;
                migrantWorker.RunWorkerAsync(wp);
            }
        }