Exemplo n.º 1
0
        private void doubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataViewer f2    = new DataViewer(data_folder);
            var        index = e.RowIndex;

            if (index > -1)
            {
                DataGridViewRow row     = dataSearchView.Rows[index];
                string[]        rowData = new string[header_names.Length];

                foreach (var item in headers)
                {
                    rowData[item.Value] = row.Cells[item.Value].Value.ToString();
                }

                /*for (int i = 0; i < headers.Count; i++)
                 * {
                 *  rowData[i] = row.Cells[i].Value.ToString();
                 * }*/
                f2.postLoad();
                f2.editing(rowData, workingFile, data);
                f2.Show();
                f2.Disposed += new EventHandler(this.disposeHandler);
            }
        }
Exemplo n.º 2
0
        private void btnStart_Start_Click(object sender, EventArgs e)
        {
            DataViewer dt = new DataViewer(data_folder);

            dt.loadCSV();
            dt.loadData();
            dt.postLoad();
            dt.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void doubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataViewer      f2    = new DataViewer();
            var             index = e.RowIndex;
            DataGridViewRow row   = dataSearchView.Rows[index];

            String[] rowData = new String[headers.Length];
            for (int i = 0; i < headers.Length; i++)
            {
                rowData[i] = row.Cells[i].Value.ToString();
            }
            f2.editing(rowData, workingFile, data);
            f2.Show();
            f2.Disposed += new EventHandler(this.disposeHandler);
        }