示例#1
0
        private void EditToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (lv.SelectedItems.Count > 0)
            {
                pnlops.Controls.Clear();

                String dateoftheyear = lv.SelectedItems[0].SubItems[1].Text;

                Day_Marker dm = new Day_Marker();

                day_marker_update c = new day_marker_update();

               // MessageBox.Show(dateoftheyear);

                c.dm = dm.SELECT_BY_DATE(dateoftheyear);

                c.Width = pnlops.Width;
                pnlops.Height = c.Height;

                pnlops.Controls.Add(c);
            }
            else {
                MessageBox.Show("Nothing Selected");
            }
        }
示例#2
0
        private void EditToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (lv.SelectedItems.Count > 0)
            {
                pnlops.Controls.Clear();

                String dateoftheyear = lv.SelectedItems[0].SubItems[1].Text;

                Day_Marker dm = new Day_Marker();

                day_marker_update c = new day_marker_update();


                // MessageBox.Show(dateoftheyear);

                c.dm = dm.SELECT_BY_DATE(dateoftheyear);

                c.Width       = pnlops.Width;
                pnlops.Height = c.Height;

                pnlops.Controls.Add(c);
            }
            else
            {
                MessageBox.Show("Nothing Selected");
            }
        }