예제 #1
0
        private void initImages()
        {
            _imgBB = new GraphicsImage(dlg_BB, true);
            _imgLB = new GraphicsImage(dlg_LB, false);
            _imgLL = new GraphicsImage(dlg_LL, true);
            _imgLT = new GraphicsImage(dlg_LT, false);
            _imgRB = new GraphicsImage(dlg_RB, false);
            _imgRR = new GraphicsImage(dlg_RR, true);
            _imgRT = new GraphicsImage(dlg_RT, false);
            _imgTT = new GraphicsImage(dlg_TT, true);

            buttonOk.TransparentButton            = dlg_button;
            buttonOk.TransparentButtonPressed     = dlg_buttonPressed;
            buttonReset.TransparentButton         = dlg_button;
            buttonReset.TransparentButtonPressed  = dlg_buttonPressed;
            buttonCancel.TransparentButton        = dlg_button;
            buttonCancel.TransparentButtonPressed = dlg_buttonPressed;

            Canvas.Children.Add(_imgLT);
            Canvas.Children.Add(_imgTT);
            Canvas.Children.Add(_imgRT);
            Canvas.Children.Add(_imgLL);
            Canvas.Children.Add(_imgRR);
            Canvas.Children.Add(_imgLB);
            Canvas.Children.Add(_imgBB);
            Canvas.Children.Add(_imgRB);
        }
예제 #2
0
        public void DrawBlurFromScreen(Action <IDeviceContext, Rectangle> sourcePainterFunc, IDeviceContext destImage, Rectangle screenBounds, Point destLocation, int blurStrength)
        {
            if (screenBounds.Size.Width < 1 || screenBounds.Size.Height < 1)
            {
                return;
            }
            try {
                Rectangle srcRect  = new Rectangle(Point.Empty, screenBounds.Size);
                Rectangle distRect = new Rectangle(0, 0, srcRect.Width / blurStrength, srcRect.Height / blurStrength);

                using (GraphicsImage stretchImage = new GraphicsImage(srcRect.Size))
                {
                    using (GraphicsImage shrinkImage = new GraphicsImage(distRect.Size))
                    {
                        sourcePainterFunc(shrinkImage.Graphics, screenBounds);
                        shrinkImage.Graphics.ReleaseHdc();

                        shrinkImage.Graphics.DrawImage(stretchImage.Image, distRect, srcRect, GraphicsUnit.Pixel);

                        srcRect.Location = destLocation;
                        Graphics g = Graphics.FromHdc(destImage.GetHdc());
                        g.DrawImage(shrinkImage.Image, srcRect, distRect, GraphicsUnit.Pixel);
                        g.Dispose();
                        destImage.ReleaseHdc();
                    }
                }
            } catch
            {
            }
        }
예제 #3
0
        private void initImages()
        {
            _imgBB = new GraphicsImage(dlg_BB, true);
            _imgLB = new GraphicsImage(dlg_LB, false);
            _imgLL = new GraphicsImage(dlg_LL, true);
            _imgLT = new GraphicsImage(dlg_LT, false);
            _imgRB = new GraphicsImage(dlg_RB, false);
            _imgRR = new GraphicsImage(dlg_RR, true);
            _imgRT = new GraphicsImage(dlg_RT, false);
            _imgTT = new GraphicsImage(dlg_TT, true);

            button1.TransparentButton        = dlg_button;
            button1.TransparentButtonPressed = dlg_buttonPressed;
            button1.FontColor        = Color.FromArgb(145, 145, 145);
            button1.PressedFontColor = Color.FromArgb(255, 255, 255);
            button1.Font             = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true);

            progressBar.EmptyImage = dlg_progressEmpty;
            progressBar.FullImage  = dlg_progressFull;
            //button1.Size = new Size(UISettings.CalcPix(button1.Width), UISettings.CalcPix(button1.Height));

            Canvas.Children.Add(_imgLT);
            Canvas.Children.Add(_imgTT);
            Canvas.Children.Add(_imgRT);
            Canvas.Children.Add(_imgLL);
            Canvas.Children.Add(_imgRR);
            Canvas.Children.Add(_imgLB);
            Canvas.Children.Add(_imgBB);
            Canvas.Children.Add(_imgRB);
        }
