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


C# FirstFloor类代码示例

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


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

示例1: OnNavigatedFrom

        public void OnNavigatedFrom(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
        {
            BackgroundWorker backgroundWorker = new BackgroundWorker();

            backgroundWorker.DoWork += backgroundWorker_LightsOff;
            //backgroundWorker.RunWorkerAsync();
        }
开发者ID:cstrobbe,项目名称:C4A-TVM,代码行数:7,代码来源:Print.xaml.cs

示例2: OnFragmentNavigation

 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     QuestionListItems.Clear();
     contestID = int.Parse(e.Fragment);
     var list = from id in App.Server.GetQuestionList(contestID)
                let q = App.Server.GetQuestion(id)
                select new QuestionListItem
                {
                    ID = q.ID,
                    AskerID = q.AskerID,
                    Answer = q.Answer,
                    Asker =q.Asker,
                    Contest = q.Contest,
                    ContestID = q.ContestID,
                    ContestName = q.ContestName,
                    Description = q.Description,
                    Status = q.Status,
                    StatusAsInt = q.StatusAsInt,
                    Time = q.Time,
                    AskerNickName = q.AskerNickName
                };
     foreach (var item in list) QuestionListItems.Add(item);
     lstQuestion.ItemsSource = QuestionListItems;
     lstQuestion.Items.Refresh();
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:25,代码来源:Questions.xaml.cs

示例3: OnNavigatingFrom

 public void OnNavigatingFrom(FirstFloor.ModernUI.Windows.Navigation.NavigatingCancelEventArgs e)
 {
     if (ModernDialog.ShowMessage("Покинуть режим редактирования данных?\nВсе несохраненные данные будут утеряны.", "навигация", System.Windows.MessageBoxButton.YesNo) == System.Windows.MessageBoxResult.No)
     {
         e.Cancel = true;
     }
 }
开发者ID:Elis-Donetsk,项目名称:CashDepartment.Internals,代码行数:7,代码来源:MainContent.xaml.cs

示例4: OnNavigatedTo

 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     _liveWire.RunWorkerAsync();
     _recentTrasnsactions.Clear();
     _monthlyIncomeVsExpences.Clear();
     _accounts?.Clear();
 }
开发者ID:mbithy,项目名称:Octane,代码行数:7,代码来源:overview.xaml.cs

示例5: OnNavigatedTo

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

示例6: OnNavigatingFrom

 public void OnNavigatingFrom(FirstFloor.ModernUI.Windows.Navigation.NavigatingCancelEventArgs e)
 {
     if (isLeavePageAllowed == false || e.Source.OriginalString != "/Pages/Home.xaml")
     {
         e.Cancel = true;
         return;
     }
 }
开发者ID:cstrobbe,项目名称:C4A-TVM,代码行数:8,代码来源:Print.xaml.cs

示例7: OnFragmentNavigation

 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     var record_id = int.Parse(e.Fragment);
     var record = App.Server.GetRecord(record_id);
     contest_id = App.Server.GetProblemRelatedContest(record.ProblemID);
     txtSource.Document.Blocks.Clear();
     txtSource.Document.Blocks.Add(new Paragraph(new Run(record.Code)));
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:8,代码来源:ViewSource.xaml.cs

示例8: OnFragmentNavigation

 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     
     string id = e.Fragment;
     Market market = Market.getInstance();
     _order = market.Orders.Find(i => i.Id == id);
     show(_order);
     
 }
开发者ID:heshamhossam,项目名称:smart-hypermarket,代码行数:9,代码来源:OrderProductsDetailsControl.xaml.cs

示例9: OnFragmentNavigation

 /// <summary>
 /// Called when navigation to a content fragment begins.
 /// </summary>
 /// <param name="e">An object that contains the navigation data.</param>
 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     this.InitializeUrlParameters(e);
     if (isInitialized)
     {
         this.ShowProgressBar();
         this.InitializeInternal();
     }         
 }
开发者ID:ypupo2002,项目名称:tfs-testcasemanager,代码行数:13,代码来源:TestCaseBatchDuplicateView.xaml.cs

