Esempio n. 1
0
 internal ToolbarButton(ButtonStyle style)
 {
     _button = new UIButton(style);
     _button.AutoSize = false;
     _button.VerticalTextAlignment = VerticalAlignment.Bottom;
     _button.Click += ButtonClick;
     _button.MouseUp += ButtonMouseUp;
 }
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            //this.toolBar = new ToolBar();
            this.toolBar = new BottomToolBar();

            btnStatusUpdates = new UIButton(ButtonStyle.AlphaChannel);
            btnPhotoCommentsUpdates = new UIButton(ButtonStyle.AlphaChannel);
            btnRefresh = new UIButton(ButtonStyle.AlphaChannel); 
            btnPhotoCommentsUpdatesText = new UILabel();
            btnPhotoCommentsUpdatesShadowText = new UILabel();
            btnStatusUpdatesText = new UILabel();
            btnStatusUpdatesShadowText = new UILabel();
            header = new GraphicsImage();
            logo = new GraphicsImage();

            this.klvPhotoCommentsUpdatesList = new PhotoCommentsUpdatesListKineticListView();

            this.contexMenu = new ContextMenu();
            this.menuItemSendMessage = new MenuItem();
            this.menuItemViewComments = new MenuItem();
            this.menuItemSendComment = new MenuItem();

            this.SuspendLayout();

            this.header.Name = "Head";
            this.header.Location = new Point(0, 0);
            this.header.Stretch = true;
            this.header.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            this.logo.Name = "Logo";
            this.logo.Location = new Point(6, 7);
            this.logo.Stretch = false;
            this.logo.Anchor = AnchorStyles.Left | AnchorStyles.Top;

            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.Name = "PhotoCommentsUpdatesListView";
            this.Resize += new EventHandler(PhotoCommentsUpdatesListViewResize);

            //
            //btnStatusUpdates
            //
            btnStatusUpdates.TransparentButton = MasterForm.SkinManager.GetImage("NewsFriend");
            btnStatusUpdates.TransparentButtonPressed = MasterForm.SkinManager.GetImage("NewsFriendSelected");
            btnStatusUpdates.TransparentButtonSelected = MasterForm.SkinManager.GetImage("NewsFriendSelected");
            btnStatusUpdates.Size = new Size(82, 25);
            btnStatusUpdates.Location = new Point((int)((this.Width - 2 * btnStatusUpdates.Width) / 2), 5);
            btnStatusUpdates.Name = "btnStatusUpdates";
            btnStatusUpdates.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            btnStatusUpdates.Click += new EventHandler(btnStatusUpdates_Click);

            //
            //btnStatusUpdatesText
            //
            btnStatusUpdatesText.Name = "btnStatusUpdatesText";
            btnStatusUpdatesText.Location = btnStatusUpdates.Location;
            btnStatusUpdatesText.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, false);
            btnStatusUpdatesText.ForeColor = Color.White;
            btnStatusUpdatesText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            btnStatusUpdatesText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            btnStatusUpdatesText.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            btnStatusUpdatesText.Text = Resources.StatusUpdatesList_Designer_btnStatusUpdates_Text;

            //
            //btnStatusUpdatesShadowText
            //
            btnStatusUpdatesShadowText.Name = "btnStatusUpdatesShadowText";
            btnStatusUpdatesShadowText.Location = btnStatusUpdates.Location;
            btnStatusUpdatesShadowText.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, false);
            btnStatusUpdatesShadowText.ForeColor = Color.FromArgb(0, 0, 0);
            btnStatusUpdatesShadowText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            btnStatusUpdatesShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            btnStatusUpdatesShadowText.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            btnStatusUpdatesShadowText.Text = Resources.StatusUpdatesList_Designer_btnStatusUpdates_Text;

            //
            //btnPhotoCommentsUpdates
            //
            btnPhotoCommentsUpdates.TransparentButton = MasterForm.SkinManager.GetImage("NewsCommentSelected");
            btnPhotoCommentsUpdates.TransparentButtonPressed = MasterForm.SkinManager.GetImage("NewsCommentSelected");
            btnPhotoCommentsUpdates.Size = new Size(82, 25);
            btnPhotoCommentsUpdates.Location = new Point((int)((this.Width - 2 * btnStatusUpdates.Width) / 2) + btnPhotoCommentsUpdates.Width, 5);
            btnPhotoCommentsUpdates.Name = "btnPhotoCommentsUpdates";
            btnPhotoCommentsUpdates.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnPhotoCommentsUpdates.Click += new EventHandler(btnPhotoCommentsUpdates_Click);

            //
            //btnPhotoCommentsUpdatesText
            //
            btnPhotoCommentsUpdatesText.Name = "btnPhotoCommentsUpdatesText";
            btnPhotoCommentsUpdatesText.Location = btnPhotoCommentsUpdates.Location;
            btnPhotoCommentsUpdatesText.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, false);
            btnPhotoCommentsUpdatesText.ForeColor = Color.White;
            btnPhotoCommentsUpdatesText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            btnPhotoCommentsUpdatesText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            btnPhotoCommentsUpdatesText.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnPhotoCommentsUpdatesText.Text = Resources.StatusUpdatesList_Designer_btnPhotoCommentsUpdates_Text;

            //
            //btnPhotoCommentsUpdatesShadowText
            //
            btnPhotoCommentsUpdatesShadowText.Name = "btnPhotoCommentsUpdatesShadowText";
            btnPhotoCommentsUpdatesShadowText.Location = btnPhotoCommentsUpdates.Location;
            btnPhotoCommentsUpdatesShadowText.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, false);
            btnPhotoCommentsUpdatesShadowText.ForeColor = Color.FromArgb(0, 0, 0);
            btnPhotoCommentsUpdatesShadowText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            btnPhotoCommentsUpdatesShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            btnPhotoCommentsUpdatesShadowText.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnPhotoCommentsUpdatesShadowText.Text = Resources.StatusUpdatesList_Designer_btnPhotoCommentsUpdates_Text;

            //
            //btnRefresh
            //
            btnRefresh.TransparentButton = MasterForm.SkinManager.GetImage("RefreshButton");
            btnRefresh.TransparentButtonPressed = MasterForm.SkinManager.GetImage("RefreshButtonPressed");
            btnRefresh.Location = new Point(211, 5);
            btnRefresh.Size = new Size(25, 25);
            btnRefresh.Name = "btnRefresh";
            btnRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnRefresh.Click += new EventHandler(btnRefresh_Click);

            //
            // contextMenu
            //
            contexMenu.MenuItems.Add(this.menuItemViewComments);
            contexMenu.MenuItems.Add(this.menuItemSendComment);
            contexMenu.MenuItems.Add(this.menuItemSendMessage);

            //
            // menuItemSendMessage
            //
            menuItemSendMessage.Text = Resources.ContextMenu_SendMessade;
            menuItemSendMessage.Click += new EventHandler(menuItemSendMessage_Click);

            //
            // menuItemViewComments
            //
            menuItemViewComments.Text = Resources.ContextMenu_ViewComments;
            menuItemViewComments.Click += new EventHandler(menuItemViewComments_Click);

            //
            // menuItemSendComment
            //
            menuItemSendComment.Text = Resources.ContextMenu_SendComment;
            menuItemSendComment.Click += new EventHandler(menuItemSendComment_Click);

            //
            //klvPhotoCommentsUpdatesList
            //
            klvPhotoCommentsUpdatesList.Anchor = System.Windows.Forms.AnchorStyles.Left
                                           | System.Windows.Forms.AnchorStyles.Right
                                           | System.Windows.Forms.AnchorStyles.Top
                                           | System.Windows.Forms.AnchorStyles.Bottom;
            klvPhotoCommentsUpdatesList.Location = new System.Drawing.Point(0, 36);
            klvPhotoCommentsUpdatesList.BackColor = Color.White;
            klvPhotoCommentsUpdatesList.BackgroundIImage = MasterForm.SkinManager.GetImage("List-background");
            klvPhotoCommentsUpdatesList.ContentUpShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvPhotoCommentsUpdatesList.ContentDownShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvPhotoCommentsUpdatesList.ShowContentShadows = true;
            klvPhotoCommentsUpdatesList.OutsideDownShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvPhotoCommentsUpdatesList.OutsideUpShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvPhotoCommentsUpdatesList.ShowInnerShadows = true;
            klvPhotoCommentsUpdatesList.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvPhotoCommentsUpdatesList.Name = "klvPhotoCommentsUpdatesList";
            klvPhotoCommentsUpdatesList.Size = new System.Drawing.Size(240, 193);
            klvPhotoCommentsUpdatesList.ReturnLongPress += new EventHandler<ListViewLongPressEventArgs>(klvPhotoCommentsUpdatesList_ReturnLongPress);
            klvPhotoCommentsUpdatesList.MouseUp += new MouseEventHandler(klvPhotoCommentsUpdatesList_MouseUp);

            //
            // toolBar
            //
            toolBar.ToolbarButtonMessages.Click += new EventHandler(ToolbarButtonMessages_Click);
            toolBar.ToolbarButtonFriends.Click += new EventHandler(ToolbarButtonFriends_Click);
            toolBar.ToolbarButtonPhotos.Click += new EventHandler(ToolbarButtonPhotos_Click);
            toolBar.ToolbarButtonExtras.Click += new EventHandler(ToolbarButtonExtras_Click);

            toolBar.miUserData.Click += new EventHandler(MiUserDataClick);
            toolBar.miSettings.Click += new EventHandler(MiSettingsClick);
            toolBar.miAbout.Click += new EventHandler(MiAboutClick);
            toolBar.miExit.Click += new EventHandler(MiExitClick);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(toolBar);
            this.Canvas.Children.Add(btnStatusUpdates);
            this.Canvas.Children.Add(btnPhotoCommentsUpdates);
            this.Canvas.Children.Add(btnPhotoCommentsUpdatesShadowText);
            this.Canvas.Children.Add(btnPhotoCommentsUpdatesText);
            this.Canvas.Children.Add(btnStatusUpdatesShadowText);
            this.Canvas.Children.Add(btnStatusUpdatesText);
            this.Canvas.Children.Add(btnRefresh);
            this.Controls.Add(klvPhotoCommentsUpdatesList);

            this.Canvas.RecalcDPIScaling();

            this.ResumeLayout(false);

            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");

            btnStatusUpdatesShadowText.Location = new Point(
                btnStatusUpdatesShadowText.Location.X,
                btnStatusUpdatesShadowText.Location.Y - 1
                );

            btnPhotoCommentsUpdatesShadowText.Location = new Point(
                btnPhotoCommentsUpdatesShadowText.Location.X,
                btnPhotoCommentsUpdatesShadowText.Location.Y - 1
                );

            btnPhotoCommentsUpdatesText.Size = btnPhotoCommentsUpdatesShadowText.Size = btnPhotoCommentsUpdates.Size;
            btnStatusUpdatesText.Size = btnStatusUpdatesShadowText.Size = btnStatusUpdates.Size;
        }
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolBar = new BottomToolBar();

            btnSentMessage = new UIButton(ButtonStyle.AlphaChannel);
            btnSentMessageText = new UILabel();
            btnSentMessageShadowText = new UILabel();
            btnRefresh = new UIButton(ButtonStyle.AlphaChannel);
            header = new GraphicsImage();
            logo = new GraphicsImage();

            this.klvMessagesChainsList = new MessagesChainsListKineticListView();

            this.SuspendLayout();

            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.Name = "MessagesChainsListView";
            this.Resize += new EventHandler(MessagesChainsListView_Resize);
            this.ForeColor = Color.White;

            this.header.Name = "Head";
            this.header.Location = new Point(0, 0);
            this.header.Stretch = true;
            this.header.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            this.logo.Name = "Logo";
            this.logo.Location = new Point(6, 7);
            this.logo.Stretch = false;
            this.logo.Anchor = AnchorStyles.Left | AnchorStyles.Top;

            //
            //btnRefresh
            //
            btnRefresh.TransparentButton = MasterForm.SkinManager.GetImage("RefreshButton");
            btnRefresh.TransparentButtonPressed = MasterForm.SkinManager.GetImage("RefreshButtonPressed");
            btnRefresh.Location = new Point(211, 5);
            btnRefresh.Size = new Size(24, 24);
            btnRefresh.Name = "btnRefresh";
            btnRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnRefresh.Click += new EventHandler(BtnRefreshClick);

            //
            //btnSentMessage
            //
            btnSentMessage.TransparentButton = MasterForm.SkinManager.GetImage("MessagesNew");
            btnSentMessage.TransparentButtonPressed = MasterForm.SkinManager.GetImage("MessagesNewPressed");
            btnSentMessage.Location = new Point(60, 5);
            btnSentMessage.Size = new Size(121, 25);
            btnSentMessage.Name = "btnSentMessage";
            btnSentMessage.Click += new EventHandler(BtnSentMessageClick);

            //
            // btnSentMessageText
            //
            btnSentMessageText.Name = "btnSentMessageText";
            btnSentMessageText.Location = btnSentMessage.Location;
            btnSentMessageText.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, false);
            btnSentMessageText.ForeColor = Color.White;
            btnSentMessageText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            btnSentMessageText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            btnSentMessageText.Text = Resources.NewMessage;

            //
            // btnSentMessageShadowText
            //
            btnSentMessageShadowText.Name = "btnSentMessageShadowText";
            btnSentMessageShadowText.Location = btnSentMessage.Location;
            btnSentMessageShadowText.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, false);
            btnSentMessageShadowText.ForeColor = Color.FromArgb(0, 0, 0);
            btnSentMessageShadowText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            btnSentMessageShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            btnSentMessageShadowText.Text = Resources.NewMessage;

            //
            //klvStatusUpdatesList
            //
            klvMessagesChainsList.Anchor =  System.Windows.Forms.AnchorStyles.Left
                                            | System.Windows.Forms.AnchorStyles.Right
                                            | System.Windows.Forms.AnchorStyles.Top
                                            | System.Windows.Forms.AnchorStyles.Bottom;
            klvMessagesChainsList.Location = new System.Drawing.Point(0, 36);
            klvMessagesChainsList.BackColor = Color.White;
            klvMessagesChainsList.BackgroundIImage = MasterForm.SkinManager.GetImage("List-background");
            klvMessagesChainsList.ContentUpShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvMessagesChainsList.ContentDownShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvMessagesChainsList.ShowContentShadows = true;
            klvMessagesChainsList.OutsideDownShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvMessagesChainsList.OutsideUpShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvMessagesChainsList.ShowInnerShadows = true;
            klvMessagesChainsList.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvMessagesChainsList.Name = "klvMessagesChainsList";
            klvMessagesChainsList.Size = new System.Drawing.Size(240, 193);

            //
            // toolBar
            //
            toolBar.ToolbarButtonNews.Click += new EventHandler(ButtonNewsClick);
            toolBar.ToolbarButtonFriends.Click += new EventHandler(ButtonFriendsClick);
            toolBar.ToolbarButtonPhotos.Click += new EventHandler(ButtonPhotosClick);
            toolBar.ToolbarButtonExtras.Click += new EventHandler(ButtonExtrasClick);

            toolBar.miUserData.Click += new EventHandler(MiUserDataClick);
            toolBar.miSettings.Click += new EventHandler(MiSettingsClick);
            toolBar.miAbout.Click += new EventHandler(MiAboutClick);
            toolBar.miExit.Click += new EventHandler(MiExitClick);
                                 
            this.Canvas.Children.Add(toolBar);
            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(btnSentMessage);
            this.Canvas.Children.Add(btnSentMessageShadowText);
            this.Canvas.Children.Add(btnSentMessageText);
            this.Canvas.Children.Add(btnRefresh);
            this.Controls.Add(klvMessagesChainsList);

            this.Canvas.RecalcDPIScaling();

            this.ResumeLayout(false);

            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");

            btnSentMessageShadowText.Location = new Point(
                btnSentMessageShadowText.Location.X,
                btnSentMessageShadowText.Location.Y - 1
                );

            btnSentMessageText.Size = btnSentMessageShadowText.Size = btnSentMessage.Size;
        } 
