예제 #1
0
        private void save_Click(object sender, EventArgs e)
        {
            var categories = new Categories();

            if (!string.IsNullOrEmpty(username.Text) && !string.IsNullOrEmpty(password.Text))
            {
                DsnCreds.SaveDsnCreds(_dsn, username.Text, password.Text);
                Close();
            }
            else
            {
                MessageBox.Show(@"Please select your suppliers table!", @"Emptied Successfully");
            }
        }
예제 #2
0
 private void DsnCredentials_Load(object sender, EventArgs e)
 {
     username.Text = DsnCreds.GetDsnCreds(_dsn)?.Username ?? "";
 }