Exemplo n.º 1
0
 public static void Initialize(LogConfiguration logConfiguration)
 {
     if (Instance == null)
     {
         lock (InstanceLock) {
             if (Instance == null)
             {
                 Instance = new LogStorage();
                 Instance.LogConfiguration = logConfiguration;
                 Instance.InitializeCore();
             }
         }
     }
 }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.login_activity);
            this.IsUserLoggedIn = false;
            this.ConfigureDrawer();

            LogStorage.Initialize(new LogConfiguration());

            Button   button       = FindViewById <Button> (Resource.Id.LoginButton);
            TextView versionLabel = FindViewById <TextView> (Resource.Id.VersionName);

            versionLabel.Text = this.GetAppVersion();
            button.Click     += delegate {
                Intent intent = new Intent(this, typeof(MainMenuActivity));
                intent.SetFlags(ActivityFlags.ClearTask | ActivityFlags.NewTask);
                StartActivity(intent);
            };
        }