private int GetObjectValue(int Primary, CommonVar Common) { if (Primary != 0) { return(Primary); } return(Common.Value == Int32.MaxValue ? Common.Default : Common.Value); }
private void InitEnvironment() { CommonPosX = 10; CommonPosY = 10; CommonSpace = new CommonVar(85); CommonWidth = new CommonVar(75); CommonMin = new CommonVar(0); CommonMax = new CommonVar(100); IncX = 0; IncY = 20; }
private int GetObjectValue(int Primary, CommonVar Common) { if (Primary != 0) return Primary; return (Common.Value == Int32.MaxValue ? Common.Default : Common.Value); }