예제 #1
0
        private void ScenarioControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListBox       scenarioListBox = sender as ListBox;
            ScenarioModel s = scenarioListBox.SelectedItem as ScenarioModel;

            if (s != null)
            {
                ScenarioFrame.Navigate(s.ClassType);
                if (Window.Current.Bounds.Width < 640)
                {
                    Spiltter.IsPaneOpen = false;
                }
            }
        }
예제 #2
0
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            ScenarioModel s = value as ScenarioModel;

            return((Main.Current.Scenarios.IndexOf(s) + 1) + ")" + s.Title);
        }
예제 #3
0
 public Main()
 {
     this.InitializeComponent();
     Current   = this;
     Scenarios = ScenarioModel.scenariosShow();
 }