예제 #1
0
파일: View.cs 프로젝트: CraigCary/roduino
        public virtual void Ajaxpopup(object source, RoutedEventArgs args)
        {
            Control b = (Control)source;
            RoDuinoPopupWindow popup = new RoDuinoPopupWindow(b.Tag + "", propertyBag);
            NavigatorFactory.Navigator.RoDuinoPopupWindow = popup;
            //extract setting from Tag

            popup.ParseSettings(b.Tag.ToString());
            popup.ShowDialog();
        }
예제 #2
0
        //        private PartialView ReinstantiatePartialView(string viewName)
        //        {
        //            Type ty = partialViews[viewName].GetType();
        //            PartialView view = (PartialView)Activator.CreateInstance(ty);
        //            this.partialViews[viewName] = view;
        //            return view;
        //        }

        private void ClosePopupIfExists()
        {
            if (popupWindow != null)
            {
                popupWindow.Close();
                popupWindow = null;
            }
        }