Provides data for frame navigation events.
상속: NavigationBaseEventArgs
예제 #1
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     Messenger.Default.Send <NavigationMessage>(new NavigationMessage()
     {
         IsRefreshRequested = true
     });
 }
        void IContent.OnNavigatedTo(NavigationEventArgs e)
        {
            DBInformationButton.ToolTip = MainWindow.ConnectionName;
            InterfaceHelpers.CurrentPage = e.Source.OriginalString;

            // If Data selection was skipped or no fields chosen the mining should not try to start.
            if (MainWindow.MatrixSelection.MatrixFields.Count == 0)
            {
                StartCalculationButton.IsEnabled = false;
                MiningInfo.BBCode = "You need to select data before you start mining.";
            }
            // If no miner is chosen, don't try anything stupid.
            else if (!MinerSettings.IsAlgorithmSet)
            {
                StartCalculationButton.IsEnabled = false;
                MiningInfo.BBCode = "You need to select a mining algorithm before you start mining.";
            }
            else
            {
                StartCalculationButton.IsEnabled = true;
                MiningInfo.BBCode = "Click 'Start' to start mining " +
                    MainWindow.MatrixSelection.GetFields().Count +
                    " Fields using the " +
                    MinerSettings.MinerName + ".";
            }
        }
예제 #3
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     if (App.Server != null)
     {
         btnStartLocal.IsEnabled = false;
     }
 }
예제 #4
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     TxtC.Text = ConfigHelper.C;
     TxtCXX.Text = ConfigHelper.CXX;
     TxtCXX11.Text = ConfigHelper.CXX11;
     TxtJavac.Text = ConfigHelper.Javac;
     TxtJava.Text = ConfigHelper.Java;
     TxtPascal.Text = ConfigHelper.Pascal;
     TxtPython27.Text = ConfigHelper.Python27;
     TxtPython33.Text = ConfigHelper.Python33;
     TxtRuby.Text = ConfigHelper.Ruby;
     TxtDirFPC.Text = ConfigHelper.Dir_fpc;
     TxtDirGcc.Text = ConfigHelper.Dir_gcc;
     TxtDirGccInc.Text = ConfigHelper.Dir_gccinc;
     TxtDirGccLib.Text = ConfigHelper.Dir_gcclib;
     TxtDirJDK.Text = ConfigHelper.Dir_jdk;
     TxtDirPy27.Text = ConfigHelper.Dir_py27;
     TxtDirPy33.Text = ConfigHelper.Dir_py33;
     TxtDirRb.Text = ConfigHelper.Dir_rb;
     /*
     TxtC.Text = App.Server.GetConfig(ConfigKey.Compiler.C) ?? ConfigKey.Compiler.DefaultC;
     TxtCXX.Text = App.Server.GetConfig(ConfigKey.Compiler.CXX) ?? ConfigKey.Compiler.DefaultCXX;
     TxtJavac.Text = App.Server.GetConfig(ConfigKey.Compiler.Javac) ?? ConfigKey.Compiler.DefaultJavac;
     TxtJava.Text = App.Server.GetConfig(ConfigKey.Compiler.Java) ?? ConfigKey.Compiler.DefaultJava;
     TxtPascal.Text = App.Server.GetConfig(ConfigKey.Compiler.Pascal) ?? ConfigKey.Compiler.DefaultPascal;
     TxtPython27.Text = App.Server.GetConfig(ConfigKey.Compiler.Python27) ?? ConfigKey.Compiler.DefaultPython27;
     TxtPython33.Text = App.Server.GetConfig(ConfigKey.Compiler.Python33) ?? ConfigKey.Compiler.DefaultPython33;
     TxtRuby.Text = App.Server.GetConfig(ConfigKey.Compiler.Ruby) ?? ConfigKey.Compiler.DefaultRuby;
      * */
 }
