private void Drag_Panel_Counts_Input_DragDrop(object sender, DragEventArgs e) { string Path_Input_Counts = ""; string[] fileList = (string[])e.Data.GetData(DataFormats.FileDrop, false); if (Path.GetExtension(fileList[0]) == ".txt") { Drop_counts_label.Visible = false; Path_Input_Counts = fileList[0]; Open_Counts_Input OCI = new Open_Counts_Input(); OCI.OpenFile_Input(Path_Input_Counts); Filtered_label_desc.Visible = true; Original_label_desc.Visible = true; Output_label_desc.Visible = true; Filtered_label_count.Visible = true; Original_label_count.Visible = true; Output_label_count.Visible = true; MAN_label.Visible = true; Drop_label_desc.Visible = true; Header_label_desc.Visible = true; Header_box_count.Visible = true; Drop_box_count.Visible = true; Filtered_label_count.Text = Open_Counts_Input.SUM_ORG.ToString("N0"); Original_label_count.Text = Open_Counts_Input.SUM_FILTR.ToString("N0"); Output_label_count.Text = Open_Counts_Input.SUM_OUT.ToString("N0"); ALL_C_M.CM.loading(); } }
private void deleteToolStripMenuItem_Click(object sender, EventArgs e) { Open_Counts_Input OCI = new Open_Counts_Input(); OCI.Clear(); Drop_counts_label.Visible = true; Filtered_label_desc.Visible = false; Original_label_desc.Visible = false; Output_label_desc.Visible = false; Filtered_label_count.Visible = false; Original_label_count.Visible = false; Output_label_count.Visible = false; MAN_label.Visible = false; Drop_label_desc.Visible = false; Header_label_desc.Visible = false; Header_box_count.Visible = false; Drop_box_count.Visible = false; ALL_C_M.CM.loading(); }
private void addToolStripMenuItem_Click(object sender, EventArgs e) { using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.Filter = "Counts File|*.txt"; string Path_Input_Counts = ""; if (openFileDialog.ShowDialog() == DialogResult.OK) { Open_Counts_Input OCI = new Open_Counts_Input(); Drop_counts_label.Visible = false; Path_Input_Counts = openFileDialog.FileName; OCI.OpenFile_Input(Path_Input_Counts); Filtered_label_desc.Visible = true; Original_label_desc.Visible = true; Output_label_desc.Visible = true; Filtered_label_count.Visible = true; Original_label_count.Visible = true; Output_label_count.Visible = true; MAN_label.Visible = true; Drop_label_desc.Visible = true; Header_label_desc.Visible = true; Header_box_count.Visible = true; Drop_box_count.Visible = true; Filtered_label_count.Text = Open_Counts_Input.SUM_ORG.ToString("N0"); Original_label_count.Text = Open_Counts_Input.SUM_FILTR.ToString("N0"); Output_label_count.Text = Open_Counts_Input.SUM_OUT.ToString("N0"); ALL_C_M.CM.loading(); } } }