Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
        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");
            }
        }