public static void closeAgendamentoDetalhes() { if (agendamentoDetalhesOn) { agendamentoDetalhesWindow.Close(); agendamentoDetalhesWindow = null; menuWindow.Focus(); agendamentoDetalhesOn = false; } }
//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; } }