예제 #4
0
        public BottomToolBar()
        {
            Location        = new Point(0, 229);
            Size            = new Size(240, 39);
            Anchor          = AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Left;
            BackgroundImage = new GraphicsImage(MasterForm.SkinManager.GetImage("TBImage"), true);
            Name            = "toolBar";

            //FIXME почему он для 128 не пересчитывает понять не могу, пока так
            if (UISettings.ScreenDPI == 128)
            {
                ButtonsSize = new Size(UISettings.CalcPix(45), UISettings.CalcPix(36));
            }
            else
            {
                ButtonsSize = new Size(45, 36);
            }

            Visible = true;

            miAbout = new MenuItem {
                Text = Resources.ExtraView_AboutButtonTitle
            };
            miUserData = new MenuItem {
                Text = Resources.ExtraView_UserDataButtonTitle
            };
            miSettings = new MenuItem {
                Text = Resources.ExtraView_SettingsButtonTitle
            };
            miExit = new MenuItem {
                Text = Resources.ExtraView_ExitButtonTitle
            };

            contextMenu = new ContextMenu();
            contextMenu.MenuItems.Add(miUserData);
            contextMenu.MenuItems.Add(miSettings);
            contextMenu.MenuItems.Add(miAbout);
            contextMenu.MenuItems.Add(miExit);

            ToolbarButtonNews = AddButton(ButtonStyle.AlphaChannel);
            ToolbarButtonNews.TransparentButton         = MasterForm.SkinManager.GetImage("TBButtonNews1");
            ToolbarButtonNews.TransparentButtonPressed  = MasterForm.SkinManager.GetImage("TBButtonNews3");
            ToolbarButtonNews.TransparentButtonSelected = MasterForm.SkinManager.GetImage("TBButtonNews2");
            ToolbarButtonNews.Text               = Resources.toolBar_News;
            ToolbarButtonNews.Font               = _font;
            ToolbarButtonNews.FontColor          = _fontColor;
            ToolbarButtonNews.PressedFont        = _pressedFont;
            ToolbarButtonNews.PressedFontColor   = _pressedFontColor;
            ToolbarButtonNews.SelectedFont       = _selectedFont;
            ToolbarButtonNews.SelectedFontColor  = _fontColor;
            ToolbarButtonNews.VerticalTextMargin = _verticalTextMargin;

            ToolbarButtonMessages = AddButton(ButtonStyle.AlphaChannel);
            ToolbarButtonMessages.TransparentButton         = MasterForm.SkinManager.GetImage("TBButtonMessages1");
            ToolbarButtonMessages.TransparentButtonPressed  = MasterForm.SkinManager.GetImage("TBButtonMessages3");
            ToolbarButtonMessages.TransparentButtonSelected = MasterForm.SkinManager.GetImage("TBButtonMessages2");
            ToolbarButtonMessages.Text               = Resources.toolBar_Messages;
            ToolbarButtonMessages.Font               = _font;
            ToolbarButtonMessages.FontColor          = _fontColor;
            ToolbarButtonMessages.PressedFont        = _pressedFont;
            ToolbarButtonMessages.PressedFontColor   = _pressedFontColor;
            ToolbarButtonMessages.SelectedFont       = _selectedFont;
            ToolbarButtonMessages.SelectedFontColor  = _fontColor;
            ToolbarButtonMessages.VerticalTextMargin = _verticalTextMargin;

            ToolbarButtonFriends = AddButton(ButtonStyle.AlphaChannel);
            ToolbarButtonFriends.TransparentButton         = MasterForm.SkinManager.GetImage("TBButtonFriends1");
            ToolbarButtonFriends.TransparentButtonPressed  = MasterForm.SkinManager.GetImage("TBButtonFriends3");
            ToolbarButtonFriends.TransparentButtonSelected = MasterForm.SkinManager.GetImage("TBButtonFriends2");
            ToolbarButtonFriends.Text               = Resources.toolBar_Friends;
            ToolbarButtonFriends.Font               = _font;
            ToolbarButtonFriends.FontColor          = _fontColor;
            ToolbarButtonFriends.PressedFont        = _pressedFont;
            ToolbarButtonFriends.PressedFontColor   = _pressedFontColor;
            ToolbarButtonFriends.SelectedFont       = _selectedFont;
            ToolbarButtonFriends.SelectedFontColor  = _fontColor;
            ToolbarButtonFriends.VerticalTextMargin = _verticalTextMargin;

            ToolbarButtonPhotos = AddButton(ButtonStyle.AlphaChannel);
            ToolbarButtonPhotos.TransparentButton         = MasterForm.SkinManager.GetImage("TBButtonPhotos1");
            ToolbarButtonPhotos.TransparentButtonPressed  = MasterForm.SkinManager.GetImage("TBButtonPhotos3");
            ToolbarButtonPhotos.TransparentButtonSelected = MasterForm.SkinManager.GetImage("TBButtonPhotos2");
            ToolbarButtonPhotos.Text               = Resources.toolBar_Photos;
            ToolbarButtonPhotos.Font               = _font;
            ToolbarButtonPhotos.FontColor          = _fontColor;
            ToolbarButtonPhotos.PressedFont        = _pressedFont;
            ToolbarButtonPhotos.PressedFontColor   = _pressedFontColor;
            ToolbarButtonPhotos.SelectedFont       = _selectedFont;
            ToolbarButtonPhotos.SelectedFontColor  = _fontColor;
            ToolbarButtonPhotos.VerticalTextMargin = _verticalTextMargin;

            ToolbarButtonExtras = AddButton(ButtonStyle.AlphaChannel);
            ToolbarButtonExtras.TransparentButton         = MasterForm.SkinManager.GetImage("TBButtonOptions1");
            ToolbarButtonExtras.TransparentButtonPressed  = MasterForm.SkinManager.GetImage("TBButtonOptions3");
            ToolbarButtonExtras.TransparentButtonSelected = MasterForm.SkinManager.GetImage("TBButtonOptions2");
            ToolbarButtonExtras.Text               = Resources.toolBar_Extras;
            ToolbarButtonExtras.Font               = _font;
            ToolbarButtonExtras.FontColor          = _fontColor;
            ToolbarButtonExtras.PressedFont        = _pressedFont;
            ToolbarButtonExtras.PressedFontColor   = _pressedFontColor;
            ToolbarButtonExtras.SelectedFont       = _selectedFont;
            ToolbarButtonExtras.SelectedFontColor  = _fontColor;
            ToolbarButtonExtras.VerticalTextMargin = _verticalTextMargin;
        }
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            mainMenu = new MainMenu();
            menuItemBack = new MenuItem();
            menuItemSelect = new MenuItem();
            header = new GraphicsImage();
            logo = new GraphicsImage();
            filter = new FilterControl(195, 25);
            this.klvFriendsList = new FriendsListKineticListView();

            this.SuspendLayout();

            //
            // 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";

            //
            //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.OutsideUpShadow = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvFriendsList.OutsideDownShadow = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvFriendsList.ShowInnerShadows = true;
            klvFriendsList.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvFriendsList.Name = "klvStatusUpdatesList";
            klvFriendsList.Size = new System.Drawing.Size(240, 232);
            klvFriendsList.MouseUp += new MouseEventHandler(KlvFriendsListClick);

            //
            // 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);

            //
            // mainMenu
            //
            mainMenu.MenuItems.Add(menuItemBack);
            mainMenu.MenuItems.Add(menuItemSelect);

            //
            // menuItemBack
            //
            menuItemBack.Text = Resources.FriendsSearchListViewMenuItemBack;
            menuItemBack.Click += new EventHandler(MenuItemBackClick);

            //
            // menuItemSelect
            //
            menuItemSelect.Text = Resources.FriendsSearchListViewMenuItemSelect;
            menuItemSelect.Click += new EventHandler(MenuItemSelectClick);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            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");
        }
