public void Close() { try { objClosePage = new DelClosePage(ClosePage); this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objClosePage); //if (this.ConfID != 0) //{ // objClosePage = new DelClosePage(ClosePage); // this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objClosePage); //} //else //{ //MessageBoxResult MResult = MessageBox.Show("Want to Confirm Close Operation?", "Close Page", MessageBoxButton.YesNo); //if (MResult == MessageBoxResult.Yes) //{ //objClosePage = new DelClosePage(ClosePage); //this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objClosePage); //} //else //{ } // } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Close()", "Controls\\VMuktiGrid\\Page\\TabItem.cs"); } }