예제 #5
0
        public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            //find test cases
            string[] files = System.IO.Directory.GetFiles(Static.SourceFileDirectory, "*.in");
            int      i     = 0;

            Static.TestCases = new List <TestCase>();
            Static.TestCases.Clear();
            foreach (string file in files)
            {
                if (System.IO.Path.GetFileName(file).ToLower() == "spj.exe")
                {
                    txtSpecialJudge.Text = file;
                }
                if (System.IO.File.Exists(System.IO.Path.GetDirectoryName(file) + "\\" + System.IO.Path.GetFileNameWithoutExtension(file) + ".ans"))
                {
                    TestCase t = new TestCase();
                    t.Index  = i++;
                    t.Input  = file;
                    t.Output = System.IO.Path.GetDirectoryName(file) + "\\" + System.IO.Path.GetFileNameWithoutExtension(file) + ".ans";
                    Static.TestCases.Add(t);
                }
                else if (System.IO.File.Exists(System.IO.Path.GetDirectoryName(file) + "\\" + System.IO.Path.GetFileNameWithoutExtension(file) + ".out"))
                {
                    TestCase t = new TestCase();
                    t.Index  = i++;
                    t.Input  = file;
                    t.Output = System.IO.Path.GetDirectoryName(file) + "\\" + System.IO.Path.GetFileNameWithoutExtension(file) + ".out";
                    Static.TestCases.Add(t);
                }
            }
            TestCasesListBox.ItemsSource = Static.TestCases;
        }
예제 #6
0
 /// <summary>
 /// Called when a this instance becomes the active content in a frame.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     isInitialized = false;
     ComboBoxDropdownExtensions.SetOpenDropDownAutomatically(this.cbSuite, ExecutionContext.SettingsViewModel.HoverBehaviorDropDown);
     ComboBoxDropdownExtensions.SetOpenDropDownAutomatically(this.cbPriority, ExecutionContext.SettingsViewModel.HoverBehaviorDropDown);
     ComboBoxDropdownExtensions.SetOpenDropDownAutomatically(this.cbTeamFoundationIdentityNames, ExecutionContext.SettingsViewModel.HoverBehaviorDropDown);
 }
예제 #7
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     var list = from id in App.Server.GetOnlineList()
                let u = App.Server.GetUser(id)
                select new OnlineListItem(u);
     onlineList.Clear();
     foreach (var item in list) onlineList.Add(item);
 }
예제 #8
0
 /// <summary>
 /// Called when a this instance becomes the active content in a frame.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     if (e.Source.OriginalString != null)
     {
         var file = e.Source.OriginalString.Split('=').Last();
         this.DataContext = new HomeViewModel(file);
     }
 }
예제 #9
0
        public override void OnNavigatedFrom(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            if (e.NavigationType == NavigationType.New)
            {
                MainWindow.Current.PauseBackgroundMusic();
            }
        }
 /// <summary>
 /// Handles the <see cref="E:NavigatedTo"/> event.
 /// </summary>
 /// <param name="e">The <see cref="FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs"/> instance containing the event data.</param>
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     Debug.WriteLine("ModernUserControl - OnNavigatedTo");
     if (NavigatedTo != null)
     {
         NavigatedTo(this, e);
         Debug.WriteLine("ModernUserControl - OnNavigatedTo event called");
     }
 }
예제 #11
0
		public void OnNavigatedFrom(NavigationEventArgs e)
		{
			try
			{
				((MainWindow) Application.Current.MainWindow).Model.SaveSettings();
			}
			catch
			{
			}
		}
