Beispiel #1
0
        private void botonProbar_Click(object sender, EventArgs e)
        {
            try
            {
                var psi = new ProcessStartInfo(Application.StartupPath + @"\AvisosRep.exe");
                psi.Arguments = "* " + TopMost.ToString() + " " + EnableGlass.ToString() + " " +
                                ((int)styleManager1.ManagerStyle).ToString();

                Process.Start(psi);
            }

            catch (Exception ex)
            {
                MsgBox(ex.Message, "ERROR", MessageBoxIcon.Error);
            }
        }
Beispiel #2
0
        private void botonReproducirAvisoVisual_Click(object sender, EventArgs e)
        {
            try
            {
                superTabControl1.SelectedTabIndex = 0;

                var psi = new ProcessStartInfo(Application.StartupPath + @"\AvisosRep.exe");
                psi.Arguments = "*v " + TopMost.ToString() + " " + EnableGlass.ToString() + " " +
                                ((int)styleManager1.ManagerStyle).ToString();;

                Process.Start(psi);
            }

            catch (Exception ex)
            {
                MsgBox(ex.Message, "ERROR", MessageBoxIcon.Error);
            }
        }