Пример #1
0
 public ContactsSearch(ClientForm clientForm)
 {
     this.myClientForm = clientForm;
     InitializeComponent();
     LocalizeComponent();
     BrandComponent();
 }
Пример #2
0
        public ChatWindow(ClientForm clientForm)
        {
            InitializeComponent();
            myClientForm = clientForm;
            myEmoticons.LoadDefault(myMessageMenuImagesList);

            this.ClientSize = this.Size;
        }
Пример #3
0
 public ChatWindow(ClientForm clientForm)
 {
     InitializeComponent();
     LocalizeComponent();
     myClientForm = clientForm;
     this.myChatSessionsTabControl.ImageList = this.myClientForm.myPresenceImagesList;
     this.ClientSize = this.Size;
 }
Пример #4
0
        static void Main()
        {
            string applicationName = Application.ProductName;
            string executablePath = Application.ExecutablePath;
            int[] portsToOpen = { };
            //hnetcfg.dll 
            Firewall.OpenFirewallPorts(executablePath, applicationName, portsToOpen);

            QualityAgentLogger Logger = new QualityAgentLogger(Application.StartupPath+@"\QualityAgent.exe");
            Console.SetError(Logger);

            //Allow to run only one instance of application

            // A boolean that indicates whether this application has
            // initial ownership of the Mutex.
            bool ownsMutex;

            // Attempt to create and take ownership of a Mutex named
            // MutexExample.
            using (Mutex mutex =
                       new Mutex(true, "Remwave-Client-Mutex", out ownsMutex))
            {
                // If the application owns the Mutex it can continue to execute;
                // otherwise, the application should exit. 
                if (ownsMutex)
                {
                    Console.WriteLine("Mutex:Started Client-Mutex to ensure only one instance run concurrently.");
                    Application.EnableVisualStyles();
                    AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
                    Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
                    Application.SetCompatibleTextRenderingDefault(false);
                    
					//Splash screen
                    Thread thread = new Thread(new ThreadStart(Program.DoSplash));
                    thread.Priority = ThreadPriority.Normal;
                    thread.Start();
                    try
                    {
                        Form MainForm = new ClientForm();
                        MainForm.Show();
                        msShowSplash = false;
                        Application.Run(MainForm);
                    }
                    catch (Exception ex)
                    {
                        HandleException(ex);
                    } 
                 
                    // Release the mutex
                    mutex.ReleaseMutex();
                }
                else
                {
                    Console.WriteLine("Mutex:Another instance is already running. This instance of the application will terminate.");
                    Thread.Sleep(1000);
                }
            }
        }
Пример #5
0
 public NikotalkieForm(ClientForm owner )
 {
     mOwner = owner;
     InitializeComponent();
     nikotalkieControl.ShowControl += new EventHandler(nikotalkieControl_ShowControl);
     nikotalkieControl.HideControl += new EventHandler(nikotalkieControl_HideControl);
     nikotalkieControl.IncomingMessage += new EventHandler(nikotalkieControl_IncomingMessage);
     nikotalkieControl.AcceptButtonChanged += new EventHandler(nikotalkieControl_AcceptButtonChanged);
 }
Пример #6
0
        public ConfigurationWindow(ClientForm clientForm)
        {
            myClientForm = clientForm;

            InitializeComponent();

            tbSipProxyAddress.Text = myClientForm.myClientConfiguration.SIPProxyAddress;
            tbSipRealm.Text = myClientForm.myClientConfiguration.SIPProxyRealm;
            tbIMServerAddress.Text = myClientForm.myClientConfiguration.IMServerAddress;
            tbVideoProxyAddress.Text = myClientForm.myClientConfiguration.VideoProxyAddress;

            try
            {
                cbServiceProviders.SelectedIndex = 0;

                RemwaveLiteWS.Service service = new Remwave.Client.RemwaveLiteWS.Service();
                RemwaveLiteWS.ServiceProvider[] serviceProviders = service.ServiceProviders(Application.ProductVersion);

                foreach (RemwaveLiteWS.ServiceProvider serviceProvider in serviceProviders)
                {
                    RadComboBoxItem cbItem = new RadComboBoxItem();

                    cbItem.AccessibleDescription = "";
                    cbItem.DescriptionFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                    cbItem.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                    cbItem.DescriptionText = serviceProvider.Description;
                    cbItem.KeyTip = "";
                    cbItem.Text = serviceProvider.Name;
                    cbItem.TextSeparatorVisibility = Telerik.WinControls.ElementVisibility.Visible;
                    cbItem.ToolTipText = null;
                    cbItem.Tag = serviceProvider;

                    cbServiceProviders.Items.Add(cbItem);
                }


            }
            catch (Exception)
            {

                throw;
            }

        }
