?
Solved

Windows Form Using Multiple classes

Posted on 2009-12-29
18
Medium Priority
?
186 Views
Last Modified: 2013-12-17
Hi Experts. I have not done windows forms for a while so I have some proiably really easy questions.   I have a windows form and multiple textbox, combobox imputs. I have a septrate class that I need to put the information into. so when user puts in thier first name on the form I have the class that needs it. I have provied my code below for the form and then the class.



//////////////////////////////////////////////////////////////
Form1 Code
//////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//using System.Web.Services.Protocols;
using System.Net;
using System.Web.DataAccess;
using System.Web;

namespace VirtualMerchantApp
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (CBTransactionType.Text == "Credit/Debit")
            {
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Return")
            {
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Void")
            { 
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "ACH Check")
            {
                PCC.Visible = false;
                ECK.Visible = true;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Void ")
            {
                PCC.Visible = false;
                ECK.Visible = false;
                pnlvoid.Visible = true;
            }
           
        }
        
        private void Submit_Click(object sender, EventArgs e)
        {
           
        }
    }
}

/////////////////////////////////////////////////////////////
secondary class code
/////////////////////////////////////////////////////////////

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using VirtualMerchantApp;

/// <summary>
/// Summary description for DealClass
/// </summary>
public class DealClass
{
   
///// I  tried using public string FristName = TBFirstName; 
////     However it does not want to comunicate with the form. Can someone tell me what I am doing wrong?

    public string  FirstName = "";
    public string  LastName = "";
    public string  Address = "";
    public string  City = "";
    public string  State = "";
    public string  Zip = "";

    public string  User = "";
    public string  CustNo = "";
    public int     DealId = 0;
    
    public string  CCNo = "";
    public string  CCExpDt = "";
    public string  CCSecNo = "";

    public string  CardType = "";
    public string  TransActionType = "";
    public int     PmtNo = 0;

    public string  CheckNo = "";
    public string  CheckingSavings = "";
    public string  AccountNo = "";
    public string  RoutingNo = "";
    public string  BankName = "";

    public decimal RequestedAmt = 0;

    public bool    IsRecurring = false;
    public decimal RecurringAmt = 0;
    public int     RecurringTerm = 0;


    public string  UID="";
    public string  UPIN = "";
    public string  UExtra1 = "";
    public string  UExtra2 = "";


    public string  AuthCode = "";
    public string  TransActionId = "";
    public string  OrderId = "";
    public string  HistoryId = "";

    public bool    WasError = false;
    public string  ErrorStr = "";
    public string  ErrorReason = "";

    
}

Open in new window

0
Comment
Question by:HawaiiDragon
  • 9
  • 9
18 Comments
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139011
So what's your problem?
0
 
LVL 9

Accepted Solution

by:
magicdlf earned 2000 total points
ID: 26139041
In your main frame, you can add this:
private DealClass _dealInfo = new DealClass();

and change this:
        private void Submit_Click(object sender, EventArgs e)
        {
            _dealInfo.FirstName = textbox1.text; //(for example)
            _dealInfo.LasttName = textbox2.text; //(for example)
//Post your data.
        }



0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139065
The DealClass is just a class type that you defined for constructing user infos. You need to create a instance of that class (_dealInfo in my example) and the put the data into the instance. You will also need to find a right timing (Submit_Click or other event, it depends) to fill in the data in the _dealInfo. Hope this will help you. Happy Coding.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:HawaiiDragon
ID: 26139074
my problem is that when I go to my class code I can not select any information from my form page
i.e.:
 public string  FirstName = "";
I want it to be able to comunicate with the form page so I can put
public string Firstname = TBFirstName.txt;
but its not working any idea why?
0
 

Author Comment

by:HawaiiDragon
ID: 26139312
Magicdlf,

   I did what you said and for some reason when I put in a break point on my deal class it seams to be the first thing running in the call stack so it never gets populated with the information from the textboxes. This is after I used your sugestion. Please see example below
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//using System.Web.Services.Protocols;
using System.Net;
using System.Web.DataAccess;
using System.Web;

namespace VirtualMerchantApp
{
    public partial class Form1 : Form
    {
        private DealClass _dealInfo = new DealClass();

