コード例 #1
0
ファイル: App.xaml.cs プロジェクト: haroldma-zz/amplitude-win
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += this.OnSuspending;
            Amplitude amplitude = Amplitude.Initialize(this, "a2dbce0e18dfe5f8e74493843ff5c053");

            amplitude.SetUserProperties(new Dictionary <string, object>()
            {
                { "int", 1 },
                { "string", "str" },
                { "float", 1.1 },
                { "bool", true }
            });
        }