public Distribution_Form(Data_Class.Data_Editing.INT Data_Interface, DB_Class.DB_Editing.INT DB_Interface, JMP_Class.JMP_Editing.INT JMP_Interface, Dictionary <int, Dictionary <int, string> > Box_Enum, string[] Header, string[] New_Header, bool Customer_enable, bool NPI_enable, bool CPK_enable, double CPK_Value, ref bool Delete_Flag, string Key) { this.Header = Header; this.New_Header = New_Header; this.Item_Y_Dist = new List <string>(); this.Item_By_Dist = new List <string>(); this.Item_X_Fit = new List <string>(); this.Item_Y_Fit = new List <string>(); this.Item_By_Fit = new List <string>(); this.Customer_enable = Customer_enable; this.NPI_enable = NPI_enable; this.CPK_enable = CPK_enable; this.CPK_Value = CPK_Value; this.Data_Interface = Data_Interface; this.DB_Interface = DB_Interface; this.Box_Enum = Box_Enum; this.JMP_Interface = JMP_Interface; this.Key = Key; InitializeComponent(); tabControl1.TabPages[0].Text = "Distribution"; tabControl1.TabPages[1].Text = "Fit Y By X"; listBox1.SelectionMode = SelectionMode.MultiExtended; listBox2.SelectionMode = SelectionMode.MultiExtended; listBox3.SelectionMode = SelectionMode.MultiExtended; listBox4.SelectionMode = SelectionMode.MultiExtended; listBox5.SelectionMode = SelectionMode.MultiExtended; this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true); Data_Grid(); Data_Grid2(); Data_Grid_Fit(); Data_Grid2_Fit(); }
private void button1_Click(object sender, EventArgs e) { OpenFileDialog Dialog = new OpenFileDialog(); Dialog.Filter = "DB Files (*.db)| *.db"; Dialog.InitialDirectory = "C:\\Automation\\DB\\Yield"; Dialog.Multiselect = true; Dialog.ShowDialog(); if (Dialog.FileNames.Length > 0) { Csv_Interface = CSV.Open(Key); Data_Interface = Data_Edit.Open(Key); DB_Interface = DB.Open(Key); Csv_Interface.Read_Open(this.Files_path[0]); while (!Csv_Interface.StreamReader.EndOfStream) { Csv_Interface.Read(); Dic_Doc = new Dictionary <string, string>(); if (i == 0) { Iden = new string[Csv_Interface.Get_String.Length]; for (j = 0; j < Csv_Interface.Get_String.Length; j++) { Iden[j] = Csv_Interface.Get_String[j]; } } else { for (j = 0; j < Csv_Interface.Get_String.Length; j++) { Dic_Doc.Add(Iden[j], Csv_Interface.Get_String[j]); } List_Doc.Add(Dic_Doc); } i++; } } }