private void Window_Loaded(object sender, RoutedEventArgs e) { this.cbxReportType.Items.Clear( ); foreach (ReportType type in Enum.GetValues(typeof(ReportType))) { this.cbxReportType.Items.Add(type); } if (report == null) { State = ReportEditorStates.NewlyCreated; report = new PDFReport( ); } setState( ); loadReport( ); }
public void LoadReportFromApplication(AReport Report) { _report = Report; State = ReportEditorStates.OpenedFromApplication; }