at the end of code i had used namespace so its" Dialog class" only..