Esempio n. 4
0
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolBar = new BottomToolBar();

            //btnStatusUpdates = new UIButton(ButtonStyle.AlphaChannel);
            //btnPhotoCommentsUpdates = new UIButton(ButtonStyle.AlphaChannel);
            btnRefresh = new UIButton(ButtonStyle.AlphaChannel);

            //btnPhotoCommentsUpdatesText = new UILabel();
            //btnPhotoCommentsUpdatesShadowText = new UILabel();
            //btnStatusUpdatesText = new UILabel();
            //btnStatusUpdatesShadowText = new UILabel();

            header = new GraphicsImage();
            logo = new GraphicsImage();
            buttonBack = new GraphicsImage();

            this.headerText = new UILabel();
            this.headerShadowText = new UILabel();

            this.klvStatusUpdatesList = new StatusHistoryKineticList();
            //this.klvImagesList = new ImagesKineticListView();

            //this.contexMenu = new ContextMenu();
            //this.menuItemSendMessage = new MenuItem();

            this.wbwiChangeStatus = new WideButtonWithIcon(WideButtonWithIconType.Write);
            this.wbwiSnapPhoto = new WideButtonWithIcon(WideButtonWithIconType.Photo);
            this.wbwiLoadImage = new WideButtonWithIcon(WideButtonWithIconType.Open);

            this.SuspendLayout();

            this.header.Name = "header";
            this.header.Location = new Point(0, 0);
            this.header.Stretch = true;
            this.header.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            this.logo.Name = "logo";
            this.logo.Location = new Point(6, 7);
            this.logo.Stretch = false;
            this.logo.Anchor = AnchorStyles.Left | AnchorStyles.Top;

            this.buttonBack.Name = "buttonBack";
            this.buttonBack.Location = new Point(0, 124);
            //this.buttonBack.Size = new Size(240, 105);
            this.buttonBack.Stretch = true;
            this.buttonBack.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;

            //
            // headerText
            //
            this.headerText.Name = "headerText";
            this.headerText.Location = new Point(0, 0);
            this.headerText.Size = new Size(240, 36);
            this.headerText.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold);
            this.headerText.ForeColor = Color.White;
            this.headerText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            this.headerText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            this.headerText.Text = Resources.ShareView_Header;
            this.headerText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            // headerShadowText
            //
            this.headerShadowText.Name = "headerShadowText";
            this.headerShadowText.Location = new Point(0, 0);
            this.headerShadowText.Size = new Size(240, 36);
            this.headerShadowText.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold);
            this.headerShadowText.ForeColor = Color.Black;
            this.headerShadowText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            this.headerShadowText.Text = Resources.ShareView_Header;
            this.headerShadowText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.Name = "StatusUpdatesListView";
            this.ForeColor = Color.White;
            //this.Resize += new EventHandler(StatusUpdatesListViewResize);

            toolBar.ToolbarButtonNews.Click += new EventHandler(ToolbarButtonNewsClick);
            toolBar.ToolbarButtonMessages.Click += new EventHandler(ToolbarButtonMessagesClick);
            toolBar.ToolbarButtonFriends.Click += new EventHandler(ToolbarButtonFriendsClick);
            toolBar.ToolbarButtonExtras.Click += new EventHandler(ToolbarButtonExtrasClick);

            // 
            // upcChangeStatus
            //
            this.wbwiChangeStatus.Location = new System.Drawing.Point(5, 124 + 8);
            this.wbwiChangeStatus.Size = new System.Drawing.Size(231, 25);
            this.wbwiChangeStatus.Text = Resources.ShareView_Button_Write;
            this.wbwiChangeStatus.Font = FontCache.CreateFont("Arial", 12, FontStyle.Bold, true);
            this.wbwiChangeStatus.PressedFont = FontCache.CreateFont("Arial", 12, FontStyle.Bold, true);
            this.wbwiChangeStatus.FontColor = Color.FromArgb(102, 102, 102);
            this.wbwiChangeStatus.PressedFontColor = Color.FromArgb(102, 102, 102);
            this.wbwiChangeStatus.FontColorShadow = Color.FromArgb(223, 223, 223);
            //this.wbwiChangeStatus.FontColorShadow = Color.White;
            this.wbwiChangeStatus.DropShadow = false;
            this.wbwiChangeStatus.Name = "upcChangeStatus";
            this.wbwiChangeStatus.Anchor = AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left;
            this.wbwiChangeStatus.Click += new EventHandler(wbwiChangeStatus_Click);

            // 
            // upcChangeStatus
            //
            this.wbwiSnapPhoto.Location = new System.Drawing.Point(5, 124 + 8 + 24 + 8);
            this.wbwiSnapPhoto.Size = new System.Drawing.Size(231, 25);
            this.wbwiSnapPhoto.Text = Resources.ShareView_Button_Photo;
            this.wbwiSnapPhoto.Font = FontCache.CreateFont("Arial", 12, FontStyle.Bold, true);
            this.wbwiSnapPhoto.PressedFont = FontCache.CreateFont("Arial", 12, FontStyle.Bold, true);
            this.wbwiSnapPhoto.FontColor = Color.FromArgb(102, 102, 102);
            this.wbwiSnapPhoto.PressedFontColor = Color.FromArgb(102, 102, 102);
            this.wbwiSnapPhoto.FontColorShadow = Color.FromArgb(223, 223, 223);
            //this.wbwiSnapPhoto.FontColorShadow = Color.White;
            this.wbwiSnapPhoto.DropShadow = false;
            this.wbwiSnapPhoto.Name = "upcSnapPhoto";
            this.wbwiSnapPhoto.Anchor = AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left;
            this.wbwiSnapPhoto.Click += new EventHandler(wbwiSnapPhoto_Click);

            // 
            // upcChangeStatus
            //
            this.wbwiLoadImage.Location = new System.Drawing.Point(5, 124 + 8 + 24 + 8 + 24 + 8);
            this.wbwiLoadImage.Size = new System.Drawing.Size(231, 25);
            this.wbwiLoadImage.Text = Resources.ShareView_Button_Open;
            this.wbwiLoadImage.Font = FontCache.CreateFont("Arial", 12, FontStyle.Bold, true);
            this.wbwiLoadImage.PressedFont = FontCache.CreateFont("Arial", 12, FontStyle.Bold, true);
            this.wbwiLoadImage.FontColor = Color.FromArgb(102, 102, 102);
            this.wbwiLoadImage.PressedFontColor = Color.FromArgb(102, 102, 102);
            this.wbwiLoadImage.FontColorShadow = Color.FromArgb(223, 223, 223);
            //this.wbwiLoadImage.FontColorShadow = Color.White;
            this.wbwiLoadImage.DropShadow = false;
            this.wbwiLoadImage.Name = "upcLoadImage";
            this.wbwiLoadImage.Anchor = AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left;
            this.wbwiLoadImage.Click += new EventHandler(wbwiLoadImage_Click);

            //this.upcChangeStatus.Click += new EventHandler(upcUploadPhotoMobile_Click);

            ////
            ////btnStatusUpdates
            ////
            //btnStatusUpdates.TransparentButton = MasterForm.SkinManager.GetImage("NewsFriendSelected");
            //btnStatusUpdates.TransparentButtonPressed = MasterForm.SkinManager.GetImage("NewsFriendSelected");
            //btnStatusUpdates.Size = new Size(82, 25);
            //btnStatusUpdates.Location = new Point((int)((this.Width - 2 * btnStatusUpdates.Width) / 2), (int)((this.header.Height - btnStatusUpdates.Height) / 2));
            //btnStatusUpdates.Name = "btnStatusUpdates";
            //btnStatusUpdates.Click += new EventHandler(BtnStatusUpdatesClick);

            ////
            ////btnStatusUpdatesText
            ////
            //btnStatusUpdatesText.Name = "btnStatusUpdatesText";
            //btnStatusUpdatesText.Location = btnStatusUpdates.Location;
            //btnStatusUpdatesText.Font = FontCache.CreateFont("Tahoma", 10, FontStyle.Bold, false);
            //btnStatusUpdatesText.ForeColor = Color.White;
            //btnStatusUpdatesText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            //btnStatusUpdatesText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            //btnStatusUpdatesText.Text = Resources.StatusUpdatesList_Designer_btnStatusUpdates_Text;

            ////
            ////btnStatusUpdatesShadowText
            ////
            //btnStatusUpdatesShadowText.Name = "btnStatusUpdatesShadowText";
            //btnStatusUpdatesShadowText.Location = btnStatusUpdates.Location;
            //btnStatusUpdatesShadowText.Font = FontCache.CreateFont("Tahoma", 10, FontStyle.Bold, false);
            //btnStatusUpdatesShadowText.ForeColor = Color.FromArgb(120, 120, 120);
            //btnStatusUpdatesShadowText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            //btnStatusUpdatesShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            //btnStatusUpdatesShadowText.Text = Resources.StatusUpdatesList_Designer_btnStatusUpdates_Text;

            ////
            ////btnPhotoCommentsUpdates
            ////
            //btnPhotoCommentsUpdates.TransparentButton = MasterForm.SkinManager.GetImage("NewsComment");
            //btnPhotoCommentsUpdates.TransparentButtonPressed = MasterForm.SkinManager.GetImage("NewsComment");
            //btnPhotoCommentsUpdates.Size = new Size(82, 25);
            //btnPhotoCommentsUpdates.Location = new Point((int)((this.Width - 2 * btnStatusUpdates.Width) / 2) + btnPhotoCommentsUpdates.Width, (int)((this.header.Height - btnPhotoCommentsUpdates.Height) / 2));
            //btnPhotoCommentsUpdates.Name = "btnPhotoCommentsUpdates";
            //btnPhotoCommentsUpdates.Click += new EventHandler(BtnPhotoCommentsUpdatesClick);

            ////
            ////btnPhotoCommentsUpdatesText
            ////
            //btnPhotoCommentsUpdatesText.Name = "btnPhotoCommentsUpdatesText";
            //btnPhotoCommentsUpdatesText.Location = btnPhotoCommentsUpdates.Location;
            //btnPhotoCommentsUpdatesText.Font = FontCache.CreateFont("Tahoma", 10, FontStyle.Bold, false);
            //btnPhotoCommentsUpdatesText.ForeColor = Color.White;
            //btnPhotoCommentsUpdatesText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            //btnPhotoCommentsUpdatesText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            //btnPhotoCommentsUpdatesText.Text = Resources.StatusUpdatesList_Designer_btnPhotoCommentsUpdates_Text;

            ////
            ////btnPhotoCommentsUpdatesShadowText
            ////
            //btnPhotoCommentsUpdatesShadowText.Name = "btnPhotoCommentsUpdatesShadowText";
            //btnPhotoCommentsUpdatesShadowText.Location = btnPhotoCommentsUpdates.Location;
            //btnPhotoCommentsUpdatesShadowText.Font = FontCache.CreateFont("Tahoma", 10, FontStyle.Bold, false);
            //btnPhotoCommentsUpdatesShadowText.ForeColor = Color.FromArgb(120, 120, 120);
            //btnPhotoCommentsUpdatesShadowText.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            //btnPhotoCommentsUpdatesShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            //btnPhotoCommentsUpdatesShadowText.Text = Resources.StatusUpdatesList_Designer_btnPhotoCommentsUpdates_Text;

            //
            //btnRefresh
            //
            btnRefresh.Location = new Point(211, 5);
            btnRefresh.Name = "btnRefresh";
            btnRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnRefresh.Click += new EventHandler(btnRefresh_Click);
            //btnRefresh.Click += new EventHandler(BtnRefreshClick);

            ////
            //// contextMenu
            ////
            //contexMenu.MenuItems.Add(this.menuItemSendMessage);

            ////
            //// menuItemSendMessage
            ////
            //menuItemSendMessage.Text = Resources.ContextMenu_SendMessade;
            //menuItemSendMessage.Click += new EventHandler(menuItemSendMessage_Click);

            //
            // klvStatusUpdatesList
            //
            klvStatusUpdatesList.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom;
            klvStatusUpdatesList.Location = new System.Drawing.Point(0, 36);
            klvStatusUpdatesList.BackColor = Color.White;
            klvStatusUpdatesList.BackgroundIImage = MasterForm.SkinManager.GetImage("List-background");
            klvStatusUpdatesList.ContentUpShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvStatusUpdatesList.ContentDownShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvStatusUpdatesList.ShowContentShadows = true;
            klvStatusUpdatesList.OutsideDownShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvStatusUpdatesList.OutsideUpShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvStatusUpdatesList.ShowInnerShadows = true;
            klvStatusUpdatesList.ShowInnerBottomShadowToplevel = true;
            klvStatusUpdatesList.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvStatusUpdatesList.Name = "klvStatusUpdatesList";
            klvStatusUpdatesList.Size = new System.Drawing.Size(240, 88);

            toolBar.miUserData.Click += new EventHandler(MiUserDataClick);
            toolBar.miSettings.Click += new EventHandler(MiSettingsClick);
            toolBar.miAbout.Click += new EventHandler(MiAboutClick);
            toolBar.miExit.Click += new EventHandler(MiExitClick);

            //klvStatusUpdatesList.ReturnLongPress += new EventHandler<ListViewLongPressEventArgs>(klvStatusUpdatesList_ReturnLongPress);

            ////
            ////klvImagesList
            ////
            //klvImagesList.Anchor = System.Windows.Forms.AnchorStyles.Left
            //                               | System.Windows.Forms.AnchorStyles.Right
            //                               | System.Windows.Forms.AnchorStyles.Bottom;
            //klvImagesList.Location = new System.Drawing.Point(0, 163);
            //klvImagesList.BackgroundIImage = MasterForm.SkinManager.GetImage("FilmStrip");
            //klvImagesList.Name = "klvImagesList";
            //klvImagesList.Size = new System.Drawing.Size(240, 65);
            //klvImagesList.Select += new ItemSelectedEvent(klvImagesList_Select);

            ////
            //// toolBar
            ////
            //toolBar.ToolbarButtonMessages.Click += new EventHandler(ButtonMessagesClick);
            //toolBar.ToolbarButtonFriends.Click += new EventHandler(ButtonFriendsClick);
            //toolBar.ToolbarButtonPhotos.Click += new EventHandler(ButtonPhotosClick);
            //toolBar.ToolbarButtonExtras.Click += new EventHandler(ButtonExtrasClick);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);

            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);

            this.Canvas.Children.Add(toolBar);

            this.Canvas.Children.Add(buttonBack);

            this.Canvas.Children.Add(wbwiChangeStatus);
            this.Canvas.Children.Add(wbwiSnapPhoto);
            this.Canvas.Children.Add(wbwiLoadImage);

            //this.Canvas.Children.Add(btnStatusUpdates);
            //this.Canvas.Children.Add(btnPhotoCommentsUpdates);
            this.Canvas.Children.Add(btnRefresh);
            //this.Canvas.Children.Add(btnPhotoCommentsUpdatesShadowText);
            //this.Canvas.Children.Add(btnPhotoCommentsUpdatesText);
            //this.Canvas.Children.Add(btnStatusUpdatesShadowText);
            //this.Canvas.Children.Add(btnStatusUpdatesText);

            this.Controls.Add(klvStatusUpdatesList);

            //this.Controls.Add(klvImagesList);

            this.Canvas.RecalcDPIScaling();
            this.ResumeLayout(false);

            this.headerShadowText.Location = new Point(this.headerShadowText.Location.X, this.headerShadowText.Location.Y - UISettings.CalcPix(1));

            //this.FirstRenderComplete += new EventHandler(MainView_FirstRenderComplete);
            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");
            this.buttonBack.AlphaChannelImage = MasterForm.SkinManager.GetImage("ButtonBackground");

            this.btnRefresh.TransparentButton = MasterForm.SkinManager.GetImage("RefreshButton");
            this.btnRefresh.TransparentButtonPressed = MasterForm.SkinManager.GetImage("RefreshButtonPressed");

            //btnStatusUpdatesShadowText.Location = new Point(
            //    btnStatusUpdatesShadowText.Location.X - 1,
            //    btnStatusUpdatesShadowText.Location.Y - 1
            //    );

            //btnPhotoCommentsUpdatesShadowText.Location = new Point(
            //    btnPhotoCommentsUpdatesShadowText.Location.X - 1,
            //    btnPhotoCommentsUpdatesShadowText.Location.Y - 1
            //    );

            //btnPhotoCommentsUpdatesText.Size = btnPhotoCommentsUpdatesShadowText.Size = btnPhotoCommentsUpdates.Size;
            //btnStatusUpdatesText.Size = btnStatusUpdatesShadowText.Size = btnStatusUpdates.Size;  


        }
