nature_net.MainWindow.MainWindow C# (CSharp) Метод

MainWindow() публичный Метод

public MainWindow ( ) : System
Результат System
        public MainWindow()
        {
            try
            {
                parser = new iniparser(configurations.GetAbsoluteConfigFilePath());
                configurations.SetSettingsFromConfig(parser);
                configurations.LoadIconImages();
                window_manager.load_avatars();
                window_manager.refresh_downloaded_contributions();
                if (configurations.use_existing_thumbnails)
                    window_manager.refresh_thumbnails();

                InitializeComponent();

                this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
                this.Unloaded += new RoutedEventHandler(MainWindow_Unloaded);
                this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);

                this.workspace.ManipulationStarting += new EventHandler<ManipulationStartingEventArgs>(workspace_ManipulationStarting);
                this.workspace.ManipulationDelta += new EventHandler<ManipulationDeltaEventArgs>(workspace_ManipulationDelta);
                this.workspace.ManipulationCompleted += new EventHandler<ManipulationCompletedEventArgs>(workspace_ManipulationCompleted);
                ///this.workspace.ManipulationBoundaryFeedback += new EventHandler<ManipulationBoundaryFeedbackEventArgs>(workspace_ManipulationBoundaryFeedback);

                this.workspace.AllowDrop = true;
                SurfaceDragDrop.AddDropHandler(this.workspace, new EventHandler<SurfaceDragDropEventArgs>(item_droped_on_workspace));

                application_panel.PreviewTouchDown += new EventHandler<TouchEventArgs>(application_panel_PreviewTouchDown);
                application_panel.PreviewTouchUp += new EventHandler<TouchEventArgs>(application_panel_PreviewTouchUp);
                //application_panel.PreviewMouseDown += new MouseButtonEventHandler(application_panel_PreviewMouseDown);

                update_change_timer = new Timer(new TimerCallback(update_changes));
                update_change_timer.Change(configurations.update_period_ms, Timeout.Infinite);

                change_update_status(false);
                this.Topmost = configurations.top_most;
            }
            catch (Exception e) { MessageBox.Show("Exception in starting the application:\r\n" + e.StackTrace, "Error"); }
        }