Exemplo n.º 1
0
 /// <summary>
 /// Process arguments past with app execution
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void singleInstance_ArgumentsReceived(object sender, ArgumentsReceivedEventArgs e)
 {
     foreach (String arg in e.Args)
     {
         //if arguments include OpenSettings open SettingsBox
         if (arg == "OpenSettings")
         {
             settingsBox.ShowDialog();
         }
     }
 }
Exemplo n.º 2
0
        // Handles the Click event of the settings control
        void Settings_Click(object sender, EventArgs e)
        {
            try
            {
                if (!isSettingsLoaded)
                {
                    isSettingsLoaded = true;
                    SettingsBox box = new SettingsBox();

                    //Pass Lync instance
                    box.lync = lync;

                    box.ShowDialog();
                    isSettingsLoaded = false;
                }
            }
            catch (Exception ex)
            {
                // AAAAAAAAAAARGH, an error!
                Shared.MB("Error on click event : " + ex.Message, "ERROR!");
            }
        }