예제 #1
0
        public void GetData(ref DBStoreUC dBStoreUC)
        {
            //Input Parameter
            List<Property> listProPerty_Input = new List<Property>();

            for (int i = 0; i < dataGridView2.Rows.Count - 1; i++)
            {
                Property property = new Property();
                property.PropertyName = dataGridView2.Rows[i].Cells[0].Value.ToString();
                listProPerty_Input.Add(property);
            }
            dBStoreUC.InputParameter = new InputParameter();
            dBStoreUC.InputParameter.Properties = listProPerty_Input;

            //Output Parameter
            List<Property> listProPerty_Output = new List<Property>();
            for (int i = 0; i < dataGridView3.Rows.Count - 1; i++)
            {
                Property property = new Property();
                property.PropertyName = dataGridView3.Rows[i].Cells[0].Value.ToString();
                listProPerty_Output.Add(property);
            }
            dBStoreUC.OutputParameter = new OutputParameter();
            dBStoreUC.OutputParameter.Properties = listProPerty_Output;

            dBStoreUC.StoredProceduceName = cboStoredProcduce.Text;
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            dBStoreUC = new DBStoreUC();
            dBStoreUC.ConnectionString = string.Format(sInput, this.txtDatabaseName.Text.Trim(), this.txtDatabaseServer.Text.Trim(), this.txtUser.Text.Trim(), this.txtPassword.Text.Trim());

            var frmConfigurationStore = new FrmConfigurationStore(dBStoreUC);
            frmConfigurationStore.ShowDialog(this);
            frmConfigurationStore.GetData(ref  dBStoreUC);

            this.txtStoredProceduceName.Text = dBStoreUC.StoredProceduceName;
        }
예제 #3
0
 public FrmConfigurationStore(DBStoreUC dBStoreUC)
 {
     // TODO: Complete member initialization
     this.dBStoreUC = dBStoreUC;
     InitializeComponent();
 }