示例#1
0
        // ADD
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            SecondForm form = new SecondForm();

            form.ShowDialog();
            Users.Add(form.User);
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();
            var lp   = new Lichtpunkt();
            var mast = new Mast();
            var s    = new SecondForm();

            s.ShowDialog();
        }
        public void Save(String firstName, String lastName)
        {
            string _firstname = firstName;

            Form.Invoke(new Action(() =>
            {
                Form.Hide();
            }));
            SecondForm frm = new SecondForm(firstName);

            frm.ShowDialog();
        }
示例#4
0
 // UPDATE
 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (listBox1.SelectedItem != null)
     {
         User       selUser = (User)listBox1.SelectedItem;
         SecondForm form    = new SecondForm(selUser);
         form.ShowDialog();
         Users.ResetBindings();
         //listBox1.DataSource = null;
         //listBox1.DataSource = users;
     }
 }
示例#5
0
        private void button1_Click(object sender, EventArgs e)
        {
            SecondForm form = new SecondForm(textBox1.Text);

            form.UserName = textBox1.Text;
            if (DialogResult.OK == form.ShowDialog())
            {
            }                                             //ShowDialog invokes the modal form
            textBox1.Text = form.UserName;
            if (form != null)
            {
                form.Close();
            }
            form          = new SecondForm();
            form.UserName = textBox1.Text;
            form.Visible  = true;
            form.Show(this);
        }
示例#6
0
文件: Form1.cs 项目: dimashmundiak/DB
        private void button9_Click(object sender, EventArgs e)
        {
            var secondQuery = new SecondForm();

            secondQuery.ShowDialog();
        }