        public Form1()
        {
            InitializeComponent();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (CBTransactionType.Text == "Credit/Debit")
            {
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Return")
            {
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Void")
            { 
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "ACH Check")
            {
                PCC.Visible = false;
                ECK.Visible = true;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Void ")
            {
                PCC.Visible = false;
                ECK.Visible = false;
                pnlvoid.Visible = true;
            }
           
        }
        
        private void Submit_Click(object sender, EventArgs e)
        {
            _dealInfo.FirstName = TBFirstName.Text;
            _dealInfo.LastName = TBLastName.Text;
            _dealInfo.Address = TBAddress1.Text;
            _dealInfo.City = TBCity.Text;
            _dealInfo.State = TBState.Text;
            _dealInfo.Zip = TBZIP.Text;
            _dealInfo.CCNo = TBCCNumber.Text;
            _dealInfo.CCExpDt= TBCCExpDate.Text;
            _dealInfo.CCSecNo = TBCCNCode.Text;
            _dealInfo.CardType = CBCreditCardType.Text;
            _dealInfo.TransActionType = CBTransactionType.Text;
            _dealInfo.CheckNo = TBCheckNumber.Text;
            _dealInfo.AccountNo = TBBankAccountNumber.Text;
            _dealInfo.RoutingNo = TBBankRoutingNumber.Text;
            _dealInfo.BankName = TBBankName.Text;
            _dealInfo.DealId = 0;
            _dealInfo.PmtNo = 0;

    //public string  User = "";
    //public string  CustNo = "";
    

  
   

        }
    }
}




88888888888888888888888888888888888888888888888888888
this is the dealclass
888888888888888888888888888888888888888888888888888

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using VirtualMerchantApp;

/// <summary>
/// Summary description for DealClass
/// </summary>
public class DealClass
{
   

    public string  FirstName = "";
    public string  LastName = "";
    public string  Address = "";
    public string  City = "";
    public string  State = "";
    public string  Zip = "";

    public string  User = "";
    public string  CustNo = "";
    public int     DealId = 0;
    
    public string  CCNo = "";
    public string  CCExpDt = "";
    public string  CCSecNo = "";

    public string  CardType = "";
    public string  TransActionType = "";
    public int     PmtNo = 0;

    public string  CheckNo = "";
    public string  CheckingSavings = "";
    public string  AccountNo = "";
    public string  RoutingNo = "";
    public string  BankName = "";

    public decimal RequestedAmt = 0;

    public bool    IsRecurring = false;
    public decimal RecurringAmt = 0;
    public int     RecurringTerm = 0;


    public string  UID="";
    public string  UPIN = "";
    public string  UExtra1 = "";
    public string  UExtra2 = "";


    public string  AuthCode = "";
    public string  TransActionId = "";
    public string  OrderId = "";
    public string  HistoryId = "";

    public bool    WasError = false;
    public string  ErrorStr = "";
    public string  ErrorReason = "";

    
}

Open in new window

0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139337
Why are you putting the breakpoint in your deal class? Put it at the end of the Submit_Click, and you can see all the data is set in the _dealInfo. Now it's time for next step. What do you want to do with the data in the _dealInfo?
0
 

Author Comment

by:HawaiiDragon
ID: 26139455
I need all the information in _dealInfo to go to the DealClass. I will show you the whole project and see if I can explane it to you. (parts of it I get and some I dont) This is suposed to be a Windows App That has webactions. Yea.... I was confused. I have posted below the 3 classes and the form.



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//using System.Web.Services.Protocols;
using System.Net;
using System.Web.DataAccess;
using System.Web;

namespace VirtualMerchantApp
{
    public partial class Form1 : Form
    {
      

        public Form1()
        {
            InitializeComponent();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (CBTransactionType.Text == "Credit/Debit")
            {
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Return")
            {
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Void")
            { 
                PCC.Visible = true;
                ECK.Visible = false;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "ACH Check")
            {
                PCC.Visible = false;
                ECK.Visible = true;
                pnlvoid.Visible = false;
            }

            if (CBTransactionType.Text == "Void ")
            {
                PCC.Visible = false;
                ECK.Visible = false;
                pnlvoid.Visible = true;
            }
           
        }
        
        private void Submit_Click(object sender, EventArgs e)
        {
            _dealInfo.FirstName = TBFirstName.Text;
            _dealInfo.LastName = TBLastName.Text;
            _dealInfo.Address = TBAddress1.Text;
            _dealInfo.City = TBCity.Text;
            _dealInfo.State = TBState.Text;
            _dealInfo.Zip = TBZIP.Text;
            _dealInfo.CCNo = TBCCNumber.Text;
            _dealInfo.CCExpDt= TBCCExpDate.Text;
            _dealInfo.CCSecNo = TBCCNCode.Text;
            _dealInfo.CardType = CBCreditCardType.Text;
            _dealInfo.TransActionType = CBTransactionType.Text;
            _dealInfo.CheckNo = TBCheckNumber.Text;
            _dealInfo.AccountNo = TBBankAccountNumber.Text;
            _dealInfo.RoutingNo = TBBankRoutingNumber.Text;
            _dealInfo.BankName = TBBankName.Text;
            _dealInfo.DealId = 0;
            _dealInfo.PmtNo = 0;

           

    //public string  User = "";
    //public string  CustNo = "";
    

  
   

        }
        private DealClass _dealInfo = new DealClass();

    }
}
****************************** DealClass
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using VirtualMerchantApp;

/// <summary>
/// Summary description for DealClass
/// </summary>
public class DealClass
{
   

    public string  FirstName = "";
    public string  LastName = "";
    public string  Address = "";
    public string  City = "";
    public string  State = "";
    public string  Zip = "";

    public string  User = "";
    public string  CustNo = "";
    public int     DealId = 0;
    
    public string  CCNo = "";
    public string  CCExpDt = "";
    public string  CCSecNo = "";

    public string  CardType = "";
    public string  TransActionType = "";
    public int     PmtNo = 0;

    public string  CheckNo = "";
    public string  CheckingSavings = "";
    public string  AccountNo = "";
    public string  RoutingNo = "";
    public string  BankName = "";

    public decimal RequestedAmt = 0;

    public bool    IsRecurring = false;
    public decimal RecurringAmt = 0;
    public int     RecurringTerm = 0;


    public string  UID="";
    public string  UPIN = "";
    public string  UExtra1 = "";
    public string  UExtra2 = "";


    public string  AuthCode = "";
    public string  TransActionId = "";
    public string  OrderId = "";
    public string  HistoryId = "";

    public bool    WasError = false;
    public string  ErrorStr = "";
    public string  ErrorReason = "";

    
}
*************************CreditLogger
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for CreditLogger
/// </summary>
public class CreditLogger
{
    public CreditLogger()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public bool LogTransAction(int DealId,string HtmlResult,int PmtNo,string Check_CCNO,string TransActionNumber,string TransActionCode,string PmtType,string User)
    {
        //credit card must be last 4 only
        return true;
    }




}
******************IProcessCredit
using System;
interface IProcessCredit
{
    string ProcessCheck(DealClass Deal);
    string ProcessCreditCard(DealClass Deal);
    string processCreditReturn(DealClass Deal);
    string processRecurring(DealClass DealId);
    string processVoid(DealClass DealId);
}

Open in new window

0
 

Author Comment

by:HawaiiDragon
ID: 26139462
Basicaly this is a terminal to compleate CC payments CheckPayments Return Credit to CC's and Voids of transactions.
0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139486
Can you attach the whole project? I think you already have a scaffold and need to filling some blanks in it.
0
 

Author Comment

by:HawaiiDragon
ID: 26139520
correct. I have never done ANYTHING like this before.
below is my code for the terminal if your courious how it looks.




Form1.Designer



namespace VirtualMerchantApp
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.TBCity = new System.Windows.Forms.TextBox();
            this.TBState = new System.Windows.Forms.TextBox();
            this.TBAddress2 = new System.Windows.Forms.TextBox();
            this.TBZIP = new System.Windows.Forms.TextBox();
            this.TBCCNCode = new System.Windows.Forms.TextBox();
            this.TBCCNumber = new System.Windows.Forms.TextBox();
            this.TBAddress1 = new System.Windows.Forms.TextBox();
            this.TBLastName = new System.Windows.Forms.TextBox();
            this.TBFirstName = new System.Windows.Forms.TextBox();
            this.CBTransactionType = new System.Windows.Forms.ComboBox();
            this.CBCreditCardType = new System.Windows.Forms.ComboBox();
            this.PCC = new System.Windows.Forms.Panel();
            this.TBCCExpDate = new System.Windows.Forms.TextBox();
            this.label12 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.ECK = new System.Windows.Forms.Panel();
            this.TBBankAccountNumber = new System.Windows.Forms.TextBox();
            this.TBBankRoutingNumber = new System.Windows.Forms.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.Submit = new System.Windows.Forms.Button();
            this.Transaction = new System.Windows.Forms.Label();
            this.pnlvoid = new System.Windows.Forms.Panel();
            this.tbtransactionid = new System.Windows.Forms.TextBox();
            this.label15 = new System.Windows.Forms.Label();
            this.TBMiddleName = new System.Windows.Forms.TextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.label17 = new System.Windows.Forms.Label();
            this.label18 = new System.Windows.Forms.Label();
            this.TBCheckNumber = new System.Windows.Forms.TextBox();
            this.TBBankName = new System.Windows.Forms.TextBox();
            this.PCC.SuspendLayout();
            this.ECK.SuspendLayout();
            this.pnlvoid.SuspendLayout();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 28);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(126, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Select Transaction Type:";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 143);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(127, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "Customer Address Line 1:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(12, 199);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(24, 13);
            this.label3.TabIndex = 2;
            this.label3.Text = "City";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(12, 59);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(107, 13);
            this.label4.TabIndex = 3;
            this.label4.Text = "Customer First Name:";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(3, 7);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(89, 13);
            this.label5.TabIndex = 4;
            this.label5.Text = "Credit Card Type:";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(11, 116);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(108, 13);
            this.label6.TabIndex = 5;
            this.label6.Text = "Customer Last Name:";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(12, 171);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(127, 13);
            this.label7.TabIndex = 6;
            this.label7.Text = "Customer Address Line 2:";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(11, 251);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(25, 13);
            this.label8.TabIndex = 7;
            this.label8.Text = "Zip:";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(3, 33);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(47, 13);
            this.label9.TabIndex = 8;
            this.label9.Text = "Number:";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(11, 225);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(35, 13);
            this.label10.TabIndex = 9;
            this.label10.Text = "State:";
            // 
            // TBCity
            // 
            this.TBCity.Location = new System.Drawing.Point(156, 192);
            this.TBCity.Name = "TBCity";
            this.TBCity.Size = new System.Drawing.Size(100, 20);
            this.TBCity.TabIndex = 6;
            // 
            // TBState
            // 
            this.TBState.Location = new System.Drawing.Point(156, 218);
            this.TBState.Name = "TBState";
            this.TBState.Size = new System.Drawing.Size(100, 20);
            this.TBState.TabIndex = 7;
            // 
            // TBAddress2
            // 
            this.TBAddress2.Location = new System.Drawing.Point(156, 162);
            this.TBAddress2.Name = "TBAddress2";
            this.TBAddress2.Size = new System.Drawing.Size(100, 20);
            this.TBAddress2.TabIndex = 5;
            // 
            // TBZIP
            // 
            this.TBZIP.Location = new System.Drawing.Point(156, 244);
            this.TBZIP.Name = "TBZIP";
            this.TBZIP.Size = new System.Drawing.Size(100, 20);
            this.TBZIP.TabIndex = 8;
            // 
            // TBCCNCode
            // 
            this.TBCCNCode.Location = new System.Drawing.Point(56, 81);
            this.TBCCNCode.Name = "TBCCNCode";
            this.TBCCNCode.Size = new System.Drawing.Size(48, 20);
            this.TBCCNCode.TabIndex = 12;
            // 
            // TBCCNumber
            // 
            this.TBCCNumber.Location = new System.Drawing.Point(56, 30);
            this.TBCCNumber.Name = "TBCCNumber";
            this.TBCCNumber.Size = new System.Drawing.Size(141, 20);
            this.TBCCNumber.TabIndex = 10;
            // 
            // TBAddress1
            // 
            this.TBAddress1.Location = new System.Drawing.Point(157, 136);
            this.TBAddress1.Name = "TBAddress1";
            this.TBAddress1.Size = new System.Drawing.Size(100, 20);
            this.TBAddress1.TabIndex = 4;
            // 
            // TBLastName
            // 
            this.TBLastName.Location = new System.Drawing.Point(156, 109);
            this.TBLastName.Name = "TBLastName";
            this.TBLastName.Size = new System.Drawing.Size(121, 20);
            this.TBLastName.TabIndex = 3;
            // 
            // TBFirstName
            // 
            this.TBFirstName.Location = new System.Drawing.Point(157, 52);
            this.TBFirstName.Name = "TBFirstName";
            this.TBFirstName.Size = new System.Drawing.Size(121, 20);
            this.TBFirstName.TabIndex = 2;
            // 
            // CBTransactionType
            // 
            this.CBTransactionType.FormattingEnabled = true;
            this.CBTransactionType.Items.AddRange(new object[] {
            "Credit/Debit",
            "ACH Check",
            "Return",
            "Void "});
            this.CBTransactionType.Location = new System.Drawing.Point(157, 19);
            this.CBTransactionType.Name = "CBTransactionType";
            this.CBTransactionType.Size = new System.Drawing.Size(121, 21);
            this.CBTransactionType.TabIndex = 1;
            this.CBTransactionType.Text = "Select Option";
            this.CBTransactionType.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
            // 
            // CBCreditCardType
            // 
            this.CBCreditCardType.FormattingEnabled = true;
            this.CBCreditCardType.Items.AddRange(new object[] {
            "Visa",
            "Master Card",
            "Discover",
            "American Express"});
            this.CBCreditCardType.Location = new System.Drawing.Point(98, 3);
            this.CBCreditCardType.Name = "CBCreditCardType";
            this.CBCreditCardType.Size = new System.Drawing.Size(99, 21);
            this.CBCreditCardType.TabIndex = 9;
            // 
            // PCC
            // 
            this.PCC.Controls.Add(this.TBCCExpDate);
            this.PCC.Controls.Add(this.label12);
            this.PCC.Controls.Add(this.label11);
            this.PCC.Controls.Add(this.label5);
            this.PCC.Controls.Add(this.CBCreditCardType);
            this.PCC.Controls.Add(this.TBCCNCode);
            this.PCC.Controls.Add(this.label9);
            this.PCC.Controls.Add(this.TBCCNumber);
            this.PCC.Location = new System.Drawing.Point(329, 19);
            this.PCC.Name = "PCC";
            this.PCC.Size = new System.Drawing.Size(200, 110);
            this.PCC.TabIndex = 21;
            this.PCC.Visible = false;
            // 
            // TBCCExpDate
            // 
            this.TBCCExpDate.Location = new System.Drawing.Point(56, 55);
            this.TBCCExpDate.Name = "TBCCExpDate";
            this.TBCCExpDate.Size = new System.Drawing.Size(48, 20);
            this.TBCCExpDate.TabIndex = 11;
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(3, 88);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(32, 13);
            this.label12.TabIndex = 22;
            this.label12.Text = "CCN:";
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(3, 55);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(54, 13);
            this.label11.TabIndex = 21;
            this.label11.Text = "Exp Date:";
            // 
            // ECK
            // 
            this.ECK.Controls.Add(this.TBBankName);
            this.ECK.Controls.Add(this.TBCheckNumber);
            this.ECK.Controls.Add(this.label18);
            this.ECK.Controls.Add(this.label17);
            this.ECK.Controls.Add(this.TBBankAccountNumber);
            this.ECK.Controls.Add(this.TBBankRoutingNumber);
            this.ECK.Controls.Add(this.label14);
            this.ECK.Controls.Add(this.label13);
            this.ECK.Location = new System.Drawing.Point(329, 135);
            this.ECK.Name = "ECK";
            this.ECK.Size = new System.Drawing.Size(200, 180);
            this.ECK.TabIndex = 22;
            this.ECK.Visible = false;
            // 
            // TBBankAccountNumber
            // 
            this.TBBankAccountNumber.Location = new System.Drawing.Point(6, 96);
            this.TBBankAccountNumber.Name = "TBBankAccountNumber";
            this.TBBankAccountNumber.Size = new System.Drawing.Size(191, 20);
            this.TBBankAccountNumber.TabIndex = 14;
            // 
            // TBBankRoutingNumber
            // 
            this.TBBankRoutingNumber.Location = new System.Drawing.Point(6, 57);
            this.TBBankRoutingNumber.Name = "TBBankRoutingNumber";
            this.TBBankRoutingNumber.Size = new System.Drawing.Size(191, 20);
            this.TBBankRoutingNumber.TabIndex = 13;
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(3, 80);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(118, 13);
            this.label14.TabIndex = 1;
            this.label14.Text = "Bank Account Number:";
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(3, 41);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(115, 13);
            this.label13.TabIndex = 0;
            this.label13.Text = "Bank Routing Number:";
            // 
            // Submit
            // 
            this.Submit.Location = new System.Drawing.Point(15, 273);
            this.Submit.Name = "Submit";
            this.Submit.Size = new System.Drawing.Size(75, 23);
            this.Submit.TabIndex = 15;
            this.Submit.Text = "Submit";
            this.Submit.UseVisualStyleBackColor = true;
            this.Submit.Click += new System.EventHandler(this.Submit_Click);
            // 
            // Transaction
            // 
            this.Transaction.AutoSize = true;
            this.Transaction.Location = new System.Drawing.Point(488, 3);
            this.Transaction.Name = "Transaction";
            this.Transaction.Size = new System.Drawing.Size(41, 13);
            this.Transaction.TabIndex = 24;
            this.Transaction.Text = "label15";
            // 
            // pnlvoid
            // 
            this.pnlvoid.Controls.Add(this.tbtransactionid);
            this.pnlvoid.Controls.Add(this.label15);
            this.pnlvoid.Location = new System.Drawing.Point(123, 273);
            this.pnlvoid.Name = "pnlvoid";
            this.pnlvoid.Size = new System.Drawing.Size(200, 100);
            this.pnlvoid.TabIndex = 26;
            this.pnlvoid.Visible = false;
            // 
            // tbtransactionid
            // 
            this.tbtransactionid.Location = new System.Drawing.Point(9, 22);
            this.tbtransactionid.Name = "tbtransactionid";
            this.tbtransactionid.Size = new System.Drawing.Size(109, 20);
            this.tbtransactionid.TabIndex = 1;
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Location = new System.Drawing.Point(6, 4);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(77, 13);
            this.label15.TabIndex = 0;
            this.label15.Text = "Transaction id:";
            // 
            // TBMiddleName
            // 
            this.TBMiddleName.Location = new System.Drawing.Point(156, 83);
            this.TBMiddleName.Name = "TBMiddleName";
            this.TBMiddleName.Size = new System.Drawing.Size(121, 20);
            this.TBMiddleName.TabIndex = 27;
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(12, 90);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(119, 13);
            this.label16.TabIndex = 28;
            this.label16.Text = "Customer Middle Name:";
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(3, 4);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(81, 13);
            this.label17.TabIndex = 15;
            this.label17.Text = "Check Number:";
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Location = new System.Drawing.Point(3, 119);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(66, 13);
            this.label18.TabIndex = 16;
            this.label18.Text = "Bank Name:";
            // 
            // TBCheckNumber
            // 
            this.TBCheckNumber.Location = new System.Drawing.Point(6, 20);
            this.TBCheckNumber.Name = "TBCheckNumber";
            this.TBCheckNumber.Size = new System.Drawing.Size(191, 20);
            this.TBCheckNumber.TabIndex = 17;
            // 
            // TBBankName
            // 
            this.TBBankName.Location = new System.Drawing.Point(6, 135);
            this.TBBankName.Name = "TBBankName";
            this.TBBankName.Size = new System.Drawing.Size(191, 20);
            this.TBBankName.TabIndex = 18;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(578, 350);
            this.Controls.Add(this.label16);
            this.Controls.Add(this.TBMiddleName);
            this.Controls.Add(this.pnlvoid);
            this.Controls.Add(this.Transaction);
            this.Controls.Add(this.Submit);
            this.Controls.Add(this.ECK);
            this.Controls.Add(this.PCC);
            this.Controls.Add(this.CBTransactionType);
            this.Controls.Add(this.TBFirstName);
            this.Controls.Add(this.TBLastName);
            this.Controls.Add(this.TBAddress1);
            this.Controls.Add(this.TBZIP);
            this.Controls.Add(this.TBAddress2);
            this.Controls.Add(this.TBState);
            this.Controls.Add(this.TBCity);
            this.Controls.Add(this.label10);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Name = "Form1";
            this.Text = "Form1";
            this.PCC.ResumeLayout(false);
            this.PCC.PerformLayout();
            this.ECK.ResumeLayout(false);
            this.ECK.PerformLayout();
            this.pnlvoid.ResumeLayout(false);
            this.pnlvoid.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.TextBox TBCity;
        private System.Windows.Forms.TextBox TBState;
        private System.Windows.Forms.TextBox TBAddress2;
        private System.Windows.Forms.TextBox TBZIP;
        private System.Windows.Forms.TextBox TBCCNCode;
        private System.Windows.Forms.TextBox TBCCNumber;
        private System.Windows.Forms.TextBox TBAddress1;
        private System.Windows.Forms.TextBox TBLastName;
        private System.Windows.Forms.TextBox TBFirstName;
        private System.Windows.Forms.ComboBox CBTransactionType;
        private System.Windows.Forms.ComboBox CBCreditCardType;
        private System.Windows.Forms.Panel PCC;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.TextBox TBCCExpDate;
        private System.Windows.Forms.Panel ECK;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.TextBox TBBankAccountNumber;
        private System.Windows.Forms.TextBox TBBankRoutingNumber;
        private System.Windows.Forms.Button Submit;
        private System.Windows.Forms.Label Transaction;
        private System.Windows.Forms.Panel pnlvoid;
        private System.Windows.Forms.TextBox tbtransactionid;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.TextBox TBMiddleName;
        private System.Windows.Forms.Label label16;
        private System.Windows.Forms.TextBox TBBankName;
        private System.Windows.Forms.TextBox TBCheckNumber;
        private System.Windows.Forms.Label label18;
        private System.Windows.Forms.Label label17;
    }
}

Open in new window

0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139582
I reviewed your question and all the code. Actually your data is already set in the _dealInfo instance, after you click the submit button. Now I need to know what do you want to do after "submit". At least you will need a way to display what you have in the DealInfo, am I right?
0
 

Author Comment

by:HawaiiDragon
ID: 26139602
Correct. The class was provided to me by the boss and he wants all the information in that class so that that it will comunicate with the end users computer.
0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139638
That make sense. I think you will need to use the XML Serialization to send the DealInfo class to the end users' computer. What's installed on the customer's side? A windows program that also written by you? Or they already have a set of interface (or webservice) that you just need to invoke?
0
 

Author Comment

by:HawaiiDragon
ID: 26139686
they have an interface already set up. If I could of done it from scratch. It would of been much simpler. I really need thier webservice links for this project. I have a meeting with them at 1230 central time (30) min from now. Whats histerical is that they dont want XML they want HTML. I cant for the life of me figure out why but I will do as requested. Basicaly they wanted a new GUI (which I just sent you in last post) and they want it to be able to comunicate with thier (Premade) Classes.
0
 

Author Comment

by:HawaiiDragon
ID: 26139716
If its easier for you to explane how to do it in XML than I will make them adapt :)
0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139738
They must have a reason why they need the HTML, most likely it's what they were doing in the old system.  You need to know clearly about their interfaces during the meeting and then you can write the code to send the data. I suggest you hold on your winform project for a moment, focus on the end users' interfaces (what technoligy are they using, how to call their interfaces, it would be better to get some sample programs or unit test programs from them, etc)
Good luck.
0
 

Author Comment

by:HawaiiDragon
ID: 26139744
Can I let you know what I learn if I have more related Q?
0
 
LVL 9

Expert Comment

by:magicdlf
ID: 26139759
Yeah, leave me a message and I will be available after several hours. You can also post here to see other experts' comments. It's on your call.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question