Exemple #1
0
 public Login_Form(Main_System MF, string QRcode_DB, string StaffDB, object sender, string cmd)
 {
     InitializeComponent();
     label_error.Text    = "";
     Main_Form           = MF;
     connectionQRcode_DB = QRcode_DB;
     connectionStaffDB   = StaffDB;
     btn_sender          = sender;
     delete_updateCmd    = cmd;
 }
 public Management_interface(string QRcode_DB, string StaffDB, Main_System MS)
 {
     InitializeComponent();
     Update_btn.Enabled     = false;
     Delete_btn.Enabled     = false;
     DownloadQR_btn.Enabled = false;
     connectionQRcode_DB    = QRcode_DB;
     connectionStaffDB      = StaffDB;
     MS_window = MS;
     Refush_GirdView();
     Initial_TablelistBox();
 }
Exemple #3
0
        public ShowInfo(List <Table_Row> table_row, Main_System Main_Form, String TableName, String Path)
        {
            Pic_pro = new Picture_Process();
            InitializeComponent();
            connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Path + ";";
            ID_text.Text     = table_row[0].Id;
            Name_text.Text   = table_row[0].Name;
            Sex_text.Text    = table_row[0].Sex;
            CarNum_text.Text = table_row[0].CarNumP;
            Job_text.Text    = table_row[0].Job;
            Main_Form_Get    = Main_Form;
            TableName_Get    = TableName;

            using (MemoryStream memStream = new MemoryStream(table_row[0].Photo))
            {
                Photo.Image = Image.FromStream(memStream);
            }

            //檢查進出狀況
            Check_In_Off();
        }