コード例 #1
0
        public UniCardDisplay(UniCard uni)
        {
            InitializeComponent();

            usernameLabel.Text  = uni.Username;
            nameLabel.Text      = uni.Name;
            issueDateLabel.Text = uni.IssueDate;
            expiresLabel.Text   = uni.Expires;
            barcodeLabel.Text   = uni.Barcode;
        }
コード例 #2
0
        public UniCardEdit(UniCard uni)
        {
            InitializeComponent();
            usernameTextBox.Text = uni.Username;
            nameTextBox.Text     = uni.Name;

            string[] temp = uni.IssueDate.Split('/');
            issueDayTextBox.Text    = temp[0];
            issueMonthComboBox.Text = temp[1];
            issueYearTextBox.Text   = temp[2];

            expiresTextBox.Text = uni.Expires;
            barcodeTextBox.Text = uni.Barcode;
        }