public static void ShowAviso(string Titulo, string Horario) { CloseAviso(); ValidateFormCreation(); if (Manager.ConfiguracaoManager.ConfiguracaoGlobal.MinimizarDemaisTelas) { Helper.WindowsHelper.MinimizeAll(); } if (Manager.ConfiguracaoManager.ConfiguracaoGlobal.NotificacaoTelaCheia) { formOverlay.Show(); } formAviso.SetTitulo(Titulo); formAviso.SetHorario(Horario); formAviso.Show(); if (Manager.ConfiguracaoManager.ConfiguracaoGlobal.AbrirBennerAposNotificacao) { Process.Start("https://myplace.mv.com.br/BENNER_RH/Login"); } }
private void CustomMessageBox(string title, bool b) { formAviso.Text = title; if (b) { formAviso.panelConcluido.Visible = true; formAviso.btnOk.Visible = true; formAviso.panelProcessando.Visible = false; } else { Progbar.Value = 0; formAviso.panelConcluido.Visible = false; formAviso.btnOk.Visible = false; formAviso.panelProcessando.Visible = true; //formAviso.Owner = this; //formAviso.StartPosition = FormStartPosition.CenterParent; formAviso.Show(); formAviso.Location = new Point(this.Left + (this.Width / 2 - formAviso.Width / 2), this.Top + (this.Height / 2 - formAviso.Height / 2)); } }