예제 #1
0
        /// <summary>
        /// Shows <see cref="Karafa.GUI.MainItemAnalysisForm"/> to analyze edited MainItem
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">EventArgs</param>
        private void OnBtnAnalysisClick(object sender, RoutedEventArgs e)
        {
            MainItemAnalysisForm analysisForm =
                new MainItemAnalysisForm(
                    this.detailedItem,
                    this.dbConnection
                );
            analysisForm.Owner = this;

            analysisForm.Show();
        }
        /// <summary>
        /// Shows <see cref="Karafa.GUI.MainItemAnalysisForm"/> to analyze selected imported 
        /// <see cref="Karafa.Modules.Import.MainItem"/>
        /// </summary>
        private void ShowAnalysisForm()
        {
            MainItemAnalysisForm analysisForm = new MainItemAnalysisForm(
                (MainItem)this.dg_ImportedItems.SelectedItem,
                this.dbConnection
            );
            analysisForm.Owner = this;

            analysisForm.Show();
            analysisForm.Closed += delegate
            {
                RefreshDataGrid(this.dg_ImportedItems, this.CurrentSubSectionMainItems);
            };
        }