Example #1
0
        //Add computer names to context menu
        private static void subMenuItem_Clicked(object sender, EventArgs e)
        {
            var clickedMenuItem = sender as ToolStripMenuItem;

            /////////////////////////////////////
            if (PC_Name == clickedMenuItem.Text)
            {
                SocketServer_11500.Send(socket);
                Start_EkranPaylas(socket);
            }
        }
Example #2
0
        public Main()
        {
            this.Visible       = false;
            this.ShowInTaskbar = false;

            InitializeComponent();

            this.WindowState          = FormWindowState.Minimized;
            notifyIcon_server.Icon    = Properties.Resources.Cool;
            notifyIcon_server.Visible = true;

            //ContextMenu'ye eklenecekleri eklemek icin
            MenuStripSettings();

            try
            {
                SocketServer_11500.Start();
            }
            catch (Exception)
            {
                Application.Exit();
            }
        }
Example #3
0
 private static void socketServer_Start(object o)
 {
     SocketServer_11500.Start();
 }