Ejemplo n.º 1
0
        public App(Conct system)
        {
            m_system = system;

            InitializeComponent();
            MainPage = new Main();

            m_timer          = new Timer(15.0);
            m_timer.Elapsed += Timer_Elapsed;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            m_system = new Conct();

            InitializeComponent();

            Forms.Init();
            LoadApplication(new App(m_system));

            DirectoryInfo executableDir = Directory.GetParent(Assembly.GetExecutingAssembly().Location);
            string        configPath    = executableDir.ToString();
            string        typesPath     = System.IO.Path.Combine(executableDir.Parent.Parent.Parent.Parent.FullName, "config/types");

            m_system.Load(configPath, typesPath);
        }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            m_system = new Conct();

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            global::Plugin.CrossPlatformTintedImage.Android.TintedImageRenderer.Init();
            LoadApplication(new App(m_system));

            (string configPath, string typesPath) = MoveAssets();
            m_system.Load(configPath, typesPath);
        }