Login Formaning ko‘rinishi
Glossary Formaga:
PictureBox
Panel
ListBox
Button
Label
TextBox
komponentalarini tashlaymiz.
O`zgarishlar:
this.components=System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GlossaryForm));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
this.lboGlossary = new System.Windows.Forms.ListBox();
this.btnExit = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.btnSearch = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.txtSearch = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(1253, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(94, 55);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 7;
this.pictureBox1.TabStop = false;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.panel2.Controls.Add(this.lboGlossary);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 54);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1344, 507);
this.panel2.TabIndex = 7;
//
// lboGlossary
//
this.lboGlossary.BackColor = System.Drawing.SystemColors.ButtonFace;
this.lboGlossary.Dock = System.Windows.Forms.DockStyle.Fill;
this.lboGlossary.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lboGlossary.FormattingEnabled = true;
this.lboGlossary.ItemHeight = 15;
this.lboGlossary.Items.AddRange(new object[] {
"Sign In\t\t\t\t\tTizimga kiring",
"Processor Id\t\t\t\tProtsessor identifikatori",
"Base Board Id\t\t\t\tBazaviy kengash identifikatori",
"BIOS Date\t\t\t\tBIOS sanasi",
"Password\t\t\t\tMaxfiy soʻz",
"Login\t\t\t\t\tKirish",
"Enter Password\t\t\t\tMaxfiy soʻzni kiriting",
"Invalid Password\t\t\t\tMaxfiy soʻz haqiqiy emas",
"-----------------\t",
"Face Recognition Employee Attendance System\tYuzni tanib olish xodimlarining qatna" +
"shish tizimi",
"Reason Software Corporation\t\t\tReason dasturiy ta\'minot korporatsiyasi",
"Developed by Sherzod Khoja Sulaiman Siddik\tSherzod Xo\'ja Sulaymon Siddiq tomonida" +
"n ishlab chiqilgan",
"Register Employee\t\t\t\tXodimni ro\'yxatdan o\'tkazish",
"Clock In\t\t\t\t\tKirish soati",
"Clock Out\t\t\t\t\tChiqish soati",
"Report\t\t\t\t\tHisobot",
"Glossary\t\t\t\t\tGlossariy",
"About\t\t\t\t\tDastur haqida",
"Logout\t\t\t\t\tTizimdan chiqish",
"Exit\t\t\t\t\tChiqish",
"-------------------\t",
"Face Detection Using WebCamera\t\tWeb Camera yordamida yuzni aniqlash",
"Device\t\t\t\t\tUskuna(qurilma)",
"Start\t\t\t\t\tBoshlash",
"Reset\t\t\t\t\tQayta tiklash(tozalash)",
"Pause\t\t\t\t\tToʻxtatish",
"Capture\t\t\t\t\tQoʻlga kiritish(rasmga olish)",
"Image Name\t\t\t\tRasmning nomi",
"File Name\t\t\t\tFaylning nomi",
"Save\t\t\t\t\tSaqlash",
"------------------\t",
"Employee Attendance Report Form\t\tXodimlarning qatnashish to\'g\'risidagi hisoboti s" +j
"hakli",
"Open CSV File\t\t\t\tCSV faylini ochish",
"Employee Clock In\t\t\t\tXodimlar kirish soati",
"Employee Clock Out\t\t\tXodimlar chiqish soati",
"Open Excel File\t\t\t\tExcel faylini ochish",
"File Name\t\t\t\tFaylning nomi",
"Select Table\t\t\t\tJadvalni tanlash",
"Sheet\t\t\t\t\tVaraq",
"Name\t\t\t\t\tNom",
"Time\t\t\t\t\tVaqt",
"Employee Clock In and Clock Out\t\tXodimlarning kirish va chiqish soati",
"Select Employee Clock In:\t\t\tXodimlar kirish soatini tanlang",
"Select Employee ClockOut:\t\t\tXodimlar chiqish soatini tanlang",
"Date\t\t\t\t\tSana",
"Monday\t\t\t\t\tDushanba",
"Tuesday\t\t\t\t\tSeshanba",
"Wednesday\t\t\t\tChorshanba",
"Thursday\t\t\t\t\tPayshanba",
"Friday\t\t\t\t\tJuma",
"Saturday\t\t\t\t\tShanba",
"Sunday\t\t\t\t\tYakshanba",
"January\t\t\t\t\tYanvar",
"February\t\t\t\t\tFevral",
"March\t\t\t\t\tMart",
"April\t\t\t\t\tAprel",
"May\t\t\t\t\tMay",
"June\t\t\t\t\tIyun",
"July\t\t\t\t\tIyul",
"August\t\t\t\t\tAvgust",
"September\t\t\t\tSentabr",
"October\t\t\t\t\tOktabr",
"November\t\t\t\tNoyabr",
"December\t\t\t\tDekabr"});
this.lboGlossary.Location = new System.Drawing.Point(0, 0);
this.lboGlossary.Name = "lboGlossary";
this.lboGlossary.Size = new System.Drawing.Size(1344, 507);
this.lboGlossary.TabIndex = 3;
//
// btnExit
//
this.btnExit.BackColor = System.Drawing.Color.OrangeRed;
this.btnExit.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnExit.FlatAppearance.BorderSize = 0;
this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnExit.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.btnExit.Location = new System.Drawing.Point(471, 14);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(104, 27);
this.btnExit.TabIndex = 6;
this.btnExit.Text = "Exit";
this.btnExit.UseVisualStyleBackColor = false;
this.btnExit.Visible = false;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.btnExit);
this.panel1.Controls.Add(this.btnSearch);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.txtSearch);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1344, 54);
this.panel1.TabIndex = 6;
//
// btnSearch
//
this.btnSearch.BackColor = System.Drawing.Color.DodgerBlue;
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSearch.FlatAppearance.BorderSize = 0;
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnSearch.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.btnSearch.Location = new System.Drawing.Point(348, 14);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(104, 27);
this.btnSearch.TabIndex = 2;
this.btnSearch.Text = "Search";
this.btnSearch.UseVisualStyleBackColor = false;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.label1.Location = new System.Drawing.Point(29, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(59, 18);
this.label1.TabIndex = 4;
this.label1.Text = "Search:";
//
// txtSearch
//
this.txtSearch.BackColor = System.Drawing.SystemColors.ControlDarkDark;
this.txtSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtSearch.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.txtSearch.Location = new System.Drawing.Point(94, 14);
this.txtSearch.Multiline = true;
this.txtSearch.Name = "txtSearch";
this.txtSearch.Size = new System.Drawing.Size(236, 27);
this.txtSearch.TabIndex = 1;
//
// GlossaryForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1344, 561);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "GlossaryForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Glossary Form";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.GlossaryForm_FormClosed);
this.Load += new System.EventHandler(this.GlossaryForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel2.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.ListBox lboGlossary;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtSearch;
Umumiy kod: GlossaryForm.cs faylining kodlari:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Face_Recognition_Attendance_System
{
public partial class GlossaryForm : Form
{
private static GlossaryForm _instance;
public static GlossaryForm instance
{
get
{
if (_instance == null)
{
_instance = new GlossaryForm();
}
return _instance;
}
}
public GlossaryForm()
{
InitializeComponent();
}
private void btnSearch_Click(object sender, EventArgs e)
{
lboGlossary.SelectedIndex = lboGlossary.FindString(txtSearch.Text);
}
private void btnExit_Click(object sender, EventArgs e)
{
_instance = null;
}
private void GlossaryForm_Load(object sender, EventArgs e)
{
}
private void GlossaryForm_FormClosed(object sender, FormClosedEventArgs e)
{
_instance = null;
}
}
}
Do'stlaringiz bilan baham: |