Example #1
0
        //private void combo_birim_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    SqlCommand komutID = new SqlCommand("Select * From StokFirmaBirim where Birim = N'" + combo_birim.Text + "' and FirmaID = N'" + Anasayfa.firmaID + "'", bgl.baglanti());
        //    SqlDataReader drI = komutID.ExecuteReader();
        //    while (drI.Read())
        //    {
        //        birimID = Convert.ToInt32(drI["ID"].ToString());
        //    }
        //    bgl.baglanti().Close();
        //}

        private void btnsertifika_Click(object sender, EventArgs e)
        {
            Sertifika.skod = gridLookUpEdit1.EditValue.ToString();
            Sertifika s = new Sertifika();

            s.Show();

            //OpenFileDialog open = new OpenFileDialog();

            //string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

            ////To where your opendialog box get starting location. My initial directory location is desktop.
            //open.InitialDirectory = path;
            ////Your opendialog box title name.
            //open.Title = "Yüklemek istediğiniz dosyayı seçiniz.";
            ////which type file format you want to upload in database. just add them.
            //open.Filter = "Select Valid Document(*.pdf; *.doc; *.xlsx; *.html)|*.pdf; *.docx; *.xlsx; *.html";
            ////FilterIndex property represents the index of the filter currently selected in the file dialog box.
            //open.FilterIndex = 1;
            //try
            //{
            //    if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            //    {
            //        if (open.CheckFileExists)
            //        {
            //            name = System.IO.Path.GetFullPath(open.FileName);
            //            btnsertifika.Enabled = false;
            //            kontrol = "1";
            //        }
            //    }
            //    else
            //    {
            //        MessageBox.Show("Lütfen dosya seçiniz.");
            //    }
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.Message);
            //}
        }
Example #2
0
        private void barButtonItem16_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Sertifika f = new Sertifika();

            f.Show();
        }