Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmRunSheet runSheet = new frmRunSheet();

            runSheet.ShowDialog();
            if (runSheet.Tag == null)
            {
                return;
            }
            if (runSheet.Tag.ToString() == "save")
            {
                dataTable.Rows.Add(runSheet.txtDownloadDir.Text, runSheet.txtLinksToIncludeWords.Text, runSheet.txtTimeSeriesPage.Text);
                SaveRunSheet();
            }
        }
Beispiel #2
0
        private void mnuEdit_Click(object sender, EventArgs e)
        {
            if (currentMouseOverRow >= 0)
            {
                frmRunSheet runSheet = new frmRunSheet(dgv[0, currentMouseOverRow].Value.ToString(), dgv[1, currentMouseOverRow].Value.ToString(), dgv[2, currentMouseOverRow].Value.ToString(), dgv[3, currentMouseOverRow].Value.ToString());
                runSheet.ShowDialog();

                if (runSheet.Tag == null)
                {
                    return;
                }
                if (runSheet.Tag.ToString() == "save")
                {
                    dgv[0, currentMouseOverRow].Value = runSheet.txtDownloadDir.Text;
                    dgv[1, currentMouseOverRow].Value = runSheet.txtLinksToIncludeWords.Text;
                    dgv[2, currentMouseOverRow].Value = runSheet.txtTimeSeriesPage.Text;
                    dgv[3, currentMouseOverRow].Value = runSheet.txtLastWorkingURL.Text;
                    SaveRunSheet();
                }
            }
        }