Example #1
0
        public void disconnected()
        {
            System.Windows.Forms.MessageBox.Show("disconnected");
            Timer_State timer = Timer_State.getinstance();

            timer.Stop();
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            Timer_State.getinstance(this);
            DoubleBuffering.getinstance().setInstance(this);
            Form_input.binding(this);

            MainProgram.init(this);
        }
Example #3
0
        public Paper_io_Server()
        {
            InitializeComponent();
            LogQueue   = new Queue <string>();
            MainServer = MasterServer.getinstance();
            timer      = Timer_State.getinstance(this);
            timer.callback_TimerAllStopped += Form_Closing;

            lbl_IPAddress.Text = "IP : " + getLocalIP();
            lbl_Port.Text      = "Port : " + MainServer.PORT;
        }
Example #4
0
        public Paper_io_Client()
        {
            InitializeComponent();
            timer = Timer_State.getinstance();
            timer.callback_TimerAllStopped += Formclose;
            program = MainProgram.getinstance();

            DoubleBufferingSetting();

            this.ActiveControl = tb_id;
            Form_input.binding(this);
        }
Example #5
0
        public Mainprogram(Form1 form)
        {
            db = DoubleBuffering.getinstance();
            db.setInstance(form);
            Timer_State.getinstance(form);
            this.form = form;
            tv        = new TextViewer();

            Helper              = new ansHanoi();
            map                 = new GraphicMap(form);
            GraphicMap.moveend += moveend;
        }