コード例 #1
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            string Quote = richTextBox1.Text;

            if (!string.IsNullOrEmpty(Quote))
            {
                QuoteBLL.AddQuotes(Quote);
                DataTable dt = QuoteBLL.LoadQuotes();
                dataGridView1.DataSource = dt;
                dataGridView1.Refresh();
            }
        }
コード例 #2
0
        public QuoteManagementForm(int StaffId, int Permission)
        {
            refStaffId    = StaffId;
            refpermission = Permission;
            InitializeComponent();
            DataTable dt = QuoteBLL.LoadQuotes();

            dataGridView1.DataSource = dt;
            lblAddQuote.Text         = SportRegistrationSystem.lblAddQuote;
            lblQuoteList.Text        = SportRegistrationSystem.lblQuoteList;
            btnCancel.Text           = SportRegistrationSystem.lblCancel;
            btnSubmit.Text           = SportRegistrationSystem.lblSubmit;
        }