Esempio n. 5
0
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolBar = new BottomToolBar();

            btnRefresh = new UIButton(ButtonStyle.AlphaChannel);
            btnFriendsOnline = new UIButton(ButtonStyle.AlphaChannel);
            btnFriendsNew = new UIButton(ButtonStyle.AlphaChannel);
            header = new GraphicsImage();
            logo = new GraphicsImage();
            filter = new FilterControl(163, 25);

            this.klvFriendsList = new FriendsListKineticListView();

            this.contexMenu = new ContextMenu();
            this.menuItemSendMessage = new MenuItem();
            this.menuItemSaveNumber = new MenuItem();
            this.menuItemCallNumber = new MenuItem();
            this.menuItemSendSms = new MenuItem();
            cancelMenuItem = new MenuItem();

            this.SuspendLayout();

            //
            //cancelMenuItem
            //
            cancelMenuItem.Text = Resources.AboutView_Button_Back;
            cancelMenuItem.Click +=new EventHandler(CancelMenuItemClick);

            //
            // filterMenu
            //
            filterMenu = new MainMenu();
            filterMenu.MenuItems.Add(cancelMenuItem);

            //
            // header
            //)
            this.header.Name = "Head";
            this.header.Location = new Point(0, 0);
            this.header.Stretch = true;
            this.header.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            // logo
            //
            this.logo.Name = "Logo";
            this.logo.Location = new Point(6, 7);
            this.logo.Stretch = false;
            this.logo.Anchor = AnchorStyles.Left | AnchorStyles.Top;

            //
            // this
            //
            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.Resize += new EventHandler(FriendsListView_Resize);
            this.Name = "FriendsListView";

            //
            // contextMenu
            //
            contexMenu.MenuItems.Add(this.menuItemSendMessage);
            contexMenu.MenuItems.Add(this.menuItemSaveNumber);
            contexMenu.MenuItems.Add(this.menuItemCallNumber);
            //contexMenu.MenuItems.Add(this.menuItemSendSms);
            //
            // menuItemSendMessage
            //
            menuItemSendMessage.Text = Resources.ContextMenu_SendMessade;
            menuItemSendMessage.Click += new EventHandler(menuItemSendMessage_Click);
            //
            // menuItemSaveNumber
            //
            menuItemSaveNumber.Text = Resources.ContextMenu_SaveNumber;
            menuItemSaveNumber.Click += new EventHandler(menuItemSaveNumber_Click);
            //
            // menuItemCallNumber
            //
            menuItemCallNumber.Text = Resources.ContextMenu_CallNumber;
            menuItemCallNumber.Click += new EventHandler(menuItemCallNumber_Click);
            //
            // menuItemSendSms
            //
            menuItemSendSms.Text = Resources.ContextMenu_SendSms;
            menuItemSendSms.Click += new EventHandler(menuItemSendSms_Click);

            //
            //btnRefresh
            //
            btnRefresh.TransparentButton = MasterForm.SkinManager.GetImage("RefreshButton");
            btnRefresh.TransparentButtonPressed = MasterForm.SkinManager.GetImage("RefreshButtonPressed");
            btnRefresh.Location = new Point(211, 5);
            btnRefresh.Size = new Size(25, 25);
            btnRefresh.Name = "btnRefresh";
            btnRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnRefresh.Click += new EventHandler(BtnRefreshClick);

            /*
            //
            //btnFriendsOnline
            //
            btnFriendsOnline.TransparentButton = MasterForm.SkinManager.GetImage("ButtonOther");
            btnFriendsOnline.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            btnFriendsOnline.Location = new Point(80, 0);
            btnFriendsOnline.Size = new Size(80, 25);
            btnFriendsOnline.Text = Resources.FriendsList_Designer_btnFriendsOnline_Text;
            btnFriendsOnline.Name = "btnFriendsOnline";
            btnFriendsOnline.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            btnFriendsOnline.Click += new EventHandler(BtnFriendsOnlineClick);
          
            //
            //btnFriendsNew
            //
            btnFriendsNew.TransparentButton = MasterForm.SkinManager.GetImage("ButtonOther");
            btnFriendsNew.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            btnFriendsNew.Location = new Point(160, 0);
            btnFriendsNew.Size = new Size(80, 25);
            btnFriendsNew.Text = Resources.FriendsList_Designer_btnFriendsNew_Text;
            btnFriendsNew.Name = "btnFriendsNew";
            btnFriendsNew.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            btnFriendsNew.Click += new EventHandler(BtnFriendsNewClick);
            */

            //
            //klvFriendsList
            //
            klvFriendsList.Anchor = System.Windows.Forms.AnchorStyles.Left
                                    | System.Windows.Forms.AnchorStyles.Right
                                    | System.Windows.Forms.AnchorStyles.Top
                                    | System.Windows.Forms.AnchorStyles.Bottom;
            klvFriendsList.Location = new System.Drawing.Point(0, 36);
            klvFriendsList.BackColor = Color.White;
            klvFriendsList.BackgroundIImage = MasterForm.SkinManager.GetImage("List-background");
            klvFriendsList.ContentUpShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvFriendsList.ContentDownShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvFriendsList.ShowContentShadows = true;
            klvFriendsList.OutsideDownShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvFriendsList.OutsideUpShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvFriendsList.ShowInnerShadows = true;
            klvFriendsList.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvFriendsList.Name = "klvStatusUpdatesList";
            klvFriendsList.Size = new System.Drawing.Size(240, 193);
            klvFriendsList.ReturnLongPress += new EventHandler<ListViewLongPressEventArgs>(KlvFriendsListReturnLongPress);
            //klvFriendsList.Click += new EventHandler(KlvFriendsListClick);
            klvFriendsList.MouseUp += new MouseEventHandler(KlvFriendsListClick);

            //
            // toolBar
            //
            toolBar.ToolbarButtonNews.Click += new EventHandler(ButtonNewsClick);
            toolBar.ToolbarButtonMessages.Click += new EventHandler(ButtonMessagesClick);
            toolBar.ToolbarButtonPhotos.Click += new EventHandler(ButtonPhotosClick);
            toolBar.ToolbarButtonExtras.Click += new EventHandler(ButtonExtrasClick);   
            
            //
            // filter
            //
            filter.Location = new Point(39, 5);
            filter._filter.TextBox.TextChanged += new EventHandler(TextChange);
            filter._filter.TextBox.GotFocus += new EventHandler(TextBoxGotFocus);
            filter._filter.TextBox.LostFocus += new EventHandler(TextBoxLostFocus);
            filter.inputPanel.EnabledChanged +=new EventHandler(InputPanelEnabledChanged);

            toolBar.miUserData.Click += new EventHandler(MiUserDataClick);
            toolBar.miSettings.Click += new EventHandler(MiSettingsClick);
            toolBar.miAbout.Click += new EventHandler(MiAboutClick);
            toolBar.miExit.Click += new EventHandler(MiExitClick);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(toolBar);
            this.Canvas.Children.Add(btnRefresh);
            this.Canvas.Children.Add(btnFriendsOnline);
            this.Canvas.Children.Add(btnFriendsNew);
            this.Controls.Add(klvFriendsList);
            this.Controls.Add(filter);

            this.Canvas.RecalcDPIScaling();

            this.ResumeLayout(false);
            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");
        }
