using MaterialSkin; using MaterialSkin.Controls; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace AutoSeller { public partial class AutoSeller : MaterialForm { int m_iCurPricePanelWith; public AutoSeller() { InitializeComponent(); m_iCurPricePanelWith = splitContainer2.Panel2.Width; var materialSkinManager = MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.DARK; materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); } private void splitContainer2_SizeChanged(object sender, EventArgs e) { int iDist = Math.Min(Math.Max(splitContainer2.Width-m_iCurPricePanelWith, splitContainer2.Panel1MinSize), splitContainer2.Width-splitContainer2.Panel2MinSize); ; splitContainer2.SplitterDistance = iDist; } } }