コード例 #1
0
ファイル: 예매.cs プロジェクト: slsk36/C-
        private void button6_Click(object sender, EventArgs e)
        {
            좌석 seat = new 좌석();

            if (button1.BackColor == Color.LightPink)
            {
                seat.label20.Text = button1.Text;
            }
            else if (button2.BackColor == Color.LightPink)
            {
                seat.label20.Text = button2.Text;
            }
            else if (button3.BackColor == Color.LightPink)
            {
                seat.label20.Text = button3.Text;
            }
            else if (button4.BackColor == Color.LightPink)
            {
                seat.label20.Text = button4.Text;
            }
            else if (button5.BackColor == Color.LightPink)
            {
                seat.label20.Text = button5.Text;
            }
            seat.label18.Text = dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells[1].Value.ToString();
            seat.label19.Text = treeView1.SelectedNode.Text;
            seat.label21.Text = dateTimePicker1.Text;
            seat.ShowDialog();
        }
コード例 #2
0
ファイル: 예매.cs プロジェクト: slsk36/C-
 public 예매(좌석 s)
 {
     InitializeComponent();
     seat = s;
 }
コード例 #3
0
 public 결재(좌석 s)
 {
     InitializeComponent();
     this.seat = s;
 }