Esempio n. 6
0
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            mainMenu = new System.Windows.Forms.MainMenu();

            menuItemActions = new System.Windows.Forms.MenuItem();
            //menuItemWrite = new System.Windows.Forms.MenuItem();
            menuItemBack = new System.Windows.Forms.MenuItem();

            this.headerText = new UILabel();
            this.headerShadowText = new UILabel();

            klvMessagesList = new MessageListKineticListView();

            tbxMessageData = new TextBox();

            btnRefresh = new UIButton(ButtonStyle.AlphaChannel);
            header = new GraphicsImage();
            logo = new GraphicsImage();

            this.SuspendLayout();

            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.Name = "MessagesListView";
            this.BackColor = Color.White;

            this.header.Name = "Head";
            this.header.Location = new Point(0, 0);
            this.header.Stretch = true;
            this.header.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            this.logo.Name = "Logo";
            this.logo.Location = new Point(6, 7);
            this.logo.Stretch = false;
            this.logo.Anchor = AnchorStyles.Left | AnchorStyles.Top;

            //
            // headerText
            //
            this.headerText.Name = "headerText";
            this.headerText.Location = new Point(0, 0);
            this.headerText.Size = new Size(240, 36);
            this.headerText.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold);
            this.headerText.ForeColor = Color.White;
            this.headerText.VerticalTextAlignment = VerticalAlignment.Center;
            this.headerText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            this.headerText.Text = Resources.ChangeCommentView_Title;
            this.headerText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            // headerShadowText
            //
            this.headerShadowText.Name = "headerShadowText";
            this.headerShadowText.Location = new Point(0, 0);
            this.headerShadowText.Size = new Size(240, 36);
            this.headerShadowText.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold);
            this.headerShadowText.ForeColor = Color.Black;
            this.headerShadowText.VerticalTextAlignment = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            this.headerShadowText.Text = Resources.ChangeCommentView_Title;
            this.headerShadowText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            //btnRefresh
            //
            btnRefresh.TransparentButton = MasterForm.SkinManager.GetImage("RefreshButton");
            btnRefresh.TransparentButtonPressed = MasterForm.SkinManager.GetImage("RefreshButtonPressed");
            btnRefresh.Location = new Point(211, 5);
            btnRefresh.Size = new Size(24, 24);
            btnRefresh.Name = "btnRefresh";
            btnRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            btnRefresh.Click += new EventHandler(BtnRefreshClick);

            //
            // inputPanel
            //
            this.inputPanel = new Microsoft.WindowsCE.Forms.InputPanel();

            // 
            // mainMenu
            // 
            this.mainMenu.MenuItems.Add(this.menuItemBack);
            this.mainMenu.MenuItems.Add(this.menuItemActions);
            //menuItemActions.MenuItems.Add(menuItemWrite);


            // 
            // menuItemBack
            // 
            this.menuItemBack.Text = Resources.MessagesList_Designer_menuItemBack_Text;
            this.menuItemBack.Click += new EventHandler(menuItemBack_Click);

            // 
            // menuItemActions
            // 
            this.menuItemActions.Text = Resources.MessagesList_Designer_menuItemSent_Text;
            this.menuItemActions.Click += new EventHandler(menuItemSent_Click);

            // 
            // menuItemWrite
            // 
            //this.menuItemWrite.Text = Resources.MessagesList_Designer_menuItemSent_Text;
            //this.menuItemWrite.Click += new EventHandler(menuItemSent_Click);

            //
            //tbxMessageData
            //
            tbxMessageData.Location = new Point(5, 5);
            tbxMessageData.Size = new Size(230, 90);
            tbxMessageData.Name = "tbxMessageData";
            tbxMessageData.Multiline = true;
            tbxMessageData.WordWrap = true;
            tbxMessageData.ScrollBars = ScrollBars.None;
            tbxMessageData.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
            tbxMessageData.GotFocus += new EventHandler(tbxMessageDataGotFocus);
            tbxMessageData.LostFocus += new EventHandler(tbxMessageDataLostFocus);
            tbxMessageData.BorderStyle = BorderStyle.None;

            //
            //klvMessagesList
            //
            klvMessagesList.Anchor =    System.Windows.Forms.AnchorStyles.Left
                                        | System.Windows.Forms.AnchorStyles.Right
                                        | System.Windows.Forms.AnchorStyles.Top
                                        | System.Windows.Forms.AnchorStyles.Bottom;
            klvMessagesList.Location = new System.Drawing.Point(0, 36);
            klvMessagesList.Size = new System.Drawing.Size(240, 234);
            klvMessagesList.BackColor = Color.White;
            klvMessagesList.BackgroundIImage = MasterForm.SkinManager.GetImage("List-background");
            klvMessagesList.ContentUpShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvMessagesList.ContentDownShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvMessagesList.ShowContentShadows = true;
            klvMessagesList.OutsideDownShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvMessagesList.OutsideUpShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvMessagesList.ShowInnerShadows = true;
            klvMessagesList.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvMessagesList.Name = "klvMessagesList";


            this.Controls.Add(klvMessagesList);
            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(btnRefresh);
            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);
            //this.Controls.Add(tbxMessageData);

            this.Canvas.RecalcDPIScaling();
            this.ResumeLayout(false);

            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");

            this.headerShadowText.Top -= UISettings.CalcPix(1);
        }