Exemplo n.º 1
0
 public static void closeAgendamentoDetalhes()
 {
     if (agendamentoDetalhesOn)
     {
         agendamentoDetalhesWindow.Close();
         agendamentoDetalhesWindow = null;
         menuWindow.Focus();
         agendamentoDetalhesOn = false;
     }
 }
Exemplo n.º 2
0
 //Fechar e abrir janela de agendamentoDetalhes
 #region agendamento detalhes
 public static void startAgendamentoDetalhes()
 {
     if (agendamentoDetalhesOn)
     {
         agendamentoDetalhesWindow.Focus();
     }
     else
     {
         double x = agendamentoWindow.Left;
         double y = agendamentoWindow.Top;
         closeAgendamento();
         agendamentoDetalhesWindow = new Agendamento.AgendamentoDetalhes();
         agendamentoDetalhesWindow.Show();
         agendamentoDetalhesWindow.Top  = y;
         agendamentoDetalhesWindow.Left = x;
         agendamentoDetalhesOn          = true;
     }
 }