Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.31 KB | None | 0 0
  1. using System;
  2. using System.Drawing;
  3. using System.IO;
  4. using System.Windows.Forms;
  5.  
  6. namespace IdentForm
  7. {
  8.     public partial class mFrm : Form
  9.     {
  10.        
  11.  
  12.         public mFrm()
  13.         {
  14.             InitializeComponent();
  15.         }
  16.  
  17.  
  18.        
  19.  
  20.         //Text Boxes (I need to know how to prevent certain data types from being entered into a TextBox)
  21.         private void name_TextChanged(object sender, EventArgs e)
  22.         {
  23.             string var = "";
  24.            
  25.             var = name.Text;
  26.             NameData(var);
  27.         }
  28.  
  29.         private void address_TextChanged(object sender, EventArgs e)
  30.         {
  31.             string meh = "";
  32.             meh = address.Text;
  33.         }
  34.  
  35.         private void phone_TextChanged(object sender, EventArgs e)
  36.         {
  37.             long ballsacks;
  38.            // ballsacks = phone.//What goes here for an empty long???
  39.         }
  40.  
  41.         private void dob_TextChanged(object sender, EventArgs e)
  42.         {
  43.             int ipshiz;
  44.             //ipshiz = dob. again, what the fuck goes here???
  45.         }
  46.  
  47.  
  48.  
  49.         //buttons
  50.         private void btnExit_Click(object sender, EventArgs e)
  51.         {
  52.             Application.Exit();
  53.         }
  54.  
  55.         private void btnGo_Click(object sender, EventArgs e)
  56.         {
  57.            
  58.         }
  59.  
  60.  
  61.  
  62.         //menu
  63.         private void exitToolStripMenuItem_Click(object sender, EventArgs e)
  64.         {
  65.             Application.Exit();
  66.         }
  67.  
  68.         private void toTextToolStripMenuItem_Click(object sender, EventArgs e)
  69.         {
  70.  
  71.         }
  72.  
  73.         private void toXMLBetaToolStripMenuItem_Click(object sender, EventArgs e)
  74.         {
  75.  
  76.         }
  77.  
  78.  
  79.         //Data passoff from Text Boxes...need to converge all four into one method seamlessly...
  80.  
  81.         public static void NameData(string one)
  82.         {
  83.             string ish = one;
  84.         }
  85.  
  86.         public static void AddressData(string two)
  87.         {
  88.             string ugh = two;
  89.         }
  90.  
  91.         public static void TelephoneData(long three)
  92.         {
  93.             long iffy = three;
  94.         }
  95.  
  96.         public static void DateOfBirth(int four)
  97.         {
  98.             int rawr = four;
  99.            
  100.         }
  101.  
  102.         //passoff conversion for the data types should go here
  103.         public static void StringData(string name, string address, long tnumber, int dob)
  104.         {
  105.  
  106.         }
  107.  
  108.      
  109.      
  110.  
  111.        
  112.  
  113.        
  114.     }
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement