private void CompareAndUpdateLetter(GridItem changed, object oldvalue, Letter let) { long S = let.LetterStart, E = let.LetterEnd; if (S.Equals(oldvalue) & changed.Label.Equals("Start time")) { let.LetterStart = (long)changed.Value; } if (E.Equals(oldvalue) & changed.Label.Equals("End time")) { let.LetterEnd = (long)changed.Value; } if (let.GetAngleX(S).Equals(oldvalue) & changed.Label.Equals("Angle X at start")) { let.SetAngleX(S, (int)changed.Value); } if (let.GetAngleX(E).Equals(oldvalue) & changed.Label.Equals("Angle X at end")) { let.SetAngleX(E, (int)changed.Value); } if (let.GetAngleY(S).Equals(oldvalue) & changed.Label.Equals("Angle Y at start")) { let.SetAngleY(S, (int)changed.Value); } if (let.GetAngleY(E).Equals(oldvalue) & changed.Label.Equals("Angle Y at end")) { let.SetAngleY(E, (int)changed.Value); } if (let.GetAngleZ(S).Equals(oldvalue) & changed.Label.Equals("Angle Z at start")) { let.SetAngleZ(S, (int)changed.Value); } if (let.GetAngleZ(E).Equals(oldvalue) & changed.Label.Equals("Angle Z at end")) { let.SetAngleZ(E, (int)changed.Value); } if (let.GetFrontColor(S).Equals(oldvalue) & changed.Label.Equals("Front color at start")) { let.SetFrontColor(S, (Color)changed.Value); } if (let.GetFrontColor(E).Equals(oldvalue) & changed.Label.Equals("Front color at end")) { let.SetFrontColor(E, (Color)changed.Value); } if (let.GetBackColor(S).Equals(oldvalue) & changed.Label.Equals("Back color at start")) { let.SetBackColor(S, (Color)changed.Value); } if (let.GetBackColor(E).Equals(oldvalue) & changed.Label.Equals("Back color at end")) { let.SetBackColor(E, (Color)changed.Value); } if (let.GetBorderColor(S).Equals(oldvalue) & changed.Label.Equals("Border color at start")) { let.SetBorderColor(S, (Color)changed.Value); } if (let.GetBorderColor(E).Equals(oldvalue) & changed.Label.Equals("Border color at end")) { let.SetBorderColor(E, (Color)changed.Value); } if (let.GetShadowColor(S).Equals(oldvalue) & changed.Label.Equals("Shadow color at start")) { let.SetShadowColor(S, (Color)changed.Value); } if (let.GetShadowColor(E).Equals(oldvalue) & changed.Label.Equals("Shadow color at end")) { let.SetShadowColor(E, (Color)changed.Value); } if (let.GetRelativePositionX(S).Equals(oldvalue) & changed.Label.Equals("Position X at start")) { let.SetRelativePositionX(S, (float)changed.Value); } if (let.GetRelativePositionX(E).Equals(oldvalue) & changed.Label.Equals("Position X at end")) { let.SetRelativePositionX(E, (float)changed.Value); } if (let.GetRelativePositionY(S).Equals(oldvalue) & changed.Label.Equals("Position Y at start")) { let.SetRelativePositionY(S, (float)changed.Value); } if (let.GetRelativePositionY(E).Equals(oldvalue) & changed.Label.Equals("Position Y at end")) { let.SetRelativePositionY(E, (float)changed.Value); } if (let.GetQuakeX(S).Equals(oldvalue) & changed.Label.Equals("Quake X at start")) { let.SetQuakeX(S, (int)changed.Value); } if (let.GetQuakeX(E).Equals(oldvalue) & changed.Label.Equals("Quake X at end")) { let.SetQuakeX(E, (int)changed.Value); } if (let.GetQuakeY(S).Equals(oldvalue) & changed.Label.Equals("Quake Y at start")) { let.SetQuakeY(S, (int)changed.Value); } if (let.GetQuakeY(E).Equals(oldvalue) & changed.Label.Equals("Quake Y at end")) { let.SetQuakeY(E, (int)changed.Value); } if (let.GetScaleX(S).Equals(oldvalue) & changed.Label.Equals("Scale X at start")) { let.SetScaleX(S, (float)changed.Value); } if (let.GetScaleX(E).Equals(oldvalue) & changed.Label.Equals("Scale X at end")) { let.SetScaleX(E, (float)changed.Value); } if (let.GetScaleY(S).Equals(oldvalue) & changed.Label.Equals("Scale Y at start")) { let.SetScaleY(S, (float)changed.Value); } if (let.GetScaleY(E).Equals(oldvalue) & changed.Label.Equals("Scale Y at end")) { let.SetScaleY(E, (float)changed.Value); } if (let.GetBorderWeight(S).Equals(oldvalue) & changed.Label.Equals("Border weight at start")) { let.SetBorderWeight(S, (int)changed.Value); } if (let.GetBorderWeight(E).Equals(oldvalue) & changed.Label.Equals("Border weight at end")) { let.SetBorderWeight(E, (int)changed.Value); } if (let.GetShadowDepth(S).Equals(oldvalue) & changed.Label.Equals("Shadow depth at start")) { let.SetShadowDepth(S, (int)changed.Value); } if (let.GetShadowDepth(E).Equals(oldvalue) & changed.Label.Equals("Shadow depth at end")) { let.SetShadowDepth(E, (int)changed.Value); } //if (changed.Label.Equals("Path")) //{ // let.SetPathTreeNode(PathTreeNode.GetFromString(avstn, changed.Value.ToString())); //} }