public void ApplySettings(WindowSettings W) { _rect.yMin = W.GetInt("Top", 40); _rect.xMin = W.GetInt("Left", 40); _rect.yMax = _rect.yMin + wScale(400); _rect.xMax = _rect.xMin + wScale(500); _rect3.yMin = W.GetInt("CompactTop", 40); _rect3.xMin = W.GetInt("CompactLeft", 40); _rect3.yMax = _rect3.yMin + wScale(200); _rect3.xMax = _rect3.xMin + wScale(400); _compactMode = W.GetBool("Compacted", false); string Temp = W.Get("FilterMode", DisplayMode.Unlocked.ToString( )); _filter.DisplayMode = (DisplayMode)Enum.Parse(typeof(DisplayMode), Temp, true); _filter.Text = W.Get("FilterText", ""); _filter.UpdateFilter( ); bool TempVisible = false; TempVisible = W.GetBool("Visible", false); if (TempVisible) { OnOpenEvent(this, EventArgs.Empty); } else { OnCloseEvent(this, EventArgs.Empty); } }
public void ApplySettings( WindowSettings W ) { windowPos.yMin = W.GetInt( "Top", 40 ); windowPos.xMin = W.GetInt( "Left", 40 ); windowPos.yMax = windowPos.yMin + wScale( 30 ); windowPos.xMax = windowPos.xMin + wScale( 250 ); bool TempVisible = false; TempVisible = W.GetBool( "Visible", false ); if( TempVisible ) OnOpenEvent( this, EventArgs.Empty ); else OnCloseEvent( this, EventArgs.Empty ); }