예제 #1
0
        public Settings(Question q, Main_form m)
        {
            InitializeComponent();



            CenterToScreen();
        }
예제 #2
0
        public Question(Main_form main, int port, string ip, Settings set)
        {
            InitializeComponent();
            CenterToScreen();



            this.port = port;
            this.ip   = ip;
        }
        public OnlyTitlePostButton(Post post, Main_form mf)
        {
            InitializeComponent();

            main_Form = mf;
            this.post = post;


            Title.Text = post.Title;
        }
예제 #4
0
        public PostLine(Post nPost, int ypos, Main_form main)
        {
            InitializeComponent();

            yPosition = ypos;
            post      = nPost;
            mainform  = main;


            post.postline = this; // Передаем посту ссылку на объект контроллера поста


            Titile_label.Text     = nPost.Title;
            Date_Label.Text       = nPost.Date;
            PostAuthor_Label.Text = nPost.Author;

            Location = new Point(145, yPosition);
            ImportancyShow();
        }
예제 #5
0
 private void PostsShow_Button_Click(object sender, EventArgs e)
 {
     main_Form = new Main_form();
     main_Form.Show();
     Hide();
 }
예제 #6
0
 private void Enter_Button_Click(object sender, EventArgs e)
 {
     MP = new Main_form();
     Hide();
     MP.Show();
 }