public AboutForm()
        {
            InitializeComponent();
            VersionBO bo = (VersionBO)SingletonManager.GetSingleton(typeof(VersionBO));

            this.msg = bo.ProgramName + " v" + bo.Version + "\n" + "By:\n" + "Volz Software";
        }
Exemple #2
0
 static void Main()
 {
     try {
         mutex = Mutex.OpenExisting(mutexName);
         //fail if no exception is thrown
         MessageForm frm = new MessageForm();
         VersionBO   bo  = (VersionBO)SingletonManager.GetSingleton(typeof(VersionBO));
         frm.Msg = String.Format(
             "There is already a copy of {0} v{1} running.\n\n" +
             "I'll close this one, so you can use the other one.\n" +
             "Please check your task bar and system tray for the active copy.", bo.ProgramName, bo.Version);
         frm.ShowDialog();
         Environment.Exit(0);
     }
     catch {
         mutex = new Mutex(true, mutexName);
         LicenseBO bo = (LicenseBO)SingletonManager.GetSingleton(typeof(LicenseBO));
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         if (bo.IsActive())
         {
             Application.Run(new MainForm());
         }
     }
 }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            VersionBO vbo = (VersionBO)SingletonManager.GetSingleton(typeof(VersionBO));

            this.Text = vbo.ProgramName + " v" + vbo.Version;
            LoadJobs();
            //RefreshFiles();
            ConfigurationBO bo  = (ConfigurationBO)SingletonManager.GetSingleton(typeof(ConfigurationBO));
            ListenerBO      lbo = (ListenerBO)SingletonManager.GetSingleton(typeof(ListenerBO));

            if (bo.CContainer.AutoStart)
            {
                lbo.StartListeners();
            }
            lbo.StatusChanged += new EventHandler(lbo_StatusChanged);
            lbo_StatusChanged(lbo, EventArgs.Empty);
            SynchronizeBO sbo = (SynchronizeBO)SingletonManager.GetSingleton(typeof(SynchronizeBO));

            sbo.Synchronized  += new SynchEventHandler(sbo_Synchronized);
            sbo.FinishedSynch += new EventHandler(sbo_FinishedSynch);
        }
Exemple #4
0
        protected void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            VersionBO bo = (VersionBO)SingletonManager.GetSingleton(typeof(VersionBO));

            SharedBO.LaunchWebsite(Properties.Settings.Default.SalesWebsite + "?version=" + bo.ToString());
        }