本文整理汇总了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();
}
示例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();
}
示例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;
}
}
示例4: OnNavigatedTo
public void OnNavigatedTo(FirstFloor.ModernUI.Windows.Navigation.NavigationEventArgs e)
{
_liveWire.RunWorkerAsync();
_recentTrasnsactions.Clear();
_monthlyIncomeVsExpences.Clear();
_accounts?.Clear();
}
示例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;
}
示例6: OnNavigatingFrom
public void OnNavigatingFrom(FirstFloor.ModernUI.Windows.Navigation.NavigatingCancelEventArgs e)
{
if (isLeavePageAllowed == false || e.Source.OriginalString != "/Pages/Home.xaml")
{
e.Cancel = true;
return;
}
}
示例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)));
}
示例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);
}
示例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();
}
}
示例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();
}
示例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);
}
}
示例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;
}
示例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);
}
}
示例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);
}
示例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();
}
}