12345678910111213141516171819202122232425262728293031323334353637 |
- using Comal.Classes;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace comal.timesheets
- {
- public delegate void JobDocFilterClosed(string filter, JobDocFilterType type);
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class JobDocFilterItem : ContentView
- {
- public event JobDocFilterClosed OnJobDocFilterClosed;
- public JobDocFilterType Type { get; set; }
- public JobDocFilterItem ()
- {
- InitializeComponent ();
- }
- public void Init(JobDocFilterType type, string text)
- {
- textLbl.Text = text;
- Type = type;
- }
- private void Close_Tapped(object sender, EventArgs e)
- {
- OnJobDocFilterClosed?.Invoke(textLbl.Text, Type);
- }
- }
- }
|