public AppForm() { InitializeComponent(); shadow = new ShadowDemo.Dropshadow(this) { ShadowBlur = 15, ShadowSpread = -7, ShadowColor = Color.FromArgb(143, 0, 0, 0) }; shadow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseMove); shadow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseDown); shadow.MouseUp += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseUp); shadow.RefreshShadow(); shadow.UpdateLocation(); controlPanel1.changeCaption("Биатлон"); controlPanel1.wndStateChanged += new EventHandler(updateContainer); sortTypeComboBox.Font = new Font("Microsoft Sans Serif", 10); sortTypeComboBox.Anchor = AnchorStyles.Bottom; sortTypeComboBox.Location = new Point(-1, -1); sortTypeComboBox.Size = new Size(256, 24); sortTypeComboBox.Items.Add("В порядке занятых мест"); sortTypeComboBox.Items.Add("В порядке убывания скорости"); sortTypeComboBox.Items.Add("В порядке убывания меткости"); sortTypeComboBox.SelectedIndex = 0; sortTypeComboBox.Enter += new EventHandler(sortTypeComboBox_DropDownClosed); sortTypeComboBox.SelectedIndexChanged += new EventHandler(sortTypeComboBox_DropDownClosed); sortTypePan.Controls.Add(sortTypeComboBox); sortTypeComboBox_DropDownClosed(this, null); foreach (Button but in this.Controls.OfType <Button>()) { but.FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0); } }
//===================================================================================// // STARTUP: // //===================================================================================// public void BorealisServerManager_Load(object sender, EventArgs e) { if (!DesignMode) { shadow = new Dropshadow(this) { ShadowBlur = 25, ShadowSpread = -18, ShadowColor = Color.FromArgb(170, 0, 0, 0) }; shadow.RefreshShadow(); } //Destroy the bevelled border around MDI parent container. this.SetBevel(false); //Display current product version. lblVersion.Text = $"Version {Application.ProductVersion} Alpha"; //Create blank gameservers.json if (File.Exists(Environment.CurrentDirectory + @"\gameservers.json")) { GameServerManagement.ConfigRead(); } else { File.Create(Environment.CurrentDirectory + @"\gameservers.json").Dispose(); GameServerManagement.ConfigRead(); } //Store all gameservers into memory to be used by Borealis. GameServerManagement.ConfigRead(); // Instantiate all Panels Immediately var panels = new List <Form> { new TAB_DEPLOYMENT(), new TAB_MANAGEMENT(), new TAB_CONTROL(), new TAB_STEAMGUARD_TOKEN(), new TAB_SCHEDULEDTASKS(), new TAB_STEAMWORKSHOP(), new TAB_DASHBOARD(), }; foreach (Form panel in panels) { panel.MdiParent = this; panel.AutoScroll = false; panel.Dock = DockStyle.Fill; panel.Show(); } }
private void Form1_Load(object sender, EventArgs e) { if (!DesignMode) { Dropshadow shadow = new Dropshadow(this) { ShadowBlur = 0, ShadowSpread = 1, ShadowColor = Color.FromArgb(140, 140, 140) }; shadow.RefreshShadow(); } }
public InfoForm() { InitializeComponent(); shadow = new ShadowDemo.Dropshadow(this) { ShadowBlur = 15, ShadowSpread = -7, ShadowColor = Color.FromArgb(127, 0, 0, 0) }; shadow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseMove); shadow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseDown); shadow.RefreshShadow(); shadow.UpdateLocation(); controlPanel1.changeCaption("Информация"); }
public MenuForm() { InitializeComponent(); shadow = new ShadowDemo.Dropshadow(this) { ShadowBlur = 15, ShadowSpread = -7, ShadowColor = Color.FromArgb(127, 0, 0, 0) }; shadow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseMove); shadow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseDown); shadow.RefreshShadow(); shadow.UpdateLocation(); controlPanel1.changeCaption("Главное меню"); foreach (Button but in this.Controls.OfType <Button>()) { but.FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0); } }
private void FormLoadShadow() { try { Width = this.Width + 20; Height = this.Height + 20; if (!DesignMode) { shadow = new Dropshadow(this) { ShadowBlur = 16, ShadowSpread = -10, ShadowColor = Color.FromArgb(141, 206, 252), //Color.Black, ShadowV = 0, ShadowH = 0 }; shadow.RefreshShadow(); } } catch (Exception ex) { throw ex; } }
private void FormLoadShadow() { try { Width = this.Width + 20; Height = this.Height + 20; if (!DesignMode) { shadow = new Dropshadow(this) { ShadowBlur = 20, ShadowSpread = -13, ShadowColor = Color.WhiteSmoke, //Color.FromArgb(245, 159, 182), //Color.Black, ShadowV = 0, ShadowH = 0 }; shadow.RefreshShadow(); } } catch (Exception ex) { throw ex; } }
private void AppForm_SizeChanged(object sender, EventArgs e) { shadow.RefreshShadow(true); }
private void Window_Load(object sender, EventArgs e) { shadow.RefreshShadow(); }
private void InfoForm_Resize(object sender, EventArgs e) { shadow.RefreshShadow(); }