Exemple #1
0
        public MainForm()
        {
            InitializeComponent();
            //initView();
            this.Resize += Form_Resize;
            login        = new Login(this);
            login.ShowDialog();

            fnd  = new menu_friend(this);
            chat = new menu_chatting(this);
            opt  = new menu_option(this);
            panel2.Controls.Add(fnd);
            panel2.Controls.Add(chat);
            panel2.Controls.Add(opt);

            // 로그인 시, 기본화면은 친구창
            fnd.Visible  = true;
            chat.Visible = false;
            opt.Visible  = false;

            setBtnColor(btnFriend, pnlFriend);
            setBtnDefault(btnChatting, pnlChat);
            setBtnDefault(btnOption, pnlOpt);

            notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
            notifyIcon1.Visible          = false;
            this.ShowInTaskbar           = true;
        }
Exemple #2
0
        // 메인폼 전환 시
        public MainForm(MainForm pastMain)
        {
            InitializeComponent();

            Program.ac.MainForm = this; // 메인폼 전환
            pastMain.Close();           // 이전메인폼 닫기

            //initView();
            login = new Login(this);
            login.ShowDialog();

            fnd  = new menu_friend(this);
            chat = new menu_chatting(this);
            opt  = new menu_option(this);
            panel2.Controls.Add(fnd);
            panel2.Controls.Add(chat);
            panel2.Controls.Add(opt);

            // 로그인 시, 기본화면은 친구창
            fnd.Visible  = true;
            chat.Visible = false;
            opt.Visible  = false;
            setBtnColor(btnFriend, pnlFriend);
            setBtnDefault(btnChatting, pnlChat);
            setBtnDefault(btnOption, pnlOpt);
        }
Exemple #3
0
        public AddChatRoom(MainForm main, menu_chatting menu_chatting)
        {
            this.menu_chatting = menu_chatting;

            InitializeComponent();
            this.main = main;
            foreach (Friend item in friendList)
            {   // 친구목록 출력
                //checkedListBox1.Items.Add(item.getfId() + " : " + item.getfname());
                checkedListBox1.Items.Add(item.getfname());
            }
            Design.buttonStyle(btnAdd);
        }
Exemple #4
0
        private void initView()
        {
            login = new Login(this);
            login.ShowDialog();

            fnd  = new menu_friend(this);
            chat = new menu_chatting(this);
            opt  = new menu_option(this);
            panel2.Controls.Add(fnd);
            panel2.Controls.Add(chat);
            panel2.Controls.Add(opt);

            // 로그인 시, 기본화면은 친구창
            fnd.Visible  = true;
            chat.Visible = false;
            opt.Visible  = false;

            setBtnColor(btnFriend, pnlFriend);
            setBtnDefault(btnChatting, pnlChat);
            setBtnDefault(btnOption, pnlOpt);
        }