Пример #7
0
        public ContactsWindow(ClientForm clientForm, NTContact selectedMyContact, Hashtable properties)
        {
            myClientForm = clientForm;
            mContactBook = myClientForm.mContactBook;
            mContactBook.UpdateCompleted += new EventHandler(mContactBook_UpdateCompleted);
            mProperties = properties;

            InitializeComponent();
            LocalizeComponent();
            BrandComponent();

            this.ClientSize = this.Size;
            this.MaximizeBox = false;
            this.MaximumSize = this.Size;


            LoadContact(selectedMyContact);


        }
Пример #8
0
        public ContactsWindow(ClientForm clientForm, NTContact selectedMyContact, Hashtable properties)
        {
            InitializeComponent();
            LocalizeComponent();
            this.ClientSize = this.Size;
            this.MaximizeBox = false;
            this.MaximumSize = this.Size;

            myClientForm = clientForm;
            mContactBook = myClientForm.mContactBook;
            if (selectedMyContact != null)
            {
                myNTContact = selectedMyContact;
            }
            else
            {
                myNTContact = new NTContact();
            }

            myContactJabberGroupListBox.Items.Clear();
            myContactJabberIMNetworkListBox.DataSource = Enum.GetValues(typeof(ConfigXMPPNetwork));
            myContactJabberIMNetworkListBox.SelectedIndex = 0;

            comboBox1.DataSource = Enum.GetValues(typeof(NTContactStore));

            myContactJabberIDInput.Text = myNTContact.NTJabberID;
			
			
			myContactJabberGroupListBox.Items.Clear();
            myContactJabberGroupListBox.Items.Add("");         
            myContactFirstNameInput.Text = myNTContact.NTFirstName;
            myContactMiddleNameInput.Text = myNTContact.NTMiddleName;
            myContactLastNameInput.Text = myNTContact.NTLastName;
            myContactPhoneHomeInput.Text = myNTContact.NTHomeTelephoneNumber;
            myContactPhoneMobileInput.Text = myNTContact.NTMobileTelephoneNumber;
            myContactPhoneBusinessInput.Text = myNTContact.NTBusinessTelephoneNumber;
            myContactPhoneVoIPInput.Text = myNTContact.NTVoIPTelephoneNumber;

            myContactJabberIDInput.Text = myNTContact.NTJabberID;

            myContactAddressStreetInput.Text = myNTContact.NTHomeAddressStreet;
            myContactAddressCityInput.Text = myNTContact.NTHomeAddressCity;
            myContactAddressZipCodeInput.Text = myNTContact.NTHomeAddressPostalCode;
            myContactAddressStateInput.Text = myNTContact.NTHomeAddressState;
            myContactAddressCountryInput.Text = myNTContact.NTHomeAddressCountry;

            myContactAddressEmailInput.Text = myNTContact.NTEmail1Address;

            try
            {
                myContactPicture.Image = ImageProcessing.FromString(myNTContact.NTPicture);
            }
            catch (Exception)
            {
                
            }
                

            if (properties != null)
            {
                myContactFirstNameInput.Text = properties["NTFirstName"] != null ? properties["NTFirstName"].ToString() : myNTContact.NTFirstName;
                myContactMiddleNameInput.Text = properties["NTMiddleName"] != null ? properties["NTMiddleName"].ToString() : myNTContact.NTMiddleName;
                myContactLastNameInput.Text = properties["NTLastName"] != null ? properties["NTLastName"].ToString() : myNTContact.NTLastName;
                myContactPhoneHomeInput.Text = properties["NTHomeTelephoneNumber"] != null ? properties["NTHomeTelephoneNumber"].ToString() : myNTContact.NTHomeTelephoneNumber;
                myContactPhoneMobileInput.Text = properties["NTMobileTelephoneNumber"] != null ? properties["NTMobileTelephoneNumber"].ToString() : myNTContact.NTMobileTelephoneNumber;
                myContactPhoneBusinessInput.Text = properties["NTBusinessTelephoneNumber"] != null ? properties["NTBusinessTelephoneNumber"].ToString() : myNTContact.NTBusinessTelephoneNumber;
                myContactPhoneVoIPInput.Text = properties["NTVoIPTelephoneNumber"] != null ? properties["NTVoIPTelephoneNumber"].ToString() : myNTContact.NTVoIPTelephoneNumber;
                myContactJabberIDInput.Text = properties["NTJabberID"] != null ? properties["NTJabberID"].ToString() : myNTContact.NTJabberID;

                myContactAddressStreetInput.Text = properties["NTHomeAddressStreet"] != null ? properties["NTHomeAddressStreet"].ToString() : myNTContact.NTHomeAddressStreet;
                myContactAddressCityInput.Text = properties["NTHomeAddressCity"] != null ? properties["NTHomeAddressCity"].ToString() : myNTContact.NTHomeAddressCity;
                myContactAddressZipCodeInput.Text = properties["NTHomeAddressPostalCode"] != null ? properties["NTHomeAddressPostalCode"].ToString() : myNTContact.NTHomeAddressPostalCode;
                myContactAddressStateInput.Text = properties["NTHomeAddressState"] != null ? properties["NTHomeAddressState"].ToString() : myNTContact.NTHomeAddressState;
                myContactAddressCountryInput.Text = properties["NTHomeAddressCountry"] != null ? properties["NTHomeAddressCountry"].ToString() : myNTContact.NTHomeAddressCountry;

                myContactAddressEmailInput.Text = properties["NTEmail1Address"] != null ? properties["NTEmail1Address"].ToString() : myNTContact.NTEmail1Address;
            }

            JabberUser jabberUser = null;
            if (myContactJabberIDInput.Text != "")
            {
                jabberUser = new JabberUser(myContactJabberIDInput.Text);
                myContactJabberIDInput.Text = jabberUser.Username;
                myContactJabberIMNetworkListBox.SelectedItem = jabberUser.Network;
            }

            comboBox1.SelectedItem = myNTContact.NTContactStore;

            foreach (DictionaryEntry group in myClientForm.myBuddyGroups)
            {


                if (group.Value.ToString() != "" && !myContactJabberGroupListBox.Items.Contains(group.Value.ToString()))
                    myContactJabberGroupListBox.Items.Add(group.Value.ToString());



                if (jabberUser != null && jabberUser.Username == group.Key.ToString())
                {
                    myContactJabberGroupListBox.SelectedIndex = myContactJabberGroupListBox.Items.Count - 1;
                }
            }



            if (myClientForm.mUserAccount.Username == myContactJabberIDInput.Text)
            {
                myContactJabberGroupBox.Visible = false;
            }
            


        }
