Beispiel #1
0
        private void newbttn_Click(object sender, EventArgs e)
        {
            string newfileno = idincrement(getlastfileno());

            insertinto_table(newfileno);
            using (NewWOP itemInfo = new NewWOP())//Open main form and hide login form
            {
                itemInfo.getfileno(newfileno);
                itemInfo.ShowDialog();
                itemInfo.Dispose();
                Showallitems();
            }
        }
Beispiel #2
0
        private void evictionsdatagrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string filenumber;

            if (evictionsdatagrid.SelectedRows.Count == 1)
            {
                int             selectedrowindex = evictionsdatagrid.SelectedCells[0].RowIndex;
                DataGridViewRow slectedrow       = evictionsdatagrid.Rows[selectedrowindex];
                filenumber = Convert.ToString(slectedrow.Cells[0].Value);
                using (NewWOP itemInfo = new NewWOP())//Open main form and hide login form
                {
                    itemInfo.getfileno(filenumber);
                    itemInfo.ShowDialog();
                    itemInfo.Dispose();
                    Showallitems();
                }
            }
        }