private void Path_Save_But_Click(object sender, EventArgs e)
 {
     if (DocumentDirectory.add_document(Item_ID, Path_Path_Tbox.Text))
     {
         Close();
     }
 }
 private void scan_save_but_Click(object sender, EventArgs e)
 {
     if (DocumentDirectory.add_document(Item_ID, pictureBox.Image))
     {
         Close();
     }
 }
Example #3
0
 private void doc_dgv_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex > 1 && e.RowIndex > -1)
     {
         int id = Convert.ToInt32(doc_dgv.Rows[e.RowIndex].Cells[0].Value);
         if (e.ColumnIndex == 2)
         {
             DocumentDirectory.open_document(id);
         }
         if (e.ColumnIndex == 3)
         {
             DocumentDirectory.delete_document(id);
             load_data();
         }
     }
 }
Example #4
0
        static void Main()
        {
            new GetDocument(1).ShowDialog();
            try
            {
                MySqlConnection C = new MySqlConnection(Properties.Settings.Default.BasePathReserv_ACER);
                C.Open();
                C.Close();
                Properties.Settings.Default.BasePath = Properties.Settings.Default.BasePathReserv_ACER;
                Properties.Settings.Default.Save();
            }
            catch (Exception)
            {
                Properties.Settings.Default.BasePath = Properties.Settings.Default.BasePathReserv;
                Properties.Settings.Default.Save();
            }

            TempDirectory.InitTempDirectory();
            DocumentDirectory.InitDocumentDirectory();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new MainForm());
        }