示例#1
0
        private void addObjectBtn_Click(object sender, EventArgs e)
        {
            Add_rent_object form = new Add_rent_object();

            form.ShowDialog();
            fill_ObjectsTable();
        }
示例#2
0
        private void editObjectBtn_Click(object sender, EventArgs e)
        {
            var name = get_SelectedName();

            if (name == null)
            {
                MessageBox.Show("No rent object selected");
                return;
            }

            Add_rent_object form = new Add_rent_object(name);

            form.ShowDialog();
            fill_ObjectsTable();
        }