예제 #1
0
        public SQLControl()
        {
            InitializeComponent();

            // initialize delegates
            SetResultsDel   = new StringBoolDelegate(this.SetMessage);
            ShowResultsDel  = new DataTableDelegate(this.ShowResults);
            SetUpFormDel    = new BoolDelegate(this.SetUpForm);
            ChangeCursorDel = new CursorDelegate(this.ChangeCursor);
            SetMessageDel   = new StringDelegate(this.ShowMessage);

            Condlg          = new ConnectionDialog();
            m_bQueryRunning = false;
            m_bConnected    = false;
        }
예제 #2
0
        public override void ShowWebView(string url, string title = "", StringBoolDelegate checkFinished = null)
        {
            WebViewController webViewController = new WebViewController(url, title);

            if (checkFinished != null)
            {
                webViewController.ShouldClose += checkFinished;
            }
            UINavigationController nav = new UINavigationController(webViewController);

            nav.NavigationBar.BarStyle  = UIBarStyle.Black;
            nav.NavigationBar.TintColor = new UIColor(0, 134 / 255f, 219 / 255f, 1);

            AppDelegate.SetUsingViewController(true);
            AppDelegate.ViewController.PresentModalViewController(nav, true);
        }