예제 #6
0
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            header                = new GraphicsImage();
            logo                  = new GraphicsImage();
            tbxComment            = new TextBox();
            mainMenu              = new MainMenu();
            menuItemBack          = new MenuItem();
            menuItemSend          = new MenuItem();
            this.contextMenu      = new ContextMenu();
            this.miCut            = new MenuItem();
            this.miCopy           = new MenuItem();
            this.miPaste          = new MenuItem();
            this.headerText       = new UILabel();
            this.headerShadowText = new UILabel();

            this.SuspendLayout();

            //
            // 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;

            //
            //HeaderText
            //
            this.headerText.Name                    = "HeadText";
            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 = HorizontalAlignment.Center;
            this.headerText.Text                    = Resources.SendCommentTitle;
            this.headerText.Anchor                  = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            //HeaderShadowText
            //
            this.headerShadowText.Name                    = "HeadShadowText";
            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.FromArgb(0, 0, 0);
            this.headerShadowText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = HorizontalAlignment.Center;
            this.headerShadowText.Text                    = Resources.SendCommentTitle;
            this.headerShadowText.Anchor                  = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            // 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.Name = "SendCommentView";

            //
            // mainMenu
            //
            mainMenu.MenuItems.Add(menuItemBack);
            mainMenu.MenuItems.Add(menuItemSend);

            //
            // menuItemBack
            //
            menuItemBack.Text   = Resources.FriendsSearchListViewMenuItemBack;
            menuItemBack.Click += new EventHandler(MenuItemBackClick);

            //
            // menuItemSend
            //
            menuItemSend.Text   = Resources.SendCommentSend;
            menuItemSend.Click += new EventHandler(MenuItemSendClick);

            //
            // contextMenu
            //
            this.contextMenu.MenuItems.Add(this.miCut);
            this.contextMenu.MenuItems.Add(this.miCopy);
            this.contextMenu.MenuItems.Add(this.miPaste);
            this.contextMenu.Popup += new EventHandler(ContextMenuPopup);

            //
            // miCut
            //
            this.miCut.Text   = Resources.CutToClipboard;
            this.miCut.Click += new EventHandler(MiCutClick);

            //
            // miCopy
            //
            this.miCopy.Text   = Resources.CopyToClipboard;
            this.miCopy.Click += new EventHandler(MiCopyClick);

            //
            // miPaste
            //
            this.miPaste.Text   = Resources.PasteFromClipboard;
            this.miPaste.Click += new EventHandler(MiPasteClick);

            //
            // tbxComment
            //
            tbxComment.Location    = new Point(0, 36);
            tbxComment.Size        = new Size(240, 232);
            tbxComment.Multiline   = true;
            tbxComment.Font        = new System.Drawing.Font("Tahoma", 12, FontStyle.Regular);
            tbxComment.BorderStyle = BorderStyle.None;
            tbxComment.WordWrap    = true;
            tbxComment.ScrollBars  = ScrollBars.Vertical;
            tbxComment.Anchor      = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left |
                                     System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top;
            tbxComment.ContextMenu = contextMenu;

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);
            this.Controls.Add(tbxComment);

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

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

            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage   = MasterForm.SkinManager.GetImage("HeaderLogo");
        }
        /// <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;
        }
