Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            clientPI = new UserProtocolInterpretor();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            new LoginView(clientPI).Show();
            Application.Run();
        }
Ejemplo n.º 2
0
        public LoginView(UserProtocolInterpretor client)
        {
            mClient = client;
            InitializeComponent();

            mClient.Init();
            if (mClient.Connect())
            {
                ChangeStatus("아이디와 비밀번호를 입력하세요.", true);
            }
            else
            {
                ChangeStatus("왕석이한테 서버 키라고 해요", false);
            }
        }
Ejemplo n.º 3
0
        public SearchUI(UserProtocolInterpretor client)
        {
            InitializeComponent();
            mClient = client;

            this.FormBorderStyle = FormBorderStyle.None;
            Height = 55;
            Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));

            TBSearch.KeyUp += new KeyEventHandler(TBSearch_KeyUp);

            ////TBSearch.Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
            TopMatch.MouseDown   += TopMatch_MouseDown;
            TopMatch.MouseMove   += TopMatch_MouseMove;
            TopMatch.DoubleClick += TopMatch_DoubleClick;

            otherFileIcons[0] = OtherPB1;
            otherFileIcons[1] = OtherPB2;
            otherFileIcons[2] = OtherPB3;
            otherFileIcons[3] = OtherPB4;

            otherFiles[0] = Other1;
            otherFiles[1] = Other2;
            otherFiles[2] = Other3;
            otherFiles[3] = Other4;

            for (int i = 0; i < 4; i++)
            {
                otherFileIcons[i].Hide();
                otherFiles[i].Hide();
            }

            //ghk.HookedKeys.Add(Keys.F12);
            //ghk.KeyDown += new KeyEventHandler(Hooking);

            //init();
        }
Ejemplo n.º 4
0
 public TrayView(UserProtocolInterpretor client)
 {
     mClient = client;
     init();
     InitializeComponent();
 }