Exemplo n.º 1
0
 private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!fmrPreferences.Visible)
     {
         fmrPreferences = new Form_Preferences(this);
         fmrPreferences.Show();
     }
     else
     {
         fmrPreferences.BringToFront();
     }
 }
Exemplo n.º 2
0
        public Voicer_Main()
        {
            AllocConsole();
            //FreeConsole();
            InitializeComponent();
            localClient = new Client();
            recorder    = new Audio();
            ClientListControl.ListItemDoubleClicked += ItemList_Clicked;

            fmrPreferences = new Form_Preferences(this);

            // Called when the user list needs to be updated
            localClient.UserListUpdated += OnChannelListUpdate;
            // Called when a chat message is recieved.
            localClient.ChatMessageRecieved   += OnChatMessage;
            localClient.ServerMessageRecieved += OnServerMessage;
            // Called when the Client's status has changed.
            localClient.StatusChanged += UpdateStatusLabel;

            if (Settings.Default.Enable_PTT)
            {
                EnablePTT();
            }
        }