예제 #8
0
 /// <summary>
 /// Releases the resources held by this instance.
 /// </summary>
 public void Dispose()
 {
     GraphicsImage?.Dispose();
     Transform?.Dispose();
 }
예제 #9
0
        /// <summary> 
        /// Обязательный метод для поддержки конструктора - не изменяйте 
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu = new MainMenu();

            this.menuItemCancel = new MenuItem();
            this.menuItemAction = new MenuItem();
            this.menuItemRC = new MenuItem();
            this.menuItemRCC = new MenuItem();
            this.menuItemSend = new MenuItem();

            this.btnSentMessage = new UIButton(ButtonStyle.AlphaChannel);
            this.btnSentMessageText = new UILabel();
            this.btnSentMessageShadowText = new UILabel();

            //filter = new FilterControl(230, 25);

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

            this.giPhotoPreview = new GraphicsImage();            
            this.lblVoidPhoto = new MLLabel();

            this.SuspendLayout();

            //
            // header
            //
            this.header.Name = "header";
            this.header.Location = new Point(0, 0);
            this.header.Stretch = true;
            this.header.Anchor = Galssoft.VKontakteWM.Components.UI.AnchorStyles.Left | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Top | Galssoft.VKontakteWM.Components.UI.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;

            //
            // mainMenu
            //
            mainMenu.MenuItems.Add(menuItemCancel);
            mainMenu.MenuItems.Add(menuItemAction);
            
            //
            // menuItemChange
            //
            menuItemAction.Text = Resources.SharePhotoView_MenuItem_Action;
            menuItemAction.MenuItems.Add(menuItemSend);
            menuItemAction.MenuItems.Add(menuItemRC);
            menuItemAction.MenuItems.Add(menuItemRCC);
            //menuItemAction.Click += new EventHandler(MenuItemChangeClick);

            //
            // menuItemCancel
            //
            menuItemCancel.Text = Resources.SharePhotoView_MenuItem_Cancel;
            menuItemCancel.Click += new System.EventHandler(menuItemCancel_Click);

            //
            // menuItemRC
            //
            menuItemRC.Text = Resources.SharePhotoView_MenuItem_RC;
            menuItemRC.Click += new System.EventHandler(menuItemRC_Click);
            //menuItemRC.Click += new System.EventHandler(menuItemCancel_Click);

            //
            // menuItemRCC
            //
            menuItemRCC.Text = Resources.SharePhotoView_MenuItem_RCC;
            menuItemRCC.Click += new System.EventHandler(menuItemRCC_Click);
            //menuItemRCC.Click += new System.EventHandler(menuItemCancel_Click);

            //
            // menuItemCancel
            //
            menuItemSend.Text = Resources.SharePhotoView_MenuItem_Send;
            menuItemSend.Click += new System.EventHandler(menuItemSend_Click);
            //menuItemSend.Click += new System.EventHandler(menuItemCancel_Click);

            //
            //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 System.EventHandler(btnSentMessage_Click);
            //btnSentMessage.Click += new EventHandler(BtnSentMessageClick);

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

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

            //
            // lblVoidPhoto // пустышка-текст
            //
            lblVoidPhoto.Location = new System.Drawing.Point(0, 36);
            lblVoidPhoto.Size = new System.Drawing.Size(240, 232);
            lblVoidPhoto.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            lblVoidPhoto.FontColor = Color.White;
            lblVoidPhoto.FontColorShadow = Color.Gray;
            lblVoidPhoto.Text = Resources.UploadPhotoView_VoidPhotoLabel;
            lblVoidPhoto.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            lblVoidPhoto.VerticalTextAlignment = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            lblVoidPhoto.Anchor = Galssoft.VKontakteWM.Components.UI.AnchorStyles.Bottom | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Left | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Right | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Top;
            lblVoidPhoto.DropShadow = true;
            //lblVoidPhoto.ForeColor = Color.Magenta;
            lblVoidPhoto.Visible = false;

            ////
            //// filter
            ////
            //this.filter.Location = new Point(5, 5);
            ////this.filter._filter.TextBox.TextChanged += new EventHandler(TextChange);
            ////this.filter._filter.TextBox.GotFocus += new EventHandler(TextBoxGotFocus);
            ////this.filter._filter.TextBox.LostFocus += new EventHandler(TextBoxLostFocus);

            //
            // this
            //
            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.BackColor = Color.FromArgb(51, 51, 51);
            this.AutoScroll = true;
            this.Resize += new System.EventHandler(FormResize);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(lblVoidPhoto);
            this.Canvas.Children.Add(giPhotoPreview);
            //this.Controls.Add(filter);

            //this.Canvas.Children.Add(btnSentMessage);
            this.Canvas.Children.Add(btnSentMessageShadowText);
            this.Canvas.Children.Add(btnSentMessageText);

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

            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");
            btnSentMessage.TransparentButton = MasterForm.SkinManager.GetImage("MessagesNew");
            btnSentMessage.TransparentButtonPressed = MasterForm.SkinManager.GetImage("MessagesNewPressed");

            btnSentMessageShadowText.Location = new Point(btnSentMessageShadowText.Location.X, btnSentMessageShadowText.Location.Y - UISettings.CalcPix(1));
        }
