public static void closeAgendamento() { if (agendamentoOn) { agendamentoWindow.Close(); agendamentoWindow = null; menuWindow.Focus(); agendamentoOn = false; } }
//Fechar e abrir janela de agendamento #region agendamento public static void startAgendamento() { if (agendamentoDetalhesOn) { agendamentoDetalhesWindow.Focus(); return; } if (agendamentoOn) { agendamentoWindow.Focus(); } else { agendamentoWindow = new Agendamento.Agendamento(); agendamentoWindow.Show(); agendamentoWindow.Left = menuWindow.Left + 50; agendamentoWindow.Top = menuWindow.Top - 50; agendamentoOn = true; } }