c# - Employee is a namespace but is used like a type -


I have the work of this C # homework when I run the program, I get an error, "The employee is a namespace, but It is used like a type in line 18, which is 'public double pay;' The problem is that I do not see any mess. Can anyone help me fix this code, below is my current code. Any help would be greatly appreciated.

  Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Linq; Using System.Text; System.Windows.Forms; Usage of Employee Taxes {Public Partial Class Form 1: Forms (Private List and Employee Employee); Data T = new list, employee, & gt; (); public form 1 () {InitializeComponent ();} Private Zero GetD Eta (Rif employee information) {try {info.Worker_ID = int.Parse (employeebox.Text); Info .lastname = lastnamebox.Text; Info.firstname = firstnamebox.Text; Info.phone = int.Parse (Phonebox text); Info.salary = DoubleParse (Paypal Text);} Hold (Exception Pre) {Message Show box (ex.Message);}} Private Zero savebt_Click (Object Sender, EventArgs E) {save employees = new employee (); GateData (Riff save); dataList.Add (save); Employeebox.Clear (); Lastnamebox.Clear (); Firstnamebox.Clear (); Phonebox.Clear (); Salarybox.Clear (); Employeebox.focus (); } Private Zero employees bt_Click (Object Sender, EventArgs e) {string output; Employeelistbox.Items.Clear (); Forex Currency (Save Employee in a Data List) {Output = One Save. Worker_ID + "" + aSave.lastname + aSave.firstname + "Salary:" + Aswell Solaris; Employeelistbox.Items.Add (production); }}}}}  

you end your namepace employee Turn off the braces.

  using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; Using System.Windows.Forms; Namespace employee {Structured Staff} {Public Inc. Worker_ID; Public string last name; Public string first name; Public et phone; Public double pay; } Public Partial Category Form 1: Form {Private List & amp; Staff; Employee & gt; Data List = New List & Employee; & Gt; (); Public Form 1 () {Initialization (); } Private Zero GetData (RIF Employee Info) {try {info.Worker_ID = int.Parse (employeebox.Text); Info.lastname = lastnamebox.Text; Info.firstname = firstnamebox.Text; Info.phone = int.Parse (phonebox. Text); Info.salary = Double. Purse (pay box. Text); } Hold (Exception pre) {Message Box. Show (ex.Message); }} Private Zero savebt_Click (Object Sender, EventArgs E) {save employees = new employees (); Getadata (Riff Save); DataList.Add (save); Employeebox.Clear (); Lastnamebox.Clear (); Firstnamebox.Clear (); Phonebox.Clear (); Salarybox.Clear (); Employeebox.focus (); } Private Zero employees bt_Click (Object Sender, EventArgs e) {string output; Employeelistbox.Items.Clear (); Forex Currency (Save Employee in a Data List) {Output = One Save. Worker_ID + "" + aSave.lastname + aSave.firstname + "Salary:" + Aswell Solaris; Employeelistbox.Items.Add (production); }}}} // -> 1 extra paradigm is required  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -