Example #1
0
        /// <summary>
        /// Closes the connection
        /// </summary>
        /// <param object="sende"></param>
        /// <param EventArgs="args"></param>
        public void Close(object sende, EventArgs args)
        {
            Connect c = Connect.Instance;

            c.Write("3");
            c.CloseConnction();
            Console.WriteLine("Disconnected");
        }
        /// <summary>
        /// Will remove selected item from the list - writes to the server
        /// </summary>
        /// <param object="s"></param>
        private void OnRemove(Object s)
        {
            Connect c = Connect.Instance;

            c.Write("5," + SelectedItem.ToString());
        }