示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            TedarikciEkle tD = new TedarikciEkle();

            tD.ShowDialog();
            tedarikciGrid();
        }
示例#2
0
文件: TKDK.cs 项目: huseyinorer/DPOS
        private void radioButtons_CheckedChanged(int tedarikciSayisi)
        {
            combolist_Tedarikci.Clear();
            dateList.Clear();
            groupBox1.Controls.Clear();
            int Y_Combobox = 28;

            for (int i = 0; i < tedarikciSayisi; i++)
            {
                Label lbl = new Label();
                lbl.Text     = "Tedarikçi-" + (i + 1) + " : ";
                lbl.Size     = new Size(60, 21);
                lbl.Location = new Point(10, Y_Combobox + 5);
                this.groupBox1.Controls.Add(lbl);


                ComboBox combo = new ComboBox();
                combo.Size          = new Size(150, 21);
                combo.Location      = new Point(80, Y_Combobox);
                combo.DropDownStyle = ComboBoxStyle.DropDownList;
                combolist_Tedarikci.Add(combo);
                this.groupBox1.Controls.Add(combo);



                DateTimePicker date_time = new DateTimePicker();
                date_time.Location = new Point(240, Y_Combobox);
                date_time.Format   = DateTimePickerFormat.Short;
                date_time.Size     = new Size(100, 24);
                // date_time.ValueChanged += new EventHandler(DateTimeValueChanged);
                date_time.Tag = i;
                dateList.Add(date_time);
                this.groupBox1.Controls.Add(date_time);


                Y_Combobox += 27;
            }

            Button btn_Yeni_Tedarikci = new Button();

            btn_Yeni_Tedarikci.Size              = new Size(80, 24);
            btn_Yeni_Tedarikci.Location          = new Point(285, 0);
            btn_Yeni_Tedarikci.Image             = Properties.Resources.addnewdatasource_16x16;
            btn_Yeni_Tedarikci.Text              = "Yeni Ekle";
            btn_Yeni_Tedarikci.TextImageRelation = TextImageRelation.ImageBeforeText;
            btn_Yeni_Tedarikci.Click            += (s, e) => {
                TedarikciEkle yeni_Ekle = new TedarikciEkle();
                yeni_Ekle.ShowDialog();
                tedarikci_Combobox_Veri_Yukle();
                radioButton1.Checked = false;
                radioButton2.Checked = false;
                groupBox1.Controls.Clear();
            };

            this.groupBox1.Controls.Add(btn_Yeni_Tedarikci);
        }
示例#3
0
        private void button2_Click(object sender, EventArgs e)
        {
            int    tedarikci_ID              = Convert.ToInt32(dataGridView4.SelectedCells[0].Value.ToString());
            string tedarikci_Ad              = dataGridView4.SelectedCells[1].Value.ToString();
            string tedarikci_Adres           = dataGridView4.SelectedCells[2].Value.ToString();
            string tedarikci_Vergi_no        = dataGridView4.SelectedCells[3].Value.ToString();
            string tedarikci_Vergi_Dairesi   = dataGridView4.SelectedCells[4].Value.ToString();
            string tedarikci_Ticari_Sicil_no = dataGridView4.SelectedCells[5].Value.ToString();
            string tedarikci_Telefon         = dataGridView4.SelectedCells[6].Value.ToString();
            string tedarikci_Faks            = dataGridView4.SelectedCells[7].Value.ToString();
            string tedarikci_E_Posta         = dataGridView4.SelectedCells[8].Value.ToString();


            TedarikciEkle td = new TedarikciEkle(tedarikci_ID, tedarikci_Ad, tedarikci_Adres, tedarikci_Vergi_no, tedarikci_Vergi_Dairesi, tedarikci_Ticari_Sicil_no, tedarikci_Telefon, tedarikci_Faks, tedarikci_E_Posta);

            td.ShowDialog();
            tedarikciGrid();
        }