/// <summary> /// 委托跳转初始化菜单 /// </summary> /// <param name="dest">跳转目标</param> /// <param name="arg">携带参数</param> public void initInstSCMenuByJump(SCREEN_JUMP dest, object arg,InstScreen instScreen) { if (dest == SCREEN_JUMP.INSTSC_MENU) { try { if(this.instScreen == null) { this.instScreen = instScreen; } ItemType item = arg as ItemType; showMenuByItem(item); } catch (Exception) { } this.Visibility = Visibility.Visible; } }
/// <summary> /// 委托跳转初始化设置项 /// </summary> /// <param name="dest">跳转目标</param> /// <param name="arg">携带参数</param> public void initInstSCSettingByJump(SCREEN_JUMP dest, object arg,InstScreen instScreen) { if (dest == SCREEN_JUMP.INSTSC_SETTING) { try { if(this.instScreen == null) { this.instScreen = instScreen; } SettingData setting = arg as SettingData; Setting_Grid.DataContext = setting; SettingContent_ListBox.SelectedIndex = 0; SettingContent_ScrollViewer.ScrollToVerticalOffset(0); this.Visibility = Visibility.Visible; } catch (Exception) { } } }