예제 #1
0
 private void LogButtonClicked()
 {
     // Show the logs in the ListviewDialog
     List<BusinessLayer.Log> logs = BusinessLayer.Log.GetLogs();
     var dlg = new ListviewDialog(this, logs, this.GetString(Resource.String.SelectPosition));
     dlg.Show();
 }
예제 #2
0
 void BtnRechEdit_Click (object sender, EventArgs e)
 {
     var dlg = new ListviewDialog(_context,_person.RechnungsAnschriften, _context.GetString(Resource.String.SelectAnschrift));
     dlg.Show();
     dlg.DismissEvent+= (object senders, EventArgs es) => 
         {
             if (_person.RechnungsAnschriften.Count == 0)
                 return ;
             
             BusinessLayer.Anschrift anschrift= _person.RechnungsAnschriften[dlg._selectedIndex];
             tvRechnungsAnschrift.Text = anschrift.Name + " - " + anschrift.Strasse + " - " + anschrift.PLZ + " " + anschrift.Ort;
             _rechnungsAnschrift = anschrift;
         };
     
 }
예제 #3
0
        public void SpinnerTask_Touch(object sender, View.TouchEventArgs e)
        {
            if (e.Event.Action == MotionEventActions.Up)
            {
                if (_stateFragment._tasks.Count > 0)
                {
                    var dlg = new ListviewDialog(_activity, _stateFragment._tasks, _activity.GetString(Resource.String.SelectTask));
                    dlg.Show();
                    dlg.DismissEvent+= (object senders, EventArgs es) => 
                        {

                            _spinnerTask.SetSelection(dlg._selectedIndex);
                            _stateFragment._task = _stateFragment._tasks[dlg._selectedIndex];


                        };

                }
                else
                {
                    // If there is no Ansprechpartner just show a Dialog messaging "There is no Task"
                    List<BusinessLayer.Task> temptasks = new List<BusinessLayer.Task>();
                    var temp = BusinessLayer.Task.Create();
                    temp.Memo = _activity.Resources.GetString(Resource.String.NoTasks);
                    temp.Ansprechpartner = "";
                    temp.Datum = "";

                    temptasks.Add(temp);

                    var dlg = new ListviewDialog(_activity, temptasks, _activity.GetString(Resource.String.SelectTask));
                    dlg.Show();

                }

            }

        }
예제 #4
0
 void BtnLiefEdit_Click (object sender, EventArgs e)
 {
     var dlg = new ListviewDialog(_context,_person.LieferAnschriften, _context.GetString(Resource.String.SelectAnschrift));
     dlg.Show();
     dlg.DismissEvent+= (object senders, EventArgs es) => 
         {
             BusinessLayer.Anschrift anschrift= _person.LieferAnschriften[dlg._selectedIndex];
             tvLieferAnschrift.Text = anschrift.Name + " - " + anschrift.Strasse + " - " + anschrift.PLZ + " " + anschrift.Ort;
             _lieferAnschrift = anschrift;
         };
     
 }