Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DialogActivity.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using Android.App;
6 using Android.OS;
7 using Android.Widget;
8 
9 namespace MonoDroid.Dialog
10 {
11  public class DialogInstanceData : Java.Lang.Object
12  {
14  {
15  _dialogState = new Dictionary<string, string>();
16  }
17 
18  private Dictionary<String, String> _dialogState;
19  }
20 
22  {
23  public RootElement Root { get; set; }
24  private DialogHelper Dialog { get; set; }
25 
26  protected override void OnCreate(Bundle savedInstanceState)
27  {
28  base.OnCreate(savedInstanceState);
29  Dialog = new DialogHelper(this, this.ListView, this.Root);
30 
31  if (this.LastNonConfigurationInstance != null)
32  {
33  // apply value changes that are saved
34  }
35  }
36 
37  public override Java.Lang.Object OnRetainNonConfigurationInstance()
38  {
39  return null;
40  }
41 
42  public void ReloadData()
43  {
44  if(Root == null) {
45  return;
46  }
47 
48  this.Dialog.ReloadData();
49 
50 
51  }
52  }
53 }
override Java.Lang.Object OnRetainNonConfigurationInstance()
override void OnCreate(Bundle savedInstanceState)