public void UpdateDuckableValue(Duckable objDuck) { try { DuckableDataProvider objDuckableDataProvider = new DuckableDataProvider(); objDuckableDataProvider.UpdateDuckableValue(objDuck); } catch (Exception e) { } }
public void UpdateDuckableValue(Duckable objDuck) { try { List <KeyValuePair <string, object> > ParaMeterCollection = new List <KeyValuePair <string, object> >(); ParaMeterCollection.Add(new KeyValuePair <string, object>("@Shown", objDuck.Shown)); ParaMeterCollection.Add(new KeyValuePair <string, object>("@Minimize", objDuck.Minimize)); ParaMeterCollection.Add(new KeyValuePair <string, object>("@DragTop", objDuck.DragTop)); ParaMeterCollection.Add(new KeyValuePair <string, object>("@DragLeft", objDuck.DragLeft)); SQLHandler sq = new SQLHandler(); sq.ExecuteNonQuery("[dbo].[usp_DuckableInsertPosition]", ParaMeterCollection); } catch (Exception e) { throw e; } }