예제 #10
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);
        }
예제 #11
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");
        }
예제 #12
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);
        }
예제 #13
0
파일: ToolBar.cs 프로젝트: xorkrus/vk_wm
 public ToolBar(GraphicsImage backGroundImage)
     : this()
 {
     _backgroundImage = backGroundImage;
     _backgroundImage.Size = Size;
 }
예제 #14
0
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            mainMenu            = new MainMenu();
            menuItemBack        = new MenuItem();
            menuItemSelect      = new MenuItem();
            header              = new GraphicsImage();
            logo                = new GraphicsImage();
            filter              = new FilterControl(195, 25);
            this.klvFriendsList = new FriendsListKineticListView();

            this.SuspendLayout();

            //
            // 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";

            //
            //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.OutsideUpShadow    = MasterForm.SkinManager.GetImage("ContentDownShadow");
            klvFriendsList.OutsideDownShadow  = MasterForm.SkinManager.GetImage("ContentUpShadow");
            klvFriendsList.ShowInnerShadows   = true;
            klvFriendsList.ScrollAction       = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            klvFriendsList.Name     = "klvStatusUpdatesList";
            klvFriendsList.Size     = new System.Drawing.Size(240, 232);
            klvFriendsList.MouseUp += new MouseEventHandler(KlvFriendsListClick);

            //
            // 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);

            //
            // mainMenu
            //
            mainMenu.MenuItems.Add(menuItemBack);
            mainMenu.MenuItems.Add(menuItemSelect);

            //
            // menuItemBack
            //
            menuItemBack.Text   = Resources.FriendsSearchListViewMenuItemBack;
            menuItemBack.Click += new EventHandler(MenuItemBackClick);

            //
            // menuItemSelect
            //
            menuItemSelect.Text   = Resources.FriendsSearchListViewMenuItemSelect;
            menuItemSelect.Click += new EventHandler(MenuItemSelectClick);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            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");
        }
        /// <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;
        }