예제 #12
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     MemoryStream mem = new MemoryStream(Encoding.UTF8.GetBytes(App.Server.GetCircular()));
     new TextRange(txtCircular.Document.ContentStart, txtCircular.Document.ContentEnd).Load(mem, DataFormats.Rtf);
     User me = App.Server.GetProfile();
     txtID.Text = "ID: " + me.ID;
     txtName.Text = "Account: " + me.Name;
     txtNickName.Text = me.NickName;
     txtRole.Text = me.Role.ToString();
 }
        public void OnNavigatedTo(NavigationEventArgs e)
        {
            DBInformationButton.ToolTip = MainWindow.ConnectionName;
            InterfaceHelpers.CurrentPage = e.Source.OriginalString;

            if (_lastDbConnectionHash != DBWorker.MetaData.GetHashCode())
            {
                BuildEventDimensionsSelectors();
                _lastDbConnectionHash = DBWorker.MetaData.GetHashCode();
            }
        }
예제 #14
0
        public void OnNavigatedTo(NavigationEventArgs e)
        {
            foundServers = new HashSet<EndPoint>();
            discoverer = new ServerDiscoverer() { ExpectedService = typeof(ICenaPlusServer) };
            ServerListBox.Items.Clear();

            //Official list
            System.Threading.Tasks.Task.Factory.StartNew(() =>
            {
                IPEndPoint endpoint = new IPEndPoint(Dns.GetHostAddresses("www.cenaplus.org")[0], 9980);
                //int delay = GetDelay(endpoint);
                Dispatcher.Invoke(new Action(() => {
                    ServerListBox.Items.Add(new ServerListItem
                    {
                        Name = "Cena+ Official Server",
                        Location = endpoint,
                        Delay = 999999
                    });
                    ServerListBox.Items.Refresh();
                }));
            });

            discoverer.FoundServer += (svr) =>
            {
                if (!foundServers.Contains(svr.Location))
                {
                    foundServers.Add(svr.Location);
                    var delay = GetDelay(svr.Location);

                    Dispatcher.Invoke(new Action(() =>
                    {
                        ServerListBox.Items.Add(new ServerListItem
                        {
                            Name = svr.Name,
                            Location = svr.Location,
                            Delay = delay
                        });
                        ServerListBox.Items.Refresh();
                    }));
                }
            };
            discoverer.Start();
            foreach (ServerListItem s in ServerListBox.Items)
            {
                if (s.Delay == 999999)
                {
                    System.Threading.Tasks.Task.Factory.StartNew(() =>
                    {
                        s.Delay = GetDelay(s.Location);
                        Dispatcher.Invoke(new Action(() => { ServerListBox.Items.Refresh(); }));
                    });
                }
            }
        }
        void IContent.OnNavigatedTo(NavigationEventArgs e)
        {
            DBInformationButton.ToolTip = MainWindow.ConnectionName;
            InterfaceHelpers.CurrentPage = e.Source.OriginalString;

            InitializePreviewInformations();

            //Consolidation
            InitializeConsolidationControls();
            FillConsolidationListboxWithEvents();
            ConsolidatorSettings.ProcessModelType = typeof(PetriNet);

            ConsolidatorSettings.ConsolidationType = typeof(StandardConsolidator);
        }
예제 #16
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     var list = from id in App.Server.GetContestList()
                let c = App.Server.GetContest(id)
                select new ContestList
                {
                    ID = c.ID,
                    Title = c.StartTime <= DateTime.Now && DateTime.Now <= c.EndTime ? "[Live]" + c.Title : c.Title,
                    StartTime = c.StartTime,
                    EndTime = c.EndTime,
                    Type = c.Type
                };
     ContestListBox.ItemsSource = list;
 }
예제 #17
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     var list = from id in App.Server.GetUserList()
                let u = App.Server.GetUser(id)
                select new UserListItem
                {
                    ID = u.ID,
                    Name = u.Name,
                    NickName = u.NickName,
                    Role = u.Role
                };
     userList = new List<UserListItem>();
     foreach (var item in list) userList.Add(item);
     UserListBox.ItemsSource = userList;
 }
