示例#1
0
        private void toolStripButtonAddVisitor_Click(object sender, EventArgs e)
        {
            FormVisitorAddEdit frmVisEdd = new FormVisitorAddEdit();

            frmVisEdd.ShowDialog();
            this.visitorTableAdapter.Fill(this.accessControlSystemDataSet.Visitor);
        }
示例#2
0
        private void toolStripButtonEditVisitor_Click(object sender, EventArgs e)
        {
            FormVisitorAddEdit frmVisEdd = new FormVisitorAddEdit(
                Convert.ToUInt32(((DataRowView)this.visitorBindingSource.Current).Row["ID_visitor"].ToString()),
                ((DataRowView)this.visitorBindingSource.Current).Row["Second_name"].ToString(),
                ((DataRowView)this.visitorBindingSource.Current).Row["Name"].ToString(),
                ((DataRowView)this.visitorBindingSource.Current).Row["Patronymic"].ToString(),
                ms != null ? Image.FromStream(ms) : Properties.Resources.if_image_cancel_103591 as Bitmap,
                ((DataRowView)this.visitorBindingSource.Current).Row["Phone"].ToString(),
                ((DataRowView)this.visitorBindingSource.Current).Row["Passport"].ToString()
                );

            frmVisEdd.ShowDialog();
            this.visitorTableAdapter.Fill(this.accessControlSystemDataSet.Visitor);
        }