public GuncelleRecete(ReceteEkle o1)
        {
            InitializeComponent();
            dateTimePicker1.Format       = DateTimePickerFormat.Custom;
            dateTimePicker1.CustomFormat = "dd MM yyyy";

            dateTimePicker1.Value = Convert.ToDateTime(o1.dataGridView3.CurrentRow.Cells[0].Value.ToString());
            comboBox1.Text        = o1.dataGridView3.CurrentRow.Cells[1].Value.ToString();
            comboBox2.Text        = o1.dataGridView3.CurrentRow.Cells[2].Value.ToString();
            textBox2.Text         = o1.dataGridView3.CurrentRow.Cells[3].Value.ToString();
            textBox1.Text         = o1.dataGridView3.CurrentRow.Cells[4].Value.ToString();

            o2 = o1;
        }
Exemple #2
0
        private void toolStripButton6_Click_1(object sender, EventArgs e)
        {
            ReceteEkle r1 = new ReceteEkle();

            r1.ShowDialog();
        }