public void PutMember(Member m) { member = m; number = new OpacityLabel(); number.Size = new System.Drawing.Size(100, 30); number.Text = "№"; number.Text += member.Number.ToString(); number.Location = new System.Drawing.Point(this.Width - number.Width); number.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); number.BorderStyle = BorderStyle.Fixed3D; this.Controls.Add(number); fullName = new OpacityLabel(); fullName.Text = member.FirstName + " " + member.LastName + " " + member.Family; fullName.Size = new System.Drawing.Size(400, 30); fullName.Location = new System.Drawing.Point(0, 0); fullName.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(fullName); birthDayLabel = new OpacityLabel(); birthDayLabel.Text = "День рождения"; birthDayLabel.Location = new System.Drawing.Point(0, 40); birthDayLabel.Size = new System.Drawing.Size(180, 30); birthDayLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(birthDayLabel); birthDay = new OpacityLinkLabel(); birthDay.Text = ifThereIsNotDate(member.BDate); birthDay.Size = new System.Drawing.Size(200, 30); birthDay.Click += new EventHandler(birthDay_Click); birthDay.Location = new System.Drawing.Point(200, 40); birthDay.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(birthDay); enterDateLabel = new OpacityLabel(); enterDateLabel.Size = new System.Drawing.Size(190, 30); enterDateLabel.Location = new System.Drawing.Point(0, 80); enterDateLabel.Text = "Дата вступления"; enterDateLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(enterDateLabel); enterDate = new OpacityLinkLabel(); enterDate.Size = new System.Drawing.Size(200, 30); enterDate.Text = ifThereIsNotDate(member.EnterDate); enterDate.Click += new EventHandler(enterDate_Click); enterDate.Location = new System.Drawing.Point(200, 80); enterDate.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(enterDate); emailLabel = new OpacityLabel(); emailLabel.Size = new System.Drawing.Size(190, 30); emailLabel.Location = new System.Drawing.Point(0, 120); emailLabel.Text = "E-mail"; emailLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(emailLabel); email = new OpacityLinkLabel(); email.Size = new System.Drawing.Size(200, 30); email.Text = member.Email; email.Location = new System.Drawing.Point(200, 120); email.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(email); local = new OpacityLabel(); local.Size = new System.Drawing.Size(300, 60); local.Text = member.Local; local.Location = new System.Drawing.Point(200, 160); local.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(local); localLabel = new OpacityLabel(); localLabel.Size = new System.Drawing.Size(200, 30); localLabel.Location = new System.Drawing.Point(0, 160); localLabel.Text = "Подразделение"; localLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(localLabel); city = new OpacityLinkLabel(); city.Size = new System.Drawing.Size(350, 30); city.Click += new EventHandler(city_Click); city.Location = new System.Drawing.Point(200, 240); city.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); city.Text = member.City; this.Controls.Add(city); cityLabel = new OpacityLabel(); cityLabel.Size = new System.Drawing.Size(200, 30); cityLabel.Location = new System.Drawing.Point(0, 240); cityLabel.Text = "Населённый пункт"; cityLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(cityLabel); if (member.Area != "") { area = new OpacityLinkLabel(); area.Size = new System.Drawing.Size(350, 30); area.Location = new System.Drawing.Point(200, 280); area.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); area.Text = member.Area; this.Controls.Add(area); areaLabel = new OpacityLabel(); areaLabel.Size = new System.Drawing.Size(200, 30); areaLabel.Location = new System.Drawing.Point(0, 280); areaLabel.Text = "Район"; areaLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(areaLabel); } godFather = new OpacityLinkLabel(); godFather.Size = new System.Drawing.Size(300, 60); godFather.Location = new System.Drawing.Point(200, 320); godFather.Click += new EventHandler(godFather_Click); godFather.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); godFather.Text = Program.Data.GetMICGodFather(member).Family + " " + Program.Data.GetMICGodFather(member).FirstName + " " + Program.Data.GetMICGodFather(member).LastName; this.Controls.Add(godFather); godFatherLabel = new OpacityLabel(); godFatherLabel.Size = new System.Drawing.Size(200, 30); godFatherLabel.Location = new System.Drawing.Point(0, 320); godFatherLabel.Text = "Крёстный в МИЦ"; godFatherLabel.Font = new System.Drawing.Font("PF BeauSans Pro", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Controls.Add(godFatherLabel); }
private void initOptions(ref OpacityLabel[] con) { for (int i = 0; i < con.Length; i++) { con[i] = new OpacityLabel(); con[i].AutoSize = true; con[i].Dock = DockStyle.Fill; con[i].TextAlign = ContentAlignment.MiddleCenter; con[i].Font = new Font(this.Font.FontFamily, 12F); con[i].Visible = true; } }
private void PutStyleTitleLabels(ref OpacityLabel t) { t.TextAlign = ContentAlignment.BottomCenter; t.Font = new Font(t.Font.FontFamily, t.Font.Size, FontStyle.Bold); }
//private void InitPlannerPanel() { // if (Program.Data.MainUser.Functions[Const.ONLINE_CONFERENCE]) { // functions[Const.ONLINE_CONFERENCE].Controls.Add(taskLinkLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(taskListLinkLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(eventLinkLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(eventListLinkLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(ideasLinkLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(ideasListLinkLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(newIdeaButton); // functions[Const.ONLINE_CONFERENCE].Controls.Add(newIdeaLabel); // functions[Const.ONLINE_CONFERENCE].Controls.Add(newIdeaTextBox); // functions[Const.ONLINE_CONFERENCE].Dock = System.Windows.Forms.DockStyle.Top; // functions[Const.ONLINE_CONFERENCE].Size = new Size(213, 203); // functions[Const.ONLINE_CONFERENCE].TabIndex = 2; // } // Program.Data.InitMinds(); // ideasListLinkLabel.Text = Program.Data.IdeasCount.ToString(); // taskListLinkLabel.Text = Program.Data.TasksCount.ToString(); //} private void InitOnlineConferencePanel() { OpacityLabel onlineConferenceLabel = new OpacityLabel(); onlineConferenceLabel.Size = new Size(200, 40); onlineConferenceLabel.Indent = OpacityLabel.ControlIndent.Small; onlineConferenceLabel.TextAlign = ContentAlignment.MiddleCenter; onlineConferenceLabel.Text = "Онлайн-конференция руководителей Молодёжного инициативного центра"; onlineConferenceLabel.MouseEnter += new EventHandler(onlineConferenceLabel_MouseEnter); if (Program.Data.MainUser.Functions[Const.ONLINE_CONFERENCE]) { functions[Const.ONLINE_CONFERENCE].InitializeCellsCount(1, 2); functions[Const.ONLINE_CONFERENCE].Controls.Add(onlineConferenceLabel, 0, 0); functions[Const.ONLINE_CONFERENCE].Controls.Add(this.onlineConferenceButton, 0, 1); } }