Пример #1
0
 public Anotacao(Tarefas t, TarefasAnot An)
 {
     InitializeComponent();
     tarefa     = t;
     tarefaAnot = An;
     //usw_usu = usw_usuario;
     NavigationPage.SetHasBackButton(this, false);
 }
Пример #2
0
        private void BtnAnotar_OnClicked(object sender, EventArgs e)
        {
            TarefasAnot ta = new TarefasAnot();

            ta.Anot_CodProgr = tarefa.CodPro;
            ta.Anot_DataAnot = DateTime.Now;
            ta.Anot_histor   = string.Empty;
            ta.ID_Anot       = 0;
            Session.Navigation.Navigation.PushAsync(new Anotacao(tarefa, ta));
        }
Пример #3
0
        public Anotacao(Tarefas t, TarefasAnot An = null)
        {
            InitializeComponent();
            tarefa = t;
            if (An.ID_Anot != 0)
            {
                tarefaAnot = An;
            }


            NavigationPage.SetHasBackButton(this, false);
        }
Пример #4
0
        private void Lista_OnGridTapped(object sender, GridTappedEventsArgs e)
        {
            ListaVM lvm = new ListaVM();

            lvm = (ListaVM)e.RowData;
            TarefasAnot ta = new TarefasAnot();

            ta.Anot_CodProgr = tarefa.CodPro;
            ta.Anot_DataAnot = tarefa.DATA_PROGR;
            ta.Anot_histor   = lvm.Anot_histor;
            ta.ID_Anot       = lvm.Id_Anot;
            Session.Navigation.Navigation.PushAsync(new Anotacao(tarefa, ta));
        }
Пример #5
0
        private void Lista_clicked(object sender, EventArgs e)
        {
            TarefasAnot tt = new TarefasAnot();

            tt.Anot_DataAnot = DateTime.Now;
            tt.Anot_CodProgr = tarefa.CodPro;
            tt.Anot_histor   = Session.Usuario.Usw_Nome.Substring(0, Session.Usuario.Usw_Nome.IndexOf(" ") + 2) + ": " + TxtTexto.Text;
            if (tarefaAnot.ID_Anot == 0)
            {
                if (TxtTexto.Text.Length > 0)
                {
                    tarefa.tarefasAnot.Add(tt);
                }
            }
            Session.Navigation.Navigation.PushAsync(new NovaTarefa(tarefa));
        }