コード例 #1
0
ファイル: MainActivity.cs プロジェクト: Z3R0X92/XAMARIN
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

            stratenplan = new Stratenplan ();
            robot = new Robot (stratenplan);
            // Get our button from the layout resource,
            // and attach an event to it
            Button btn_voorwaarts = FindViewById<Button> (Resource.Id.btn_voorwaarts);

            btn_voorwaarts.Click += delegate {

            };

            Button btn_linksom = FindViewById<Button> (Resource.Id.btn_linksom);

            btn_linksom.Click += delegate {

            };

            TextView tv_stratenplan_output = FindViewById<TextView> (Resource.Id.tv_stratenplan_output);
            tv_stratenplan_output.Text = stratenplan.ShowPlan ();
        }
コード例 #2
0
ファイル: Robot.cs プロジェクト: Z3R0X92/XAMARIN
 public Robot(Stratenplan stratenplan)
 {
     this.stratenplan = stratenplan;
 }