예제 #18
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     var list = from id in App.Server.GetContestList()
                let c = App.Server.GetContest(id)
                select new ContestListItem
                {
                    ID = c.ID,
                    StartTime = c.StartTime,
                    EndTime = c.EndTime,
                    Title = c.Title,
                    Type = c.Type
                };
     contestList.Clear();
     foreach (var item in list) contestList.Add(item);
     ContestListBox.Items.Refresh();
 }
        void IContent.OnNavigatedTo(NavigationEventArgs e)
        {
            DBInformationButton.ToolTip = MainWindow.ConnectionName;
            InterfaceHelpers.CurrentPage = e.Source.OriginalString;

            if (DBWorker.MetaData != null)
            {
                if (_lastDbConnectionHash != DBWorker.MetaData.GetHashCode())
                {
                    LoadDimensionMetaData();
                    _lastDbConnectionHash = DBWorker.MetaData.GetHashCode();
                }

            }
            else
                throw new NullReferenceException("FactTable is null. There is no database connection");
        }
예제 #20
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     if (e.Source.ToString().Contains("from_title_links=1"))
     {
         if (Nijie.IsLoggedIn)
         {
             var result = ModernDialog.ShowMessage("Logout?", "Confimation", MessageBoxButton.YesNo);
             if (result == MessageBoxResult.Yes)
             {
                 MainWindow.Bot.Logout();
                 lblLoginStatus.Text = "Logged Out.";
             }
         }
     }
     else if (e.Source.ToString().Contains("autologin"))
     {
         isAutoLogin = true;
     }
 }
        public void OnNavigatedTo(NavigationEventArgs e)
        {
            if (dsBoards.Tables.Count < 1)
            {
                // load dataset
                dsBoards.ReadXml("datafiles/settings.xml");


                foreach (DataRow row in dsBoards.Tables[1].Rows)
                {
                   
                    this._boardlist.Links.Add(new Link
                    {
                        DisplayName = row["boardname"].ToString(),
                        Source = new Uri("/Pages/BoardPage.xaml#" + row["boardimage"].ToString(), UriKind.Relative)
                    });

                }
            }
        }
예제 #22
0
        private void Tabs_OnNavigated(object sender, NavigationEventArgs e) {
            if (_list != null) {
                _list.PropertyChanged -= List_PropertyChanged;
            }

            if (_choosing != null) {
                _choosing.ItemChosen -= Choosing_ItemChosen;
            }

            var content = ((ModernTab)sender).Frame.Content;
            _list = content as ISelectedItemPage<AcObjectNew>;
            _choosing = content as IChoosingItemControl<AcObjectNew>;

            if (_list != null) {
                _list.SelectedItem = Model.SelectedTrackConfiguration?.MainTrackObject;
                _list.PropertyChanged += List_PropertyChanged;
            }

            if (_choosing != null) {
                _choosing.ItemChosen += Choosing_ItemChosen;
            }
        }
예제 #23
0
        public override void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e.Parameter is Tuple <string, string, int> parameter)
            {
                // 动态生成场景
                _scene = SceneHelper.CreateScene(parameter.Item1, parameter.Item2, parameter.Item3);
            }
            if (_scene == null)
            {
                ModernDialog.ShowMessage("创建场景失败,请确认配置正确.", "错误", MessageBoxButton.OK);
                ((ScenePageViewModel)DataContext).GoBackCommand.Execute(null);
                return;
            }

            Root.Children.Insert(0, _scene);
            _scene.HorizontalAlignment = HorizontalAlignment.Stretch;
            _scene.VerticalAlignment   = VerticalAlignment.Stretch;
            _scene.Exit += _scene_Exit;

            // 将Root的DataContext设置为游戏场景
            Root.DataContext = _scene;

            // 准备开始游戏
            _scene.Show();

            if (_simulationData)
            {
                MouseRightButtonDown += ScenePage_MouseRightButtonDown;
            }

            if (DataProducerHelper.Current.DataProducer != null)
            {
                DataProducerHelper.Current.DataProducer.DataReceived += DataProducer_DataReceived;
                //  DataProducerHelper.Current.DataProducer.Open();
            }
        }