Пример #9
0
 public SpeedDialWindow(ClientForm clientForm)
 {
     InitializeComponent();
     BrandComponent();
     this.myClientForm = clientForm;
 }
Пример #10
0
 public SpeedDialWindow(ClientForm clientForm)
 {
     InitializeComponent();
     this.myClientForm = clientForm;
     this.lbxSearchResults.Visible = false;
 }
Пример #11
0
        public ContactsWindow(ClientForm clientForm, NTContact selectedMyContact, Hashtable properties)
        {
            InitializeComponent();

            this.ClientSize = this.Size;
            this.MaximizeBox = false;
            this.MaximumSize = this.Size;

            myClientForm = clientForm;
            myRPhoneBook = myClientForm.myContactsBook;


            try
            {

            
            if (selectedMyContact != null)
            {
                myNTContact = selectedMyContact;
            }
            else
            {
                myNTContact = new NTContact();
            }

            myContactJabberIDListBox.Items.Clear();
            myContactJabberIDListBox.Items.Add("");

            myContactJabberGroupListBox.Items.Clear();
            myContactJabberGroupListBox.Items.Add("");

            

            myContactFirstNameInput.Text = myNTContact.NTFirstName;
            myContactMiddleNameInput.Text = myNTContact.NTMiddleName;
            myContactLastNameInput.Text = myNTContact.NTLastName;
            myContactPhoneHomeInput.Text = myNTContact.NTHomeTelephoneNumber;
            myContactPhoneMobileInput.Text = myNTContact.NTMobileTelephoneNumber;
            myContactPhoneBusinessInput.Text = myNTContact.NTBusinessTelephoneNumber;
            myContactPhoneVoIPInput.Text = myNTContact.NTVoIPTelephoneNumber;
            
                myContactJabberIDListBox.SelectedText = myNTContact.NTJabberID;

            myContactAddressStreetInput.Text = myNTContact.NTHomeAddressStreet;
            myContactAddressCityInput.Text = myNTContact.NTHomeAddressCity;
            myContactAddressZipCodeInput.Text = myNTContact.NTHomeAddressPostalCode;
            myContactAddressStateInput.Text = myNTContact.NTHomeAddressState;
            myContactAddressCountryInput.Text = myNTContact.NTHomeAddressCountry;

            myContactAddressEmailInput.Text = myNTContact.NTEmail1Address;

            if (properties != null)
            {
                myContactFirstNameInput.Text = properties["NTFirstName"] != null ? properties["NTFirstName"].ToString() : myNTContact.NTFirstName;
                myContactMiddleNameInput.Text = properties["NTMiddleName"] != null ? properties["NTMiddleName"].ToString() : myNTContact.NTMiddleName;
                myContactLastNameInput.Text = properties["NTLastName"] != null ? properties["NTLastName"].ToString() : myNTContact.NTLastName;
                myContactPhoneHomeInput.Text = properties["NTHomeTelephoneNumber"] != null ? properties["NTHomeTelephoneNumber"].ToString() : myNTContact.NTHomeTelephoneNumber;
                myContactPhoneMobileInput.Text = properties["NTMobileTelephoneNumber"] != null ? properties["NTMobileTelephoneNumber"].ToString() : myNTContact.NTMobileTelephoneNumber;
                myContactPhoneBusinessInput.Text = properties["NTBusinessTelephoneNumber"] != null ? properties["NTBusinessTelephoneNumber"].ToString() : myNTContact.NTBusinessTelephoneNumber;
                myContactPhoneVoIPInput.Text = properties["NTVoIPTelephoneNumber"] != null ? properties["NTVoIPTelephoneNumber"].ToString() : myNTContact.NTVoIPTelephoneNumber;
                myContactJabberIDListBox.SelectedText = properties["NTJabberID"] != null ? properties["NTJabberID"].ToString() : myNTContact.NTJabberID;

                myContactAddressStreetInput.Text = properties["NTHomeAddressStreet"] != null ? properties["NTHomeAddressStreet"].ToString() : myNTContact.NTHomeAddressStreet;
                myContactAddressCityInput.Text = properties["NTHomeAddressCity"] != null ? properties["NTHomeAddressCity"].ToString() : myNTContact.NTHomeAddressCity;
                myContactAddressZipCodeInput.Text = properties["NTHomeAddressPostalCode"] != null ? properties["NTHomeAddressPostalCode"].ToString() : myNTContact.NTHomeAddressPostalCode;
                myContactAddressStateInput.Text = properties["NTHomeAddressState"] != null ? properties["NTHomeAddressState"].ToString() : myNTContact.NTHomeAddressState;
                myContactAddressCountryInput.Text = properties["NTHomeAddressCountry"] != null ? properties["NTHomeAddressCountry"].ToString() : myNTContact.NTHomeAddressCountry;

                myContactAddressEmailInput.Text  = properties["NTEmail1Address"] != null ? properties["NTEmail1Address"].ToString() : myNTContact.NTEmail1Address;
            }

            foreach (DictionaryEntry buddy in myClientForm.myBuddyList)
            {
                myContactJabberIDListBox.Items.Add(buddy.Key.ToString());
                myContactJabberGroupListBox.Items.Add(buddy.Value.ToString());
                if (myContactJabberIDListBox.Text == buddy.Key.ToString())
                {
                    myContactJabberIDListBox.SelectedIndex = myContactJabberIDListBox.Items.Count - 1;
                    myContactJabberGroupListBox.SelectedIndex = myContactJabberGroupListBox.Items.Count - 1;
                }
            }
        }
        catch (Exception)
        {

          //  throw;
        }
        }