BridgeTry.Mac.Views.MainView.Load C# (CSharp) Метод

Load() публичный Метод

public Load ( ) : void
Результат void
        public override void Load() {
            base.Load();

            //LoadUrl("javascript:console.log('test c# log')");
            //LoadUrl("javascript:setServerInstanceUid('7c9e6679742540de944be07fc1f90ae7')");
            //string jsResult = jsInterface.GetJsValue(this, "2 + 5");
        }

Usage Example

Пример #1
0
		public override void MakeKeyAndOrderFront(NSObject sender) {
			///Is not necessary
			//TinyIoCContainer.Current.Register<WebMarco.Backend.App.Common.BaseAppDelegate, AppDelegate>((AppDelegate)(AppDelegate.Instance));
			//TinyIoCContainer.Current.Register<AppHelper.Data.Manager, Manager>(new Manager());
			//AppHelper.Data.ConnectDatabase();//TODO: noo has to be done async - otherwise will kill the app on huge db load due to timeout
			MainView = new MainView(this);

			Point center = new Rectangle (NSScreen.MainScreen.Frame).Center;
			MainView.CurrentFrame = Rectangle.GetBaseWithRectangleF(Frame);//TODO: must come from settings, like last position and size etc

			ContentView = (NSView)MainView;
			base.MakeKeyAndOrderFront(sender);

			MainView.Load(); //TODO: or here

			/// Program entry point is here




		}