예제 #24
0
        public override void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e.NavigationType != NavigationType.Back)
            {
                ButtonContainer.Children.Clear();

                if (e.Parameter is ProgramInfo programInfo)
                {
                    foreach (var scene in programInfo.SceneInfoCollection)
                    {
                        var btn = new SoundImageButton()
                        {
                            Stretch = Stretch.Uniform
                        };
                        if (scene.IsEnabled)
                        {
                            btn.NormalImage  = new BitmapImage(new Uri($"/RidingSystem.Assets;component/Assets/Image/SelectScenePage/Button_{scene.Scene}_Normal.png", UriKind.RelativeOrAbsolute));
                            btn.PressedImage = new BitmapImage(new Uri($"/RidingSystem.Assets;component/Assets/Image/SelectScenePage/Button_{scene.Scene}_Pressed.png", UriKind.RelativeOrAbsolute));
                            btn.SetBinding(ButtonBase.CommandProperty, new Binding("SelectSceneCommand"));
                            btn.CommandParameter = new Tuple <string, string, int>(programInfo.Program, scene.Scene, scene.RoadTypeCount);
                        }
                        else
                        {
                            btn.IsEnabled     = false;
                            btn.DisabledImage = new BitmapImage(new Uri($"/RidingSystem.Assets;component/Assets/Image/SelectScenePage/Button_{scene.Scene}_Disabled.png", UriKind.RelativeOrAbsolute));
                        }

                        ButtonContainer.Children.Add(btn);
                    }
                }
            }
            else
            {
                MainWindow.Current.PlayBackgroundMusic();
            }
        }
예제 #25
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     if (Static.SPJDirectory != null && Static.SPJDirectory != String.Empty)
     {
         System.IO.File.Copy(Static.SPJDirectory, Static.WorkingDirectory + "\\SPJ.exe", true);
     }
     else
     {
         System.IO.File.Copy(Environment.CurrentDirectory + "\\Core\\CenaPlus.Core.StandardJudge.exe", Static.WorkingDirectory + "\\SPJ.exe", true);
     }
     ResultListBoxItems = null;
     GC.Collect();
     ResultListBoxItems = new List <ResultListBoxItem>();
     ResultListBoxItems.Clear();
     ResultListBox.ItemsSource = ResultListBoxItems;
     foreach (var tc in Static.TestCases)
     {
         ResultListBoxItem t = new ResultListBoxItem();
         t.TestCase = tc;
         Thread judge = new Thread(Judge);
         judge.Start(t);
     }
 }
예제 #26
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     // clear fragment text
     fragmentNav.BBCode = null;
 }
예제 #27
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
 }
예제 #28
0
        private void OnNavigated(IContent oldContent, IContent newContent, NavigationEventArgs e) {
            // invoke IContent.OnNavigatedFrom and OnNavigatedTo
            oldContent?.OnNavigatedFrom(e);
            newContent?.OnNavigatedTo(e);

            // raise the Navigated event
            Navigated?.Invoke(this, e);
        }
예제 #29
0
        private void SetContent(Uri newSource, NavigationType navigationType, object newContent, bool contentIsError) {
            var oldContent = Content as IContent;

            // assign content
            Content = newContent;

            // do not raise navigated event when error
            if (!contentIsError) {
                var args = new NavigationEventArgs {
                    Frame = this,
                    Source = newSource,
                    Content = newContent,
                    NavigationType = navigationType
                };

                OnNavigated(oldContent, newContent as IContent, args);
            }

            // set IsLoadingContent to false
            SetValue(IsLoadingContentPropertyKey, false);

            if (contentIsError) return;

            // and raise optional fragment navigation events
            string fragment;
            NavigationHelper.RemoveFragment(newSource, out fragment);
            if (fragment == null) return;

            // fragment navigation
            var fragmentArgs = new FragmentNavigationEventArgs {
                Fragment = fragment
            };

            OnFragmentNavigation(newContent as IContent, fragmentArgs);
        }
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     Utilities.AutoFitListView(GridListView);
 }
