Exemplo n.º 1
0
        private void btn_New_Click(object sender, EventArgs e)
        {
            ModelCard mc = new ModelCard();

            mc.Model_ID = "-1";
            NavBar.Navigate(mc, Globals.GetParent(this.Parent.Parent), this);

            Close();
        }
Exemplo n.º 2
0
        private void btn_Card_Click(object sender, EventArgs e)
        {
            if (radGridView1.SelectedRows.Count < 1)
            {
                MessageBox.Show("Изберете ред!");
                return;
            }
            ModelCard mc = new ModelCard();

            mc.Model_ID = radGridView1.SelectedRows[0].Cells[Model_table.Model_ID].Value.MakeString();

            NavBar.Navigate(mc, Globals.GetParent(this.Parent.Parent), this);
            Close();
        }