示例10: OnFragmentNavigation

 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     contest = App.Server.GetContest(int.Parse(e.Fragment));
     contest_id = contest.ID;
     RebuildColumn(contest_id);
     StandingItems = Bll.StandingsCache.Standings[contest_id] as List<Entity.StandingItem>;
     Sort();
     dgStandings.ItemsSource = StandingItems;
     dgStandings.Items.Refresh();
 }
开发者ID:wan-qy,项目名称:CenaPlus,代码行数:10,代码来源:Standings.xaml.cs

示例11: OnFragmentNavigation

 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     if (!String.IsNullOrWhiteSpace(e.Fragment))
     {
         var pair = e.Fragment.Split('=');
         var temp = pair[1];
         int memberId = 0;
         Int32.TryParse(temp, out memberId);
         ViewData.MemberId = memberId;
         GetMemberCommand.Execute(null, btnFetch);
     }
 }
开发者ID:Nandaka,项目名称:NijieDownloader,代码行数:12,代码来源:MemberPage.xaml.cs

示例12: OnFragmentNavigation

 public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
 {
     FragmentManager fm = new FragmentManager(e.Fragment);
     string currentExecutionResultId = fm.Fragments["executionResultRunId"];
     ExecutionResultRun executionResultRun = ATACore.Managers.ExecutionResultRunManager.GetByExecutionResultRun(ATACore.Managers.ContextManager.Context, currentExecutionResultId);
     List<TestResultRun> testResultRuns = ATACore.Managers.TestResultRunManager.GetRunsByExecutionResultRun(ATACore.Managers.ContextManager.Context, currentExecutionResultId);
     CurrentExecutionResultsViewModel = new AutomationTestAssistantDesktopApp.CurrentExecutionResultsViewModel(executionResultRun, testResultRuns);
     ATACore.Managers.ContextManager.Dispose();
     mainGrid.DataContext = CurrentExecutionResultsViewModel;
     executionResultRunGrid.DataContext = CurrentExecutionResultsViewModel.ExecutionResultRunViewModel;
     testResultRunDataGrid.ItemsSource = CurrentExecutionResultsViewModel.ObservableTestResultRunViewModels;
 }
开发者ID:kennedykinyanjui,项目名称:Projects,代码行数:12,代码来源:ExecutionResultsView.xaml.cs

示例13: OnFragmentNavigation

        public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
        {
            if (!String.IsNullOrWhiteSpace(e.Fragment))
            {
                var uri = new Uri("http://localhost/?" + e.Fragment);
                var query = System.Web.HttpUtility.ParseQueryString(uri.Query);

                txtImageID.Text = query.Get("ImageId");
                ViewData.ImageId = Int32.Parse(txtImageID.Text);
                GetImageCommand.Execute(null, btnFetch);
            }
        }
开发者ID:Nandaka,项目名称:NijieDownloader,代码行数:12,代码来源:ImagePage.xaml.cs

示例14: OnFragmentNavigation

        public void OnFragmentNavigation(FirstFloor.ModernUI.Windows.Navigation.FragmentNavigationEventArgs e)
        {

            var tcc = VisualHelper.FindChild<TransitioningContentControl>(this, null);
            if (tcc != null)
            {
                tcc.Transition = "ModernUITransition";
            }

            var currentBusinessProcessSourceType = e.Fragment;
            (this.DataContext as MainContentViewModel).NavigateTo(currentBusinessProcessSourceType); 
        }
开发者ID:Elis-Donetsk,项目名称:CashDepartment.Internals,代码行数:12,代码来源:MainContent.xaml.cs

示例15: OnNavigatedTo

 public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
 {
     Reservation reservation = NavigationService.GetParameter<Reservation>(e);
     ReservationEditViewModel vm = (ReservationEditViewModel) this.DataContext;
     if (reservation != null)
     {
         vm.ShowReservation(reservation);
     }
     else
     {
         vm.ShowReservation();
     }
 }
开发者ID:pjfoi,项目名称:projectNet,代码行数:13,代码来源:ReservationEdit.xaml.cs


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