예제 #31
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     App.vm.ProjectType.BeginEdit();
     App.nav.SetLastUri("/Pages/Admin/ProjectTypeEdit.xaml");
 }
 void IContent.OnNavigatedFrom(NavigationEventArgs e)
 {
 }
예제 #33
0
 public void OnNavigatedFrom(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     //throw new NotImplementedException();
 }
예제 #34
0
        public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            var dc = DataContext as NetworkInterfacesViewModel;

            dc?.StartRefresh();
        }
예제 #35
0
        //      <----------------keyboard functions---------------->

        // For IContent implementation
        public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            // Reset SearchMemberTextBox Foreground in case a theme change occurred
            Login.ResetForeground();
        }
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     //throw new NotImplementedException();
     //(Application.Current as App).IsCloseTest = true;
 }
예제 #37
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     Statistics.Reload();
 }
 /// <summary>
 /// Called when this instance is no longer the active content in a frame.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnNavigatedFrom(NavigationEventArgs e)
 {
 }
예제 #39
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     vm.Refresh();
 }
예제 #40
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     App.nav.SetLastUri("/Pages/Admin/EventTypeList.xaml");
     Utilities.AutoFitListView(GridListView);
 }
예제 #41
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
     Application.Current.Shutdown();
 }
예제 #42
0
		public void OnNavigatedFrom(NavigationEventArgs e)
		{
			var window = (ModernWindow) Application.Current.MainWindow;
			window.IsNavigationControlVisible = true;
		}
 /// <summary>
 /// Alpha miner was selected.
 /// </summary>
 /// <param name="e"></param>
 void IContent.OnNavigatedTo(NavigationEventArgs e)
 {
     MinerSettings.IsAlgorithmSet = true;
 }
예제 #44
0
		public void OnNavigatedTo(NavigationEventArgs e)
		{
			var window = (ModernWindow) Application.Current.MainWindow;
			window.IsNavigationControlVisible = false;
			e.Frame.ClearHistory();
		}
예제 #45
0
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     if (vm.DisplayRecent())
         Url.Text = vm.Address;
 }
예제 #46
0
 /// <summary>
 /// Called when this instance is no longer the active content in a frame.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnNavigatedFrom(NavigationEventArgs e)
 {
 }
 /// <summary>
 /// Called when a this instance becomes the active content in a frame.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     isInitialized = false;
 }
예제 #48
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     //var paramss= e.Source.OriginalString.Split('#')[1];
 }
예제 #49
0
 public void OnNavigatedFrom(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
 }
예제 #50
0
 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     App.vm.DepartmentOperation.BeginEdit();
     App.nav.SetLastUri("/Pages/Admin/DepartmentOperationEdit.xaml");
 }
예제 #51
0
 private void ContentFrame_Navigated(object sender, FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     this.UpdateSource();
 }
 public void OnNavigatedFrom(NavigationEventArgs e)
 {
     Uri source = e.Source;
 }
 /// <summary>
 /// Called when a this instance becomes the active content in a frame.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     this.editViewContext = new EditViewContext();
     UndoRedoManager.Instance().Clear();   
     this.editViewContext.IsInitialized = false;
     ComboBoxDropdownExtensions.SetOpenDropDownAutomatically(this.cbArea, TestCaseManagerCore.ExecutionContext.SettingsViewModel.HoverBehaviorDropDown);
     ComboBoxDropdownExtensions.SetOpenDropDownAutomatically(this.cbPriority, TestCaseManagerCore.ExecutionContext.SettingsViewModel.HoverBehaviorDropDown);
 }
 public void OnNavigatedTo(NavigationEventArgs e)
 {
     Uri source = e.Frame.Source;
 }