示例#1
0
        private void btn_New_Click(object sender, EventArgs e)
        {
            LocationCard mc = new LocationCard();

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

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

            mc.Location_ID = radGridView1.SelectedRows[0].Cells[Location_table.Location_ID].Value.MakeString();

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