コード例 #1
0
        private void addroombt_Click(object sender, RoutedEventArgs e)
        {
            AddRoom wnd = new AddRoom();

            wnd.ShowDialog();
            UpdateWND();
        }
コード例 #2
0
        private void btupdroom_Click(object sender, RoutedEventArgs e)
        {
            RoomDto item = dataGridRoom.SelectedItem as RoomDto;

            if (item == null)
            {
                MessageBox.Show("Ничего не было выбрано для изменения ╮( ̄ω ̄)╭ ", "Какой коwмар!");
                return;
            }

            AddRoom wnd = new AddRoom(item);

            wnd.ShowDialog();
            UpdateWND();
        }