public voucher(gv.mode md, int num, gv.vouchertype typ, DateTime vouchdate) { VouchTyp = typ; VouchDate = vouchdate; Num = num; Mode = md; Size = new Size(500, 500); AutoScroll = true; WindowState = FormWindowState.Maximized; Load += new EventHandler(load); lbl1 = new Label { Text = "VOUCHER NUMBER", Parent = this, Location = new Point(0, 0), AutoSize = true }; tb1 = new TextBox { Parent = this, Location = new Point(150, 0), Width = 300 }; lbl2 = new Label { Text = "VOUCHER TYPE", Parent = this, Location = new Point(0, 30) }; cb1 = new ComboBox { DataSource = Enum.GetValues(typeof(gv.vouchertype)), Parent = this, Location = new Point(100, 30) }; lbl3 = new Label { Text = "VOUCHER DATE", Parent = this, Location = new Point(0, 60) }; dtp = new DateTimePicker { Parent = this, Location = new Point(100, 60) }; dgv = new DataGridView { Parent = this, Location = new Point(0, 90), Width = 475, Height = 300 }; btn1 = new Button { Text = "&SAVE", Parent = this, Location = new Point(200, 390) }; btn2 = new Button { Text = "&DELETE", Parent = this, Location = new Point(300, 390) }; }
public user(gv.mode md, int num) { Num = num; Mode = md; WindowState = FormWindowState.Maximized; Load += new EventHandler(load); lbl1 = new Label { Location = new Point(0, 0), Text = "User Name", Parent = this }; tb1 = new TextBox { Location = new Point(100, 0), Parent = this }; lbl2 = new Label { Location = new Point(0, 30), Text = "Password", Parent = this }; tb2 = new TextBox { Location = new Point(100, 30), Parent = this }; btn1 = new Button { Text = "SAVE", Location = new Point(100, 180), Parent = this }; btn1.Click += new EventHandler(savclick); btn2 = new Button { Text = "Delete", Location = new Point(300, 180), Parent = this }; btn2.Click += new EventHandler(delclick); if (Mode == gv.mode.modify || Mode == gv.mode.newentry) { btn1.Visible = true; btn2.Visible = false; } if (Mode == gv.mode.delete) { btn1.Visible = false; btn2.Visible = true; } }
public party(gv.mode md, int num) { Num = num; Mode = md; Size = new Size(500, 500); AutoScroll = true; WindowState = FormWindowState.Maximized; Load += new EventHandler(load); lbl1 = new Label { Text = "Party Name", Location = new Point(0, 0), Parent = this }; tb1 = new TextBox { Location = new Point(100, 0), Width = 300, Parent = this }; lbl2 = new Label { Text = "Address", Location = new Point(0, 30), Parent = this }; tb2 = new TextBox { Location = new Point(100, 30), Width = 300, Parent = this }; lbl3 = new Label { Text = "Address1", Location = new Point(0, 60), Parent = this }; tb3 = new TextBox { Location = new Point(100, 60), Width = 300, Parent = this }; lbl4 = new Label { Text = "Station", Location = new Point(0, 90), Parent = this }; tb4 = new TextBox { Location = new Point(100, 90), Width = 300, Parent = this }; lbl5 = new Label { Text = "Phone1", Location = new Point(0, 120), Parent = this }; tb5 = new TextBox { Location = new Point(100, 120), Width = 300, Parent = this }; lbl6 = new Label { Text = "Phone2", Location = new Point(0, 120), Parent = this }; tb6 = new TextBox { Location = new Point(100, 120), Width = 300, Parent = this }; lbl7 = new Label { Text = "Phone3", Location = new Point(0, 150), Parent = this }; tb7 = new TextBox { Location = new Point(100, 150), Width = 300, Parent = this }; lbl8 = new Label { Text = "Phone4", Location = new Point(0, 180), Parent = this }; tb8 = new TextBox { Location = new Point(100, 180), Width = 300, Parent = this }; lbl9 = new Label { Text = "Phone5", Location = new Point(0, 210), Parent = this }; tb9 = new TextBox { Location = new Point(100, 210), Width = 300, Parent = this }; lbl10 = new Label { Text = "Phone6", Location = new Point(0, 240), Parent = this }; tb10 = new TextBox { Location = new Point(100, 240), Width = 300, Parent = this }; lbl11 = new Label { Text = "email", Location = new Point(0, 270), Parent = this }; tb11 = new TextBox { Location = new Point(100, 270), Width = 300, Parent = this }; lbl12 = new Label { Text = "email1", Location = new Point(0, 300), Parent = this }; tb12 = new TextBox { Location = new Point(100, 300), Width = 300, Parent = this }; lbl13 = new Label { Text = "email2", Location = new Point(0, 330), Parent = this }; tb13 = new TextBox { Location = new Point(100, 330), Width = 300, Parent = this }; lbl14 = new Label { Text = "Contact Person", Location = new Point(0, 360), Parent = this }; tb14 = new TextBox { Location = new Point(100, 360), Width = 300, Parent = this }; lbl15 = new Label { Text = "Designation", Location = new Point(0, 390), Parent = this }; tb15 = new TextBox { Location = new Point(100, 390), Width = 300, Parent = this }; lbl16 = new Label { Text = "STCST Number", Location = new Point(0, 420), Parent = this }; tb16 = new TextBox { Location = new Point(100, 420), Width = 300, Parent = this }; lbl17 = new Label { Text = "VAT Number", Location = new Point(0, 450), Parent = this }; tb17 = new TextBox { Location = new Point(100, 450), Width = 300, Parent = this }; lbl18 = new Label { Text = "GST Number", Location = new Point(0, 480), Parent = this }; tb18 = new TextBox { Location = new Point(100, 480), Width = 300, Parent = this }; lbl19 = new Label { Text = "Drug Lic. Number 20B", Location = new Point(0, 510), Parent = this }; tb19 = new TextBox { Location = new Point(100, 510), Width = 300, Parent = this }; lbl20 = new Label { Text = "Drug Lic. Number 21B", Location = new Point(0, 540), Parent = this }; tb20 = new TextBox { Location = new Point(100, 540), Width = 300, Parent = this }; lbl21 = new Label { Text = "State Code", Location = new Point(0, 570), Parent = this }; tb21 = new TextBox { Location = new Point(100, 570), Width = 300, Parent = this }; lbl22 = new Label { Text = "Group Code", Location = new Point(0, 600), Parent = this }; tb22 = new TextBox { Location = new Point(100, 600), Width = 300, Parent = this }; pbr = new ProgressBar { Visible = false, Location = new Point(0, 720), Width = 475, Parent = this }; lblpercent = new Label { Location = new Point(200, 750), Parent = this }; lblprogress = new Label { Location = new Point(200, 780), Parent = this }; bkw = new BackgroundWorker { WorkerReportsProgress = true }; bkw.DoWork += new DoWorkEventHandler(dowork); bkw.ProgressChanged += new ProgressChangedEventHandler(progresschanged); bkw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(workcompleted); btn1 = new Button { Text = "SAVE", Location = new Point(0, 630), Parent = this }; btn1.Click += new EventHandler(savclick); btn2 = new Button { Text = "DELETE", Location = new Point(100, 630), Parent = this }; btn2.Click += new EventHandler(delclick); if (Mode == gv.mode.modify || Mode == gv.mode.newentry) { btn1.Visible = true; btn2.Visible = false; } if (Mode == gv.mode.delete) { btn1.Visible = false; btn2.Visible = true; } }
public Client(gv.mode md, int num) { Num = num; Mode = md; lbl1 = new Label { Location = new Point(0, 0), Text = "Firm Name", Parent = this }; tb1 = new TextBox { Location = new Point(100, 0), Width = 300, Parent = this }; lbl2 = new Label { Location = new Point(0, 30), Text = "Address", Parent = this }; tb2 = new TextBox { Location = new Point(100, 30), Width = 300, Parent = this }; lbl3 = new Label { Location = new Point(0, 60), Text = "Address1", Parent = this }; tb3 = new TextBox { Location = new Point(100, 60), Width = 300, Parent = this }; lbl4 = new Label { Location = new Point(0, 90), Text = "Email Address", Parent = this }; tb4 = new TextBox { Location = new Point(100, 90), Width = 300, Parent = this }; lbl5 = new Label { Location = new Point(0, 120), Text = "Email Password", Parent = this }; tb5 = new TextBox { Location = new Point(100, 120), Width = 300, Parent = this }; lbl6 = new Label { Location = new Point(0, 150), Text = "Phone 1", Parent = this }; tb6 = new TextBox { Location = new Point(100, 150), Width = 300, Parent = this }; lbl7 = new Label { Location = new Point(0, 180), Text = "Phone 2", Parent = this }; tb7 = new TextBox { Location = new Point(100, 180), Width = 300, Parent = this }; lbl8 = new Label { Location = new Point(0, 210), Text = "Phone 3", Parent = this }; tb8 = new TextBox { Location = new Point(100, 210), Width = 300, Parent = this }; lbl9 = new Label { Location = new Point(0, 240), Text = "Phone 4", Parent = this }; tb9 = new TextBox { Width = 300, Location = new Point(100, 240), Parent = this }; lbl10 = new Label { Location = new Point(0, 270), Text = "Phone 5", Parent = this }; tb10 = new TextBox { Width = 300, Location = new Point(100, 270), Parent = this }; lbl11 = new Label { Location = new Point(0, 300), Text = "Phone 6", Parent = this }; tb11 = new TextBox { Width = 300, Location = new Point(100, 300), Parent = this }; lbl12 = new Label { Location = new Point(0, 330), Text = "STCST Number", Parent = this }; tb12 = new TextBox { Width = 300, Location = new Point(100, 330), Parent = this }; lbl13 = new Label { Location = new Point(0, 360), Text = "VAT Number", Parent = this }; tb13 = new TextBox { Width = 300, Location = new Point(100, 360), Parent = this }; lbl14 = new Label { Location = new Point(0, 390), Text = "DL Number 20B", Parent = this }; tb14 = new TextBox { Width = 300, Location = new Point(100, 390), Parent = this }; lbl15 = new Label { Location = new Point(0, 420), Text = "DL Number 21B", Parent = this }; tb15 = new TextBox { Width = 300, Location = new Point(100, 420), Parent = this }; lbl16 = new Label { Location = new Point(0, 450), Text = "Company Logo", Parent = this }; tb16 = new TextBox { Width = 300, Location = new Point(100, 450), Text = "", Parent = this }; btn1 = new Button { Text = "Choose File", Location = new Point(400, 450), Parent = this }; btn1.Click += new EventHandler(choclick); pcb = new PictureBox { Location = new Point(100, 480), BorderStyle = BorderStyle.FixedSingle, SizeMode = PictureBoxSizeMode.StretchImage, Width = 300, Height = 150, Parent = this }; lbl17 = new Label { Location = new Point(0, 660), Text = "Company1", Parent = this }; tb17 = new TextBox { Width = 300, Location = new Point(100, 660), Text = "", Parent = this }; lbl18 = new Label { Location = new Point(0, 690), Text = "Company2", Parent = this }; tb18 = new TextBox { Width = 300, Location = new Point(100, 690), Text = "", Parent = this }; lbl19 = new Label { Location = new Point(0, 720), Text = "Company3", Parent = this }; tb19 = new TextBox { Width = 300, Location = new Point(100, 720), Text = "", Parent = this }; lbl20 = new Label { Location = new Point(0, 750), Text = "Company4", Parent = this }; tb20 = new TextBox { Width = 300, Location = new Point(100, 750), Text = "", Parent = this }; lbl21 = new Label { Location = new Point(0, 780), Text = "Jurisdiction", Parent = this }; tb21 = new TextBox { Width = 300, Location = new Point(100, 780), Text = "", Parent = this }; lbl22 = new Label { Location = new Point(0, 810), Text = "Brand Name", Parent = this }; tb22 = new TextBox { Width = 300, Location = new Point(100, 810), Text = "", Parent = this }; lbl23 = new Label { Location = new Point(0, 840), Text = "God Name", Parent = this }; tb23 = new TextBox { Width = 300, Location = new Point(100, 840), Text = "", Parent = this }; lbl24 = new Label { Location = new Point(0, 870), Text = "S.M.T.P. Server", Parent = this }; tb24 = new TextBox { Width = 300, Location = new Point(100, 870), Text = "", Parent = this }; lbl25 = new Label { Location = new Point(0, 900), Text = "Port", Parent = this }; tb25 = new TextBox { Width = 300, Location = new Point(100, 900), Text = "587", Parent = this }; lbl26 = new Label { Location = new Point(0, 930), Text = "Financial Year From", Parent = this }; dtp1 = new DateTimePicker { Location = new Point(100, 930), Parent = this }; lbl27 = new Label { Location = new Point(0, 960), Text = "Financial Year To", Parent = this }; dtp2 = new DateTimePicker { Location = new Point(100, 960), Parent = this }; lbl28 = new Label { Location = new Point(0, 990), Text = "GST Number", Parent = this }; tb26 = new TextBox { Width = 300, Location = new Point(100, 990), Parent = this }; btn2 = new Button { Text = "SAVE", Location = new Point(260, 1050), Parent = this }; btn2.Click += new EventHandler(savclick); btn3 = new Button { Text = "DELETE", Location = new Point(260, 1050), Parent = this }; btn3.Click += new EventHandler(delclick); btn4 = new Button { Text = "PRINT", Location = new Point(260, 1080), Parent = this }; btn4.Click += new EventHandler(repclick); sp1 = new StatusBarPanel { AutoSize = StatusBarPanelAutoSize.Spring, Text = gv.listfile }; sp2 = new StatusBarPanel { AutoSize = StatusBarPanelAutoSize.Spring, Text = gv.mdbfile }; sb = new StatusBar { ShowPanels = true, Parent = this }; sb.Panels.Add(sp1); sb.Panels.Add(sp2); if (Mode == gv.mode.newentry || Mode == gv.mode.modify) { btn2.Visible = true; btn3.Visible = false; btn4.Visible = false; } if (Mode == gv.mode.delete) { btn2.Visible = false; btn3.Visible = true; btn4.Visible = false; } if (Mode == gv.mode.view) { btn2.Visible = false; btn3.Visible = false; btn4.Visible = true; } Size = new Size(500, 500); WindowState = FormWindowState.Maximized; AutoScroll = true; Load += new EventHandler(load); }