public Settings(Question q, Main_form m) { InitializeComponent(); CenterToScreen(); }
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; }
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(); }
private void PostsShow_Button_Click(object sender, EventArgs e) { main_Form = new Main_form(); main_Form.Show(); Hide(); }
private void Enter_Button_Click(object sender, EventArgs e) { MP = new Main_form(); Hide(); MP.Show(); }