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

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

public window_content ( ) : System
Результат System
        public window_content()
        {
            InitializeComponent();

            this.comment_icon.Source = configurations.img_comment_icon;
            this.leave_comment_area_default.Visibility = System.Windows.Visibility.Visible;
            this.leave_comment_area_reply.Visibility = System.Windows.Visibility.Collapsed;
            this.leave_comment_area_auth.Visibility = System.Windows.Visibility.Collapsed;
            this.submit_comment_default.PreviewTouchDown += new EventHandler<TouchEventArgs>(submit_comment_default_clicked);
            this.submit_comment_reply.PreviewTouchDown += new EventHandler<TouchEventArgs>(submit_comment_reply_clicked);
            this.cancel_comment_reply.PreviewTouchDown += new EventHandler<TouchEventArgs>(cancel_comment_reply_clicked);
            this.submit_comment_auth.PreviewTouchDown += new EventHandler<TouchEventArgs>(submit_comment_auth_clicked);
            this.cancel_comment_auth.PreviewTouchDown += new EventHandler<TouchEventArgs>(cancel_comment_auth_clicked);

            this.selected_user.AllowDrop = true;
            SurfaceDragDrop.AddPreviewDropHandler(this.selected_user, new EventHandler<SurfaceDragDropEventArgs>(item_dropped_on_leave_comment_area_auth));
            if (configurations.response_to_mouse_clicks)
                this.expander.Click += new RoutedEventHandler(expander_Click);
            this.expander.PreviewTouchDown += new EventHandler<TouchEventArgs>(expander_Click);

            this.comment_textbox_default.GotFocus += new RoutedEventHandler(comment_textbox_GotKeyboardFocus);
            this.comment_textbox_reply.GotFocus += new RoutedEventHandler(comment_textbox_GotKeyboardFocus);

            if (!configurations.multi_keyboard)
            {
                comment_textbox_default.LostFocus += new RoutedEventHandler(textbox_LostFocus);
                comment_textbox_reply.LostFocus += new RoutedEventHandler(textbox_LostFocus);
                pin.LostFocus += new RoutedEventHandler(pin_LostFocus);
            }

            this.Unloaded += new RoutedEventHandler(window_content_Unloaded);
            this.Loaded += new RoutedEventHandler(window_content_Loaded);

            //this.add_comment_img.Source = configurations.img_drop_avatar_pic;

            this.comments_listbox.initialize(false, "comment", new ItemSelected(this.item_selected));
            this.comments_listbox.Background = Brushes.White;

            this.comments_listbox.selectable = false;
            this.comments_listbox.comment_list = true;

            keyboard_frame = new ContentControl();
            pin.center = center_keyboard;

            this.comment_textbox_default.SizeChanged += new SizeChangedEventHandler(comment_textbox_SizeChanged);
            this.comment_textbox_reply.SizeChanged += new SizeChangedEventHandler(comment_textbox_SizeChanged);
            this.comments_listbox.SizeChanged += new SizeChangedEventHandler(comment_textbox_SizeChanged);
        }