public SpreadSheet_Importer_Form() { InitializeComponent(); CheckForIllegalCrossThreadCalls = false; tickler = String.Empty; column_map_inputs = new List <Column_Assignment_Control>(); constant_map_inputs = new List <Constant_Assignment_Control>(); ResetFormControls(); // Perform some additional work if this was not XP theme if (!Windows_Appearance_Checker.is_XP_Theme) { browseButton.FlatStyle = FlatStyle.Flat; sheetComboBox.FlatStyle = FlatStyle.Flat; btnShowData.FlatStyle = FlatStyle.Flat; } // Create the constants mapping custom control // Add eight constant user controls to panel for (int i = 1; i < 9; i++) { Constant_Assignment_Control thisConstantCtrl = new Constant_Assignment_Control(); thisConstantCtrl.Location = new Point(10, 10 + ((i - 1) * 30)); pnlConstants.Controls.Add(thisConstantCtrl); constant_map_inputs.Add(thisConstantCtrl); } // set some of the constant columns to required tracking fields constant_map_inputs[0].Mapped_Name = "First BibID"; constant_map_inputs[1].Mapped_Name = "Material Type"; constant_map_inputs[2].Mapped_Name = "Aggregation Code"; }
/// <summary> Constructor for a new instance of this class </summary> public MARC_Importer_Form() { // Initialize this form InitializeComponent(); Constructor_Helper(); workingFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\SMaRT"; // Perform some additional work if this was not XP theme if (!Windows_Appearance_Checker.is_XP_Theme) { browseButton.FlatStyle = FlatStyle.Flat; sourceTextBox.BorderStyle = BorderStyle.FixedSingle; } // Create the constants mapping custom control // Add eight constant user controls to panel for (int i = 1; i < 9; i++) { Constant_Assignment_Control thisConstantCtrl = new Constant_Assignment_Control(); thisConstantCtrl.Location = new Point(10, 10 + ((i - 1) * 30)); pnlConstants.Controls.Add(thisConstantCtrl); constant_map_inputs.Add(thisConstantCtrl); } // set some of the constant columns to required tracking fields constant_map_inputs[0].Mapped_Name = "First BibID"; constant_map_inputs[1].Mapped_Name = "Material Type"; constant_map_inputs[2].Mapped_Name = "Aggregation Code"; }