public void OpenPasswordPanel(UMPUserControl content)
 {
     try
     {
         PopupPanel.Content = content;
         PopupPanel.IsOpen  = true;
     }
     catch (Exception ex)
     {
         ShowException(ex.Message);
     }
 }
Beispiel #2
0
 public void SelectSeat(UMPUserControl uc, string title)
 {
     try
     {
         PopupPanel.Content = uc;
         PopupPanel.Title   = title;
         PopupPanel.IsOpen  = true;
     }
     catch (Exception ex)
     {
         ShowException(ex.Message);
     }
 }
Beispiel #3
0
        private void Init()
        {
            try
            {
                if (WidgetItem == null)
                {
                    return;
                }
                WidgetItem.WidgetView = this;
                DataContext           = WidgetItem;
                CurrentApp            = WidgetItem.CurrentApp;
                ListBasicDataInfos    = WidgetItem.ListBasicDataInfos;
                InitToolBarBtns();
                UMPUserControl view = null;
                switch (WidgetItem.WidgetID)
                {
                case S1206Consts.WIDGET_ID_FAVORITEMODULE:
                    view = new UCFavoriteModuleView();
                    break;

                case S1206Consts.WIDGET_ID_OPTHISTORY:
                    view = new UCOptLogView();
                    break;

                case S1206Consts.WIDGET_ID_FASTQUERY:
                    view = new UCFastQueryView();
                    break;
                }
                if (view != null)
                {
                    mView           = view;
                    view.CurrentApp = CurrentApp;
                    var widgetView = view as IWidgetView;
                    widgetView.WidgetItem         = WidgetItem;
                    widgetView.ListBasicDataInfos = ListBasicDataInfos;
                    widgetView.IsCenter           = WidgetItem.IsCenter;
                    widgetView.IsFull             = WidgetItem.IsFull;
                    BorderContent.Child           = view;
                }
                CreateToolBarBtns();

                InitButtonLang();
            }
            catch (Exception ex)
            {
                ShowException(ex.Message);
            }
        }
Beispiel #4
0
 public void SetView(UMPUserControl view)
 {
     BorderContent.Child = view;
 }