Exemplo n.º 1
0
        private void Program_List_MouseDoubleClick(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            int selected_index = this.Program_List.IndexFromPoint(e.Location);

            //List<int> SELECTED_INDICIES = new List<int>();
            //bool VALID_EDIT = true;
            for (int i = 0; i < Program_List.Items.Count; i++)
            {
                //if (Program_List.GetSelected(i) == true)
                // selected_index = i;
                if (Entire_Program_List[selected_index][1].Contains("MOVE") || Entire_Program_List[selected_index][1].Contains("COPY") || Entire_Program_List[selected_index][1].Contains("DELETE"))
                {
                    Run_File_Handler rfh = new Run_File_Handler(this, selected_index, true, Entire_Program_List[selected_index]);
                    rfh.ShowDialog();
                    i = i + 10000;
                }
            }
            try
            {
                if (selected_index != System.Windows.Forms.ListBox.NoMatches)
                {
                    //List<string> temp_list = Rule_List[selected_index];
                    //Add_Rule g = new Add_Rule(this, true, selected_index, temp_list[0], temp_list[1], temp_list[2],
                    //   temp_list[3], temp_list[4], temp_list[5]
                    //);
                    //g.ShowDialog();
                }
            }
            catch { }
        }
Exemplo n.º 2
0
        // Run File handler
        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
            this.Dispose();
            Run_File_Handler rfh = new Run_File_Handler(__parent, __index);

            rfh.ShowDialog();
        }