예제 #1
0
 public Others(string parameter)
 {
     para           = parameter;
     vm             = new OthersViewModel();
     vm.URL         = parameter;
     Title          = parameter.Contains("manual")?"Manual": "Contact US";
     BindingContext = vm;
     InitializeComponent();
     ConnectButton.Clicked += OnConnectClick;
 }
예제 #2
0
 void OnConnectClick(object sender, EventArgs e)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         vm             = new OthersViewModel();
         vm.URL         = para;
         Title          = para.Contains("manual")?"Manual": "Contact US";
         BindingContext = vm;
         InitializeComponent();
         ConnectButton.Clicked += OnConnectClick;
     });
 }