예제 #16
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;
        }
예제 #17
0
        private void initImages()
        {
            _imgBB = new GraphicsImage(dlg_BB, true);
            _imgLB = new GraphicsImage(dlg_LB, false);
            _imgLL = new GraphicsImage(dlg_LL, true);
            _imgLT = new GraphicsImage(dlg_LT, false);
            _imgRB = new GraphicsImage(dlg_RB, false);
            _imgRR = new GraphicsImage(dlg_RR, true);
            _imgRT = new GraphicsImage(dlg_RT, false);
            _imgTT = new GraphicsImage(dlg_TT, true);

            button1.TransparentButton = dlg_button;
            button1.TransparentButtonPressed = dlg_buttonPressed;
            button1.FontColor = Color.FromArgb(145, 145, 145);
            button1.PressedFontColor = Color.FromArgb(255, 255, 255);
            button1.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true);

            button2.TransparentButton = dlg_button;
            button2.TransparentButtonPressed = dlg_buttonPressed;
            button2.FontColor = Color.FromArgb(145, 145, 145);
            button2.PressedFontColor = Color.FromArgb(255, 255, 255);
            button2.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true);

            button3.TransparentButton = dlg_button;
            button3.TransparentButtonPressed = dlg_buttonPressed;
            button3.FontColor = Color.FromArgb(145, 145, 145);
            button3.PressedFontColor = Color.FromArgb(255, 255, 255);
            button3.Font = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true);

            //button1.Size = new Size(UISettings.CalcPix(button1.Width), UISettings.CalcPix(button1.Height));
            //button2.Size = new Size(UISettings.CalcPix(button2.Width), UISettings.CalcPix(button2.Height));
            //button3.Size = new Size(UISettings.CalcPix(button3.Width), UISettings.CalcPix(button3.Height));

            Canvas.Children.Add(_imgLT);
            Canvas.Children.Add(_imgTT);
            Canvas.Children.Add(_imgRT);
            Canvas.Children.Add(_imgLL);
            Canvas.Children.Add(_imgRR);
            Canvas.Children.Add(_imgLB);
            Canvas.Children.Add(_imgBB);
            Canvas.Children.Add(_imgRB);
        }
예제 #18
0
        private void initImages()
        {
            _imgBB = new GraphicsImage(dlg_BB, true);
            _imgLB = new GraphicsImage(dlg_LB, false);
            _imgLL = new GraphicsImage(dlg_LL, true);
            _imgLT = new GraphicsImage(dlg_LT, false);
            _imgRB = new GraphicsImage(dlg_RB, false);
            _imgRR = new GraphicsImage(dlg_RR, true);
            _imgRT = new GraphicsImage(dlg_RT, false);
            _imgTT = new GraphicsImage(dlg_TT, true);

            buttonOk.TransparentButton = dlg_button;
            buttonOk.TransparentButtonPressed = dlg_buttonPressed;
            buttonReset.TransparentButton = dlg_button;
            buttonReset.TransparentButtonPressed = dlg_buttonPressed;
            buttonCancel.TransparentButton = dlg_button;
            buttonCancel.TransparentButtonPressed = dlg_buttonPressed;

            Canvas.Children.Add(_imgLT);
            Canvas.Children.Add(_imgTT);
            Canvas.Children.Add(_imgRT);
            Canvas.Children.Add(_imgLL);
            Canvas.Children.Add(_imgRR);
            Canvas.Children.Add(_imgLB);
            Canvas.Children.Add(_imgBB);
            Canvas.Children.Add(_imgRB);
        }
