/// <summary> /// Sets the dialog parameters to the context. /// </summary> private void SetDialogParameters(bool mergeAll) { string condition = mergeAll ? SqlHelper.AddWhereCondition(gridElem.WhereCondition, gridElem.WhereClause) : SqlHelper.GetWhereCondition("ContactID", gridElem.SelectedItems); Hashtable parameters = new Hashtable(); parameters["MergedContacts"] = new ContactListInfo().Generalized.GetData(null, condition, null, -1, null, false); parameters["ParentContact"] = Contact; parameters["issitemanager"] = ContactHelper.IsSiteManager; WindowHelper.Add(Identifier.ToString(), parameters); }
/// <summary> /// Sets the dialog parameters to the context. /// </summary> private void SetDialogParameters(bool mergeAll) { Hashtable parameters = new Hashtable(); DataSet ds; if (mergeAll) { ds = new ContactListInfo().Generalized.GetData(null, gridElem.WhereCondition, null, -1, null, false); } else { string[] array = new string[gridElem.SelectedItems.Count]; gridElem.SelectedItems.CopyTo(array); ds = new ContactListInfo().Generalized.GetData(null, SqlHelperClass.GetWhereCondition("ContactID", array), null, -1, null, false); } parameters["MergedContacts"] = ds; parameters["ParentContact"] = this.Contact; parameters["issitemanager"] = ContactHelper.IsSiteManager; WindowHelper.Add(Identificator, parameters); }
/// <summary> /// Sets the dialog parameters to the context. /// </summary> private void SetDialogParameters(bool mergeAll) { string condition = mergeAll ? SqlHelperClass.AddWhereCondition(gridElem.WhereCondition, gridElem.WhereClause) : SqlHelperClass.GetWhereCondition("ContactID", gridElem.SelectedItems); Hashtable parameters = new Hashtable(); parameters["MergedContacts"] = new ContactListInfo().Generalized.GetData(null, condition, null, -1, null, false); parameters["ParentContact"] = Contact; parameters["issitemanager"] = ContactHelper.IsSiteManager; WindowHelper.Add(Identifier, parameters); }
/// <summary> /// Sets the dialog parameters to the context. /// </summary> private void SetDialogParameters(bool mergeAll) { Hashtable parameters = new Hashtable(); DataSet ds; if (mergeAll) { ds = new ContactListInfo().Generalized.GetData(null, gridElem.WhereCondition, null, -1, null, false); } else { ds = new ContactListInfo().Generalized.GetData(null, SqlHelper.GetWhereCondition("ContactID", gridElem.SelectedItems), null, -1, null, false); } parameters["MergedContacts"] = ds; parameters["ParentContact"] = Contact; parameters["issitemanager"] = ContactHelper.IsSiteManager; WindowHelper.Add(Identifier.ToString(), parameters); }