当前位置: 首页>>代码示例>>C#>>正文


C# Navigation.NavigationEventArgs类代码示例

本文整理汇总了C#中FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs的典型用法代码示例。如果您正苦于以下问题:C# NavigationEventArgs类的具体用法?C# NavigationEventArgs怎么用?C# NavigationEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NavigationEventArgs类属于FirstFloor.ModernUI.Windows.Navigation命名空间,在下文中一共展示了NavigationEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: if

        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 + ".";
            }
        }
开发者ID:ThomasMeents,项目名称:ProcessCubeExplorer,代码行数:26,代码来源:P6mining.xaml.cs

示例2: OnNavigatedTo

 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;
      * */
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:30,代码来源:Compilers.xaml.cs

示例3: OnNavigatedTo

 public void OnNavigatedTo(NavigationEventArgs e)
 {
     if (App.Server != null)
     {
         btnStartLocal.IsEnabled = false;
     }
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:7,代码来源:Home.xaml.cs

示例4: OnNavigatedTo

 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);
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:8,代码来源:Online.xaml.cs

示例5: OnNavigatedTo

 /// <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");
     }
 }
开发者ID:FaustoCalt,项目名称:ModernUISamples,代码行数:13,代码来源:ModernUserControl.cs

示例6: OnNavigatedTo

 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();
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:10,代码来源:Home.xaml.cs

示例7: OnNavigatedFrom

		public void OnNavigatedFrom(NavigationEventArgs e)
		{
			try
			{
				((MainWindow) Application.Current.MainWindow).Model.SaveSettings();
			}
			catch
			{
			}
		}
开发者ID:kveretennicov,项目名称:kato,代码行数:10,代码来源:Subscribe.xaml.cs

示例8: OnNavigatedTo

        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(); }));
                    });
                }
            }
        }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:54,代码来源:Remote.xaml.cs

示例9: OnNavigatedTo

        public void OnNavigatedTo(NavigationEventArgs e)
        {
            DBInformationButton.ToolTip = MainWindow.ConnectionName;
            InterfaceHelpers.CurrentPage = e.Source.OriginalString;

            if (_lastDbConnectionHash != DBWorker.MetaData.GetHashCode())
            {
                BuildEventDimensionsSelectors();
                _lastDbConnectionHash = DBWorker.MetaData.GetHashCode();
            }
        }
开发者ID:ThomasMeents,项目名称:ProcessCubeExplorer,代码行数:11,代码来源:P4eventselection.xaml.cs

示例10: OnNavigatedTo

 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;
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:14,代码来源:Tests.xaml.cs

示例11: InitializePreviewInformations

        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);
        }
开发者ID:ThomasMeents,项目名称:ProcessCubeExplorer,代码行数:14,代码来源:P8results.xaml.cs

示例12: OnNavigatedTo

 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;
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:15,代码来源:Users.xaml.cs

示例13: OnNavigatedTo

 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();
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:16,代码来源:Tests.xaml.cs

示例14: NullReferenceException

        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");
        }
开发者ID:ThomasMeents,项目名称:ProcessCubeExplorer,代码行数:17,代码来源:P2metadata.xaml.cs

示例15: OnNavigatedTo

        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)
                    });

                }
            }
        }
开发者ID:glocklueng,项目名称:ModernUI-Pick-and-Place-Controller-Software,代码行数:20,代码来源:Home.xaml.cs


注:本文中的FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。