public Fcalender(Fcontainer parent, Factivity activity) { InitializeComponent(); //CASUAL MdiParent = parent; this.Dock = DockStyle.Fill; Visible = true; FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; //SPECIFIC for (int i = 0; i < 50; i++) { Test t = new Test(i); V_Activities.Items.Add(Convert.ToString(i));//, t.numTest); } f_activity = activity; //parent.Fcalendar_Set(); /*if(Parent.SizeChanged == true) * { * this.Size = new Size(Parent.Width-4, Parent.Height-4); * }*/ //Size = new System.Drawing.Size(Parent.Width - 4, Parent.Height - 4); //Size = new Size(); //this.Size.Width = this.MdiParent.Size.Width; // (MdiParent.Size); // = this.MdiParent.GetContainerControl(); }
public Fcalender(Fcontainer parent, Factivity activity) { InitializeComponent(); //CASUAL MdiParent = parent; this.Dock = DockStyle.Fill; Visible = true; FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; //SPECIFIC for (int i = 0; i < 50; i++) { Test t = new Test(i); V_Activities.Items.Add(Convert.ToString(i));//, t.numTest); } f_activity = activity; //parent.Fcalendar_Set(); /*if(Parent.SizeChanged == true) { this.Size = new Size(Parent.Width-4, Parent.Height-4); }*/ //Size = new System.Drawing.Size(Parent.Width - 4, Parent.Height - 4); //Size = new Size(); //this.Size.Width = this.MdiParent.Size.Width; // (MdiParent.Size); // = this.MdiParent.GetContainerControl(); }
//public Mission mission; public Fcontainer() { InitializeComponent(); this.IsMdiContainer = true; WindowState = System.Windows.Forms.FormWindowState.Maximized; f_research = new Fresearch(this); f_exploration = new Fexploration(this); f_activity = new Factivity(this); f_calendar = new Fcalender(this, f_activity); f_settings = new Fsettings(this); //calendar.Size = new Size(Width - 4, Height - 4); //Test if the mission isn't initialized /*if(not initialized)*/ //L_date.Text = "Jour ?, ?h?"; //f_settings.BringToFront(); f_settings.Activate(); }