Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Template management:
- /// <summary>
- /// Akcja po wczytaniu DomainDataSource szablonów
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void ExcelTemplateDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
- {
- if (e.HasError)
- {
- System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
- e.MarkErrorAsHandled();
- }
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void CreateTemplateButton_Click(object sender, RoutedEventArgs e)
- {
- NewExcelTemplatePopUpWindow createTemplate = new NewExcelTemplatePopUpWindow(excelTemplateDomainDataSource);
- Deployment.Current.Dispatcher.BeginInvoke(() => createTemplate.Show());
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void DeleteTemplateButton_Click(object sender, RoutedEventArgs e)
- {
- RemoveExcelTemplate();
- }
- /// <summary>
- ///
- /// </summary>
- private void RemoveExcelTemplate()
- {
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void ExcelTemplateDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
- {
- // Wypełnij listę kolumn wybranego szablonu:
- this.columnNamesList.Items.Clear();
- if (this.excelTemplateDataGrid.SelectedItem != null)
- {
- ExcelTemplate currentTemplate = this.excelTemplateDataGrid.SelectedItem as ExcelTemplate;
- if (!string.IsNullOrEmpty(currentTemplate.XmlColumnNames))
- {
- List<string> columnNames = this.DeserializeFromXLMString(typeof(List<string>), currentTemplate.XmlColumnNames) as List<string>;
- foreach (string s in columnNames)
- this.columnNamesList.Items.Add(s);
- }
- }
- }
- private void excelTemplateDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
- {
- this.srfBusyIndicator.IsBusy = false;
- }
- private void ExcelTemplateDomainDataSource_LoadingData(object sender, LoadingDataEventArgs e)
- {
- this.srfBusyIndicator.IsBusy = true;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement