private void SaveWebpartPropertyButton_Click(object sender, RoutedEventArgs e)
        {
            string key   = PropertiesLabel.Content.ToString();
            string value = ValueTextBox.Text;

            SPWebpart         webpart           = ((TreeViewItem)WebpartsTreeView.SelectedItem).Tag as SPWebpart;
            SharePointService sharePointService = new SharePointService();

            sharePointService.SaveWebpartProperty(this.SiteSetting, this.FileLeafRef, webpart.ID, key, value);

            DataRowView selectedRow = (DataRowView)ResultGrid.SelectedItem;

            selectedRow["Value"]    = value;
            webpart.Properties[key] = value;
        }