예제 #19
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            mainMenu = new MainMenu();
            menuItemCancel = new MenuItem();
            menuItemChange = new MenuItem();
            this.contextMenu = new ContextMenu();
            this.miCut = new MenuItem();
            this.miCopy = new MenuItem();
            this.miPaste = new MenuItem();
            tbxStatusText = new TextBox();
            header = new GraphicsImage();
            logo = new GraphicsImage();
            this.headerText = new UILabel();
            this.headerShadowText = new UILabel();
            this.SuspendLayout();

            //
            // 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;

            //
            //HeaderText
            //
            this.headerText.Name = "HeadText";
            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 = HorizontalAlignment.Center;
            this.headerText.Text = Resources.ChangeStatusView_Title;
            this.headerText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            //
            //HeaderShadowText
            //
            this.headerShadowText.Name = "HeadShadowText";
            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.FromArgb(0, 0, 0);
            this.headerShadowText.VerticalTextAlignment = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = HorizontalAlignment.Center;
            this.headerShadowText.Text = Resources.ChangeStatusView_Title;
            this.headerShadowText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            //
            // tbxStatusText
            //
            tbxStatusText.Location = new Point(5, 36);
            tbxStatusText.Size = new Size(235, 232);
            tbxStatusText.Multiline = true;
            tbxStatusText.Font = new System.Drawing.Font("Tahoma", 12, FontStyle.Regular);
            tbxStatusText.ScrollBars = ScrollBars.Vertical;
            tbxStatusText.WordWrap = true;
            tbxStatusText.BorderStyle = BorderStyle.None;
            tbxStatusText.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left |
                                   System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top;
            tbxStatusText.ContextMenu = this.contextMenu;

            //
            // mainMenu
            //
            mainMenu.MenuItems.Add(menuItemCancel);
            mainMenu.MenuItems.Add(menuItemChange);
            //
            // menuItemChange
            //
            menuItemChange.Text = Resources.ChangeStatusView_SetStatus;
            menuItemChange.Click += new EventHandler(MenuItemChangeClick);
            //
            // menuItemCancel
            //
            menuItemCancel.Text = Resources.ChangeStatusView_Cancel;
            menuItemCancel.Click += new EventHandler(MenuItemCancelClick);

            //
            // contextMenu
            //
            this.contextMenu.MenuItems.Add(this.miCut);
            this.contextMenu.MenuItems.Add(this.miCopy);
            this.contextMenu.MenuItems.Add(this.miPaste);
            this.contextMenu.Popup += new EventHandler(ContextMenuPopup);

            //
            // miCut
            //
            this.miCut.Text = Resources.CutToClipboard;
            this.miCut.Click += new EventHandler(MiCutClick);

            //
            // miCopy
            //
            this.miCopy.Text = Resources.CopyToClipboard;
            this.miCopy.Click += new EventHandler(MiCopyClick);

            //
            // miPaste
            //
            this.miPaste.Text = Resources.PasteFromClipboard;
            this.miPaste.Click += new EventHandler(MiPasteClick);

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

            this.Controls.Add(tbxStatusText);
            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);
            this.Canvas.RecalcDPIScaling();
            this.ResumeLayout(false);

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

            this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage = MasterForm.SkinManager.GetImage("HeaderLogo");
        }
        /// <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;
        }
예제 #21
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;  


        }
예제 #22
0
파일: ToolBar.cs 프로젝트: xorkrus/vk_wm
 public ToolBar(GraphicsImage backGroundImage)
     : this()
 {
     _backgroundImage      = backGroundImage;
     _backgroundImage.Size = 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;
        } 
