コード例 #1
0
        public MainForm()
        {
            f1            = this;
            currentClient = new ClientManager(f1);
            InitializeComponent();
            SignForm SignForm = new SignForm(f1, currentClient);

            SignForm.ShowDialog();
            filter = new WordFilterHelper();
            ActionTime();
        }
コード例 #2
0
        public MainForm()
        {
            InitializeComponent();
            currentClient = new ClientManager(f1);
            currentClient.ReceiveMessageHandler += HandleReceivedMessages;
            f1 = this;
            currentClient.FindServer();
            SignForm SignForm = new SignForm(f1, currentClient);

            SignForm.ShowDialog();
        }
コード例 #3
0
        private void signButton_Click(object sender, EventArgs e)
        {
            tcpClient = new TcpClient();
            tcpClient.Connect("127.0.0.1", 9876);
            stream = tcpClient.GetStream();

            Hide();
            SignForm signForm = new SignForm();

            signForm.FormClosed += new FormClosedEventHandler(childForm_Closed);
            signForm.Show();
        }