Пример #1
0
        static void ActivateWindow()
        {
            XobotWindow window = (XobotWindow)activity_stack.Peek().getWindow();

            window.OnAttachedToWindow();
            window.OnVisibilityChanged(true);

            main_form.Text = window.Title ?? "XobotOS";
            control.Invalidate();
        }
Пример #2
0
        internal static XobotWindow CreateMainWindow(Context context)
        {
            XobotWindow window = new XobotWindow(context);

            if (main_activity == null)
            {
                main_window = window;
            }
            return(window);
        }
Пример #3
0
 internal static void Invoke(WindowAction action)
 {
     mutex.WaitOne();
     if (activity_stack.Count > 0)
     {
         XobotWindow window = (XobotWindow)activity_stack.Peek().getWindow();
         action(window);
     }
     mutex.ReleaseMutex();
 }
Пример #4
0
		internal static void RequestLayout (XobotWindow window)
		{
			window.PerformLayout (control.Left, control.Top, control.Right, control.Bottom);
		}
Пример #5
0
		internal static void RequestInvalidate (XobotWindow window)
		{
			control.RequestInvalidate ();
		}
Пример #6
0
		internal static XobotWindow CreateMainWindow (Context context)
		{
			XobotWindow window = new XobotWindow (context);
			if (main_activity == null) {
				main_window = window;
			}
			return window;
		}
Пример #7
0
 internal static void RequestLayout(XobotWindow window)
 {
     window.PerformLayout(control.Left, control.Top, control.Right, control.Bottom);
 }
Пример #8
0
 internal static void RequestInvalidate(XobotWindow window)
 {
     control.RequestInvalidate();
 }
Пример #9
0
			internal AttachInfo (XobotWindow window)
			{
				mHandler = new android.os.Handler ();
			}