예제 #24
0
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu = new MainMenu();

            this.menuItemCancel = new MenuItem();
            this.menuItemAction = new MenuItem();
            this.menuItemRC     = new MenuItem();
            this.menuItemRCC    = new MenuItem();
            this.menuItemSend   = new MenuItem();

            this.btnSentMessage           = new UIButton(ButtonStyle.AlphaChannel);
            this.btnSentMessageText       = new UILabel();
            this.btnSentMessageShadowText = new UILabel();

            //filter = new FilterControl(230, 25);

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

            this.giPhotoPreview = new GraphicsImage();
            this.lblVoidPhoto   = new MLLabel();

            this.SuspendLayout();

            //
            // header
            //
            this.header.Name     = "header";
            this.header.Location = new Point(0, 0);
            this.header.Stretch  = true;
            this.header.Anchor   = Galssoft.VKontakteWM.Components.UI.AnchorStyles.Left | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Top | Galssoft.VKontakteWM.Components.UI.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;

            //
            // mainMenu
            //
            mainMenu.MenuItems.Add(menuItemCancel);
            mainMenu.MenuItems.Add(menuItemAction);

            //
            // menuItemChange
            //
            menuItemAction.Text = Resources.SharePhotoView_MenuItem_Action;
            menuItemAction.MenuItems.Add(menuItemSend);
            menuItemAction.MenuItems.Add(menuItemRC);
            menuItemAction.MenuItems.Add(menuItemRCC);
            //menuItemAction.Click += new EventHandler(MenuItemChangeClick);

            //
            // menuItemCancel
            //
            menuItemCancel.Text   = Resources.SharePhotoView_MenuItem_Cancel;
            menuItemCancel.Click += new System.EventHandler(menuItemCancel_Click);

            //
            // menuItemRC
            //
            menuItemRC.Text   = Resources.SharePhotoView_MenuItem_RC;
            menuItemRC.Click += new System.EventHandler(menuItemRC_Click);
            //menuItemRC.Click += new System.EventHandler(menuItemCancel_Click);

            //
            // menuItemRCC
            //
            menuItemRCC.Text   = Resources.SharePhotoView_MenuItem_RCC;
            menuItemRCC.Click += new System.EventHandler(menuItemRCC_Click);
            //menuItemRCC.Click += new System.EventHandler(menuItemCancel_Click);

            //
            // menuItemCancel
            //
            menuItemSend.Text   = Resources.SharePhotoView_MenuItem_Send;
            menuItemSend.Click += new System.EventHandler(menuItemSend_Click);
            //menuItemSend.Click += new System.EventHandler(menuItemCancel_Click);

            //
            //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 System.EventHandler(btnSentMessage_Click);
            //btnSentMessage.Click += new EventHandler(BtnSentMessageClick);

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

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

            //
            // lblVoidPhoto // пустышка-текст
            //
            lblVoidPhoto.Location                = new System.Drawing.Point(0, 36);
            lblVoidPhoto.Size                    = new System.Drawing.Size(240, 232);
            lblVoidPhoto.Font                    = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            lblVoidPhoto.FontColor               = Color.White;
            lblVoidPhoto.FontColorShadow         = Color.Gray;
            lblVoidPhoto.Text                    = Resources.UploadPhotoView_VoidPhotoLabel;
            lblVoidPhoto.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Center;
            lblVoidPhoto.VerticalTextAlignment   = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            lblVoidPhoto.Anchor                  = Galssoft.VKontakteWM.Components.UI.AnchorStyles.Bottom | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Left | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Right | Galssoft.VKontakteWM.Components.UI.AnchorStyles.Top;
            lblVoidPhoto.DropShadow              = true;
            //lblVoidPhoto.ForeColor = Color.Magenta;
            lblVoidPhoto.Visible = false;

            ////
            //// filter
            ////
            //this.filter.Location = new Point(5, 5);
            ////this.filter._filter.TextBox.TextChanged += new EventHandler(TextChange);
            ////this.filter._filter.TextBox.GotFocus += new EventHandler(TextBoxGotFocus);
            ////this.filter._filter.TextBox.LostFocus += new EventHandler(TextBoxLostFocus);

            //
            // this
            //
            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
            this.BackColor           = Color.FromArgb(51, 51, 51);
            this.AutoScroll          = true;
            this.Resize += new System.EventHandler(FormResize);

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            this.Canvas.Children.Add(lblVoidPhoto);
            this.Canvas.Children.Add(giPhotoPreview);
            //this.Controls.Add(filter);

            //this.Canvas.Children.Add(btnSentMessage);
            this.Canvas.Children.Add(btnSentMessageShadowText);
            this.Canvas.Children.Add(btnSentMessageText);

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

            this.header.AlphaChannelImage           = MasterForm.SkinManager.GetImage("Header");
            this.logo.AlphaChannelImage             = MasterForm.SkinManager.GetImage("HeaderLogo");
            btnSentMessage.TransparentButton        = MasterForm.SkinManager.GetImage("MessagesNew");
            btnSentMessage.TransparentButtonPressed = MasterForm.SkinManager.GetImage("MessagesNewPressed");

            btnSentMessageShadowText.Location = new Point(btnSentMessageShadowText.Location.X, btnSentMessageShadowText.Location.Y - UISettings.CalcPix(1));
        }
예제 #25
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");
        }