示例#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);

            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);
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.buttonOk      = new UIButton(ButtonStyle.AlphaChannel);
            this.buttonReset   = new UIButton(ButtonStyle.AlphaChannel);
            this.buttonCancel  = new UIButton(ButtonStyle.AlphaChannel);
            this.textBoxStatus = new UITextControl();

            this.SuspendLayout();
            //
            // textBoxStatus
            //
            this.textBoxStatus.Location  = new Point(8, 0);
            this.textBoxStatus.Size      = new Size(100, 25);
            this.textBoxStatus.Name      = "textBoxStatus";
            this.textBoxStatus.BackColor = Color.White;
            this.textBoxStatus.Font      = FontCache.CreateFont("Calibri", 18, FontStyle.Regular, true);//12
            //TODO через Init
            this.textBoxStatus.SetImages(MasterForm.SkinManager.GetImage("UITextBoxLeftBorder"), MasterForm.SkinManager.GetImage("UITextBoxRightBorder"),
                                         MasterForm.SkinManager.GetImage("UITextBoxTopBorder"), MasterForm.SkinManager.GetImage("UITextBoxBottomBorder"));
            this.textBoxStatus.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            //
            // buttonOk
            //
            buttonOk.Location = new Point(8, 20);
            buttonOk.Size     = new Size(100, 25);
            buttonOk.Text     = "ОК";
            buttonOk.Click   += new EventHandler(buttonOk_Click);
            //
            // buttonReset
            //
            buttonReset.Location = new Point(8, 40);
            buttonReset.Size     = new Size(100, 25);
            buttonReset.Text     = "Сбросить";
            buttonReset.Click   += new EventHandler(buttonReset_Click);
            //
            // buttonCancel
            //
            buttonCancel.Location = new Point(8, 60);
            buttonCancel.Size     = new Size(150, 25);
            buttonCancel.Text     = "Отмена";
            buttonCancel.Click   += new EventHandler(buttonCancel_Click);
            //
            // StatusDialogControl
            //
            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
            this.Canvas.Children.Add(this.buttonOk);
            this.Canvas.Children.Add(this.buttonReset);
            this.Canvas.Children.Add(this.buttonCancel);
            this.Canvas.Children.Add(textBoxStatus);
            this.Name = "StatusDialogControl";
            this.Canvas.RecalcDPIScaling();
            this.ResumeLayout(false);
        }
示例#3
0
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.buttonUpdate = new UIButton(ButtonStyle.AlphaChannel);
            this.buttonSkip   = new UIButton(ButtonStyle.AlphaChannel);
            this.buttonCancel = new UIButton(ButtonStyle.AlphaChannel);

            //
            // buttonUpdate
            //
            buttonUpdate.Location         = new Point(8, 20);
            buttonUpdate.Size             = new Size(100, 25);
            buttonUpdate.Text             = Resources.UpdateInfoDialogControl_Buttons_Update;
            buttonUpdate.Click           += new EventHandler(buttonUpdate_Click);
            buttonUpdate.Font             = FontCache.CreateFont("Tahoma", 11, FontStyle.Bold);
            buttonUpdate.FontColor        = Color.Black;
            buttonUpdate.PressedFontColor = Color.White;

            //
            // buttonSkip
            //
            buttonSkip.Location         = new Point(8, 40);
            buttonSkip.Size             = new Size(100, 25);
            buttonSkip.Text             = Resources.UpdateInfoDialogControl_Buttons_Skip;
            buttonSkip.Click           += new EventHandler(buttonSkip_Click);
            buttonSkip.Font             = FontCache.CreateFont("Tahoma", 11, FontStyle.Bold);
            buttonSkip.FontColor        = Color.Black;
            buttonSkip.PressedFontColor = Color.White;

            //
            // buttonCancel
            //
            buttonCancel.Location         = new Point(8, 60);
            buttonCancel.Size             = new Size(100, 25);
            buttonCancel.Text             = string.Empty;
            buttonCancel.Click           += new EventHandler(buttonCancel_Click);
            buttonCancel.Font             = FontCache.CreateFont("Tahoma", 11, FontStyle.Bold);
            buttonCancel.FontColor        = Color.Black;
            buttonCancel.PressedFontColor = Color.White;

            //
            // PasswordRestoreDialogControl
            //
            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
            this.Name = "UpdateInfoDialogControl";

            this.Canvas.Children.Add(this.buttonUpdate);
            this.Canvas.Children.Add(this.buttonSkip);
            this.Canvas.Children.Add(this.buttonCancel);

            this.Canvas.RecalcDPIScaling();

            this.ResumeLayout(false);
        }
示例#4
0
 public SettingsKineticControl()
     : base(new KineticControlsSetting
 {
     ListItemPixSize      = 32,
     PrimaryTextFontGdi   = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true),
     SecondaryTextFontGdi = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true),
     GroupPixTopMargin    = 2,
     GroupPixHeight       = 18
 })
 {
     ShowGroupHeader = true;
     //EnableLongPress = true;
 }
示例#5
0
        //

        #endregion

        #region Constructors

        public MessageListKineticListView()
            : base(KineticControlScrollType.Vertical, new KineticControlsSetting
        {
            PrimaryTextFontGdi   = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, true),
            SecondaryTextFontGdi = FontCache.CreateFont("Tahoma", 11, FontStyle.Regular, true),
            ThirdTextFontGdi     = FontCache.CreateFont("Tahoma", 11, FontStyle.Regular, true),

            TextPixMargin = 0,

            ListItemPixSize = 10,
        })
        {
            //
        }
示例#6
0
        protected override List <NativeItemData> BuildNativeControlItems()
        {
            List <NativeItemData> result = new List <NativeItemData>();

            foreach (SettingsListViewItems element in Items)
            {
                ExNativeItemData item = null;

                if (element.OptionType == SettingsKineticControlOptionType.CheckBox)
                {
                    item = new CheckBoxNativeItemData();
                    ((CheckBoxNativeItemData)item).CheckBoxEmpty    = MasterForm.SkinManager.GetImage("SettingsUnchecked");
                    ((CheckBoxNativeItemData)item).CheckBoxSelected = MasterForm.SkinManager.GetImage("SettingsChecked");
                }
                else if (element.OptionType == SettingsKineticControlOptionType.MultiValue)
                {
                    item = new MultiItemsNativeItemData();
                    ((MultiItemsNativeItemData)item).SelectButton = MasterForm.SkinManager.GetImage("SettingsEnum");
                    item.Font = Settings.SecondaryTextFontGdi;
                    ((MultiItemsNativeItemData)item).Select += (EventHandler)element.Tag;
                }
                else if (element.OptionType == SettingsKineticControlOptionType.TwoButtonValue)
                {
                    item = new TwoItemsNativeItemData();
                    ((TwoItemsNativeItemData)item).ItemLeft          = MasterForm.SkinManager.GetImage(/*"LeftDeselectedSettingButton"*/ "ButtonOther");
                    ((TwoItemsNativeItemData)item).ItemLeftSelected  = MasterForm.SkinManager.GetImage(/*"LeftSelectedSettingButton"*/ "ButtonOther");
                    ((TwoItemsNativeItemData)item).ItemRight         = MasterForm.SkinManager.GetImage(/*"RightDeselectedSettingButton"*/ "ButtonOther");
                    ((TwoItemsNativeItemData)item).ItemRightSelected = MasterForm.SkinManager.GetImage(/*"RightSelectedSettingButton"*/ "ButtonOther");
                    item.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold, true);
                }

                if (item != null)
                {
                    item.InfoLeftIndents    = new int[1];
                    item.InfoTopIndents     = new int[1];
                    item.InfoLeftIndents[0] = UISettings.CalcPix(10);
                    item.InfoTopIndents[0]  = UISettings.CalcPix(10);

                    item.WorkAreaWidth = UISettings.CalcPix(100);
                    item.PrimaryText   = element.OptionName;
                    item.DataSource    = element;
                    item.Group         = element.GroupName;
                    result.Add(item);
                }
            }

            return(result);
        }
        //

        #endregion

        #region Constructors

        public FriendsListKineticListView()
            : base(KineticControlScrollType.Vertical, new KineticControlsSetting
        {
            PrimaryTextFontGdi   = FontCache.CreateFont("Tahoma", 13, FontStyle.Bold, true),
            SecondaryTextFontGdi = FontCache.CreateFont("Tahoma", 13, FontStyle.Regular, true),
            ThirdTextFontGdi     = FontCache.CreateFont("Tahoma", 11, FontStyle.Regular, true),
            GroupFont            = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true),

            TextPixMargin = 0,

            ListItemPixSize = 50,

            GroupPixTopMargin = 0,

            GroupPixHeight = 16
        })
        {
            ShowGroupHeader = true;

            EnableLongPress = true;
        }
示例#8
0
        public ImageDetailedKineticListView()
            : base(KineticControlScrollType.Vertical, new KineticControlsSetting
        {
            //PrimaryTextFontGdi = FontCache.CreateFont("Calibri", 12, FontStyle.Bold, true),
            //SecondaryTextFontGdi = FontCache.CreateFont("Calibri", 11, FontStyle.Regular, true),
            //ThirdTextFontGdi = FontCache.CreateFont("Calibri", 11, FontStyle.Regular, true),

            TextPixMargin = 0,

            ListItemPixSize = 10,
        })
        {
            ShowGroupHeader = true;
            ShowScrollbar   = true;

            _priFont = FontCache.CreateFont("Calibri", 12, FontStyle.Bold, true);
            _secFont = FontCache.CreateFont("Calibri", 11, FontStyle.Regular, true);

            //            PrimaryTextFontGdi = FontCache.CreateFont("Calibri", 12, FontStyle.Bold, true),
            //SecondaryTextFontGdi = FontCache.CreateFont("Calibri", 11, FontStyle.Regular, true),
            //ThirdTextFontGdi = FontCache.CreateFont("Calibri", 11, FontStyle.Regular, true),
        }
示例#9
0
        //

        #endregion

        #region Constructors

        public StatusHistoryKineticList()
            : base(KineticControlScrollType.Vertical, new KineticControlsSetting
        {
            PrimaryTextFontGdi   = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, true),
            SecondaryTextFontGdi = FontCache.CreateFont("Tahoma", 11, FontStyle.Regular, true),
            ThirdTextFontGdi     = FontCache.CreateFont("Tahoma", 11, FontStyle.Regular, true),
            GroupFont            = FontCache.CreateFont("Tahoma", 12, FontStyle.Regular, true),

            TextPixMargin = 0,

            ListItemPixSize = 0,

            GroupPixTopMargin = 0,

            GroupPixHeight = 16,

            SecondaryTextLinesCount = 0
        })
        {
            ShowGroupHeader = true;

            EnableLongPress = true;
        }
        /// <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;
        }
示例#11
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolBar          = new BottomToolBar();
            extraKineticListView  = new ExtraKineticListView();
            this.header           = new GraphicsImage();
            this.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(headerText.Width, headerText.Height);
            this.headerText.Font                    = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, true);
            this.headerText.ForeColor               = Color.White;
            this.headerText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerText.HorizontalTextAlignment = HorizontalAlignment.Center;
            //FIXME
            this.headerText.Text = Resources.ExtraView_Text;
            //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(headerText.Width, headerText.Height);
            this.headerShadowText.Font                    = FontCache.CreateFont("Tahoma", 12, FontStyle.Bold, true);
            this.headerShadowText.ForeColor               = Color.FromArgb(80, 80, 80);
            this.headerShadowText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = HorizontalAlignment.Center;
            //FIXME
            this.headerShadowText.Text = Resources.ExtraView_Text;
            //this.headerShadowText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

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

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

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

            this.Controls.Add(extraKineticListView);

            //
            // ExtraView
            //
            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.Resize += new EventHandler(ExtraViewResize);

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

            this.headerShadowText.Location = new Point(this.headerShadowText.Location.X - 1,
                                                       this.headerShadowText.Location.Y - 1);
            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);
        }
        /// <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;
        }
示例#14
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.buttonRefresh         = new UIButton(ButtonStyle.AlphaChannel);
            this.toolBar               = new BottomToolBar();
            this.pictureAvatar         = new GraphicsImage();
            this.labelName             = new UILabel();
            this.status                = new StatusControl();
            this.timerRefreshEvent     = new System.Windows.Forms.Timer();
            this.eventsListViewFriends = new EventsKineticListView();

            this.SuspendLayout();

            //this.labelFirstName = new UILabel();
            //this.labelLastName = new UILabel();

            //this.labelFriendsTitle = new UILabel();
            //this.labelMessagesTitle = new UILabel();
            //this.labelCommentsTitle = new UILabel();
            //this.labelFriendsNewsTitle = new UILabel();
            //this.labelFriendsPhotosTitle = new UILabel();
            //this.labelWallMessagesTitle = new UILabel();
            //this.labelFriends = new UILabel();
            //this.labelMessages = new UILabel();
            //this.labelComments = new UILabel();
            //this.labelFriendsNews = new UILabel();
            //this.labelFriendsPhotos = new UILabel();
            //this.labelWallMessages = new UILabel();

            //this.pictureMessages = new GraphicsImage();
            //this.pictureComments = new GraphicsImage();
            //this.pictureFriends = new GraphicsImage();
            //this.pictureFriendsNews = new GraphicsImage();
            //this.pictureFriendsPhotos = new GraphicsImage();
            //this.pictureWallMessages = new GraphicsImage();

            //this.labelBirthday = new UILabel();
            //this.labelSex = new UILabel();
            //this.labelTown = new UILabel();
            //this.labelMobilePhone = new UILabel();

            //this.buttonStartNotificator = new UIButton(ButtonStyle.AlphaChannel);
            //this.buttonStopNotificator = new UIButton(ButtonStyle.AlphaChannel);

            this.buttonUploadPhoto = new UIButton(ButtonStyle.AlphaChannel);

            //
            // 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.BackColor           = Color.White;
            this.Resize += new EventHandler(FormResize);

            //
            // pictureAvatar
            //
            this.pictureAvatar.Location = new System.Drawing.Point(5, 41);
            this.pictureAvatar.Name     = "pictureAvatar";
            this.pictureAvatar.Size     = new System.Drawing.Size(50, 50);
            this.pictureAvatar.Anchor   = AnchorStyles.Top | AnchorStyles.Left;

            ////
            //// labelFirstName
            ////
            //this.labelFirstName.Location = new System.Drawing.Point(110, 5);
            //this.labelFirstName.Name = "labelFirstName";
            //this.labelFirstName.Size = new System.Drawing.Size(150, 20);
            ////
            //// labelLastName
            ////
            //this.labelLastName.Location = new System.Drawing.Point(110, 20);
            //this.labelLastName.Name = "labelLastName";
            //this.labelLastName.Size = new System.Drawing.Size(75, 20);

            //
            // labelName
            //
            this.labelName.Location  = new System.Drawing.Point(62, 38);
            this.labelName.Name      = "labelName";
            this.labelName.Size      = new System.Drawing.Size(175, 18);
            this.labelName.Font      = FontCache.CreateFont("Tahoma", 13, FontStyle.Bold);
            this.labelName.BackColor = Color.White;
            this.labelName.HorizontalTextAlignment = HorizontalAlignment.Stretch;
            this.labelName.Anchor = AnchorStyles.Top | AnchorStyles.Left;

            ////
            //// labelBirthday
            ////
            //this.labelBirthday.Location = new System.Drawing.Point(110, 35);
            //this.labelBirthday.Name = "labelBirthday";
            //this.labelBirthday.Size = new System.Drawing.Size(100, 20);
            //this.labelBirthday.Text = "День рожд.: ";
            ////
            //// labelSex
            ////
            //this.labelSex.Location = new System.Drawing.Point(110, 50);
            //this.labelSex.Name = "labelSex";
            //this.labelSex.Size = new System.Drawing.Size(60, 20);
            //this.labelSex.Text = "Пол: ";
            ////
            //// labelTown
            ////
            //this.labelTown.Location = new System.Drawing.Point(110, 65);
            //this.labelTown.Name = "labelTown";
            //this.labelTown.Size = new System.Drawing.Size(60, 20);
            //this.labelTown.Text = "Город: ";
            ////
            //// labelMobilePhone
            ////
            //this.labelMobilePhone.Location = new System.Drawing.Point(110, 80);
            //this.labelMobilePhone.Name = "labelMobilePhone";
            //this.labelMobilePhone.Size = new System.Drawing.Size(100, 20);
            //this.labelMobilePhone.Text = "моб: ";

            //
            // textBoxStatus
            //
            this.status.Location          = new System.Drawing.Point(55, 59);
            this.status.Text              = string.Empty;
            this.status.TextSubstitute    = Resources.StatusControl_TextSubstitute;
            this.status.Size              = new Size(180, 32);
            this.status.Font              = FontCache.CreateFont("Tahoma", 11, FontStyle.Regular, true);
            this.status.FontColor         = Color.FromArgb(102, 80, 51);
            this.status.FontColorUnactive = Color.FromArgb(179, 168, 153);
            this.status.FontColorInvert   = Color.White;
            this.status.Anchor            = AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left;
            this.status.Click            += new EventHandler(StatusClick);

            #region комменты

            //#region labelMessages

            //this.pictureMessages.Location = new System.Drawing.Point(30, 132);
            //this.pictureMessages.Name = "pictureMessages";
            //this.pictureMessages.Size = new System.Drawing.Size(20, 20);
            //this.pictureMessages.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            //this.pictureMessages.AlphaChannelImage = MasterForm.SkinManager.GetImage("MessageGrey");

            //this.labelMessages.Location = new System.Drawing.Point(30, 130);
            //this.labelMessages.Name = "labelMessages";
            //this.labelMessages.Size = new System.Drawing.Size(34, 20);
            //this.labelMessages.Text = "0";

            //this.labelMessagesTitle.Location = new System.Drawing.Point(50, 130);
            //this.labelMessagesTitle.Name = "labelMessagesTitle";
            //this.labelMessagesTitle.Size = new System.Drawing.Size(150, 20);
            //this.labelMessagesTitle.Text = "Личных сообщений";

            //#endregion

            //#region labelComments

            //this.pictureComments.Location = new System.Drawing.Point(30, 147);
            //this.pictureComments.Name = "pictureComments";
            //this.pictureComments.Size = new System.Drawing.Size(20, 20);
            //this.pictureComments.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            //this.pictureComments.AlphaChannelImage = MasterForm.SkinManager.GetImage("MessageGrey");

            //this.labelComments.Location = new System.Drawing.Point(30, 145);
            //this.labelComments.Name = "labelComments";
            //this.labelComments.Size = new System.Drawing.Size(34, 20);
            //this.labelComments.Text = "0";

            //this.labelCommentsTitle.Location = new System.Drawing.Point(50, 145);
            //this.labelCommentsTitle.Name = "labelCommentsTitle";
            //this.labelCommentsTitle.Size = new System.Drawing.Size(150, 20);
            //this.labelCommentsTitle.Text = "Коментариев";

            //#endregion

            //#region labelFriends

            //this.pictureFriends.Location = new System.Drawing.Point(30, 162);
            //this.pictureFriends.Name = "pictureFriends";
            //this.pictureFriends.Size = new System.Drawing.Size(20, 20);
            //this.pictureFriends.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            //this.pictureFriends.AlphaChannelImage = MasterForm.SkinManager.GetImage("MessageGrey");

            //this.labelFriends.Location = new System.Drawing.Point(30, 160);
            //this.labelFriends.Name = "labelFriends";
            //this.labelFriends.Size = new System.Drawing.Size(34, 20);
            //this.labelFriends.Text = "0";

            //this.labelFriendsTitle.Location = new System.Drawing.Point(50, 160);
            //this.labelFriendsTitle.Name = "labelFriendsTitle";
            //this.labelFriendsTitle.Size = new System.Drawing.Size(150, 20);
            //this.labelFriendsTitle.Text = "Приглашений дружить";

            //#endregion

            //#region labelFriendsNews

            //this.pictureFriendsNews.Location = new System.Drawing.Point(30, 177);
            //this.pictureFriendsNews.Name = "pictureFriendsNews";
            //this.pictureFriendsNews.Size = new System.Drawing.Size(20, 20);
            //this.pictureFriendsNews.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            //this.pictureFriendsNews.AlphaChannelImage = MasterForm.SkinManager.GetImage("MessageGrey");

            //this.labelFriendsNews.Location = new System.Drawing.Point(30, 175);
            //this.labelFriendsNews.Name = "labelFriendsNews";
            //this.labelFriendsNews.Size = new System.Drawing.Size(34, 20);
            //this.labelFriendsNews.Text = "0";

            //this.labelFriendsNewsTitle.Location = new System.Drawing.Point(50, 175);
            //this.labelFriendsNewsTitle.Name = "labelFriendsNewsTitle";
            //this.labelFriendsNewsTitle.Size = new System.Drawing.Size(150, 20);
            //this.labelFriendsNewsTitle.Text = "Новостей";

            //#endregion

            //#region labelFriendsPhotos

            //this.pictureFriendsPhotos.Location = new System.Drawing.Point(30, 192);
            //this.pictureFriendsPhotos.Name = "pictureFriendsPhotos";
            //this.pictureFriendsPhotos.Size = new System.Drawing.Size(20, 20);
            //this.pictureFriendsPhotos.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            //this.pictureFriendsPhotos.AlphaChannelImage = MasterForm.SkinManager.GetImage("MessageGrey");

            //this.labelFriendsPhotos.Location = new System.Drawing.Point(30, 190);
            //this.labelFriendsPhotos.Name = "labelFriendsPhotos";
            //this.labelFriendsPhotos.Size = new System.Drawing.Size(34, 20);
            //this.labelFriendsPhotos.Text = "0";

            //this.labelFriendsPhotosTitle.Location = new System.Drawing.Point(50, 190);
            //this.labelFriendsPhotosTitle.Name = "labelFriendsPhotosTitle";
            //this.labelFriendsPhotosTitle.Size = new System.Drawing.Size(150, 20);
            //this.labelFriendsPhotosTitle.Text = "Фотографий друзей";

            //#endregion

            //#region labelWallMessages

            //this.pictureWallMessages.Location = new System.Drawing.Point(30, 207);
            //this.pictureWallMessages.Name = "pictureWallMessages";
            //this.pictureWallMessages.Size = new System.Drawing.Size(20, 20);
            //this.pictureWallMessages.Anchor = AnchorStyles.Top | AnchorStyles.Left;
            //this.pictureWallMessages.AlphaChannelImage = MasterForm.SkinManager.GetImage("MessageGrey");

            //this.labelWallMessages.Location = new System.Drawing.Point(30, 205);
            //this.labelWallMessages.Name = "labelWallMessages";
            //this.labelWallMessages.Size = new System.Drawing.Size(34, 20);
            //this.labelWallMessages.Text = "0";

            //this.labelWallMessagesTitle.Location = new System.Drawing.Point(50, 205);
            //this.labelWallMessagesTitle.Name = "labelWallMessagesTitle";
            //this.labelWallMessagesTitle.Size = new System.Drawing.Size(150, 20);
            //this.labelWallMessagesTitle.Text = "Сообщений на стене";

            //#endregion

            #endregion

            //
            // buttonRefresh
            //
            buttonRefresh.Location = new Point(194, 0);
            buttonRefresh.Name     = "buttonRefresh";
            buttonRefresh.Anchor   = AnchorStyles.Right | AnchorStyles.Top;
            buttonRefresh.Click   += new System.EventHandler(buttonRefresh_Click);

            //
            //buttonUploadPhoto
            //
            buttonUploadPhoto.Location = new Point(0, 0);
            buttonUploadPhoto.Name     = "buttonUploadPhoto";
            buttonUploadPhoto.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            buttonUploadPhoto.Click   += new EventHandler(buttonUploadPhoto_Click);

            //
            // eventsListViewFriends
            //
            this.eventsListViewFriends.Anchor       = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom;
            this.eventsListViewFriends.Location     = new System.Drawing.Point(1, 95);
            this.eventsListViewFriends.BackColor    = Color.White;
            this.eventsListViewFriends.ScrollAction = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            this.eventsListViewFriends.Name         = "eventsListViewFriends";

            //FIXME
            if (UISettings.ScreenDPI == 128)
            {
                this.eventsListViewFriends.Size = new System.Drawing.Size(233, 133);
            }
            else
            {
                this.eventsListViewFriends.Size = new System.Drawing.Size(233, 134);
            }

            //this.eventsListViewFriends.TabIndex = 2;

            //
            // timerRefreshEvent
            //
            this.timerRefreshEvent.Interval = 5000;
            this.timerRefreshEvent.Tick    += new EventHandler(timerRefreshEvent_Tick);
            this.timerRefreshEvent.Enabled  = true;

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

            //buttonMain.Click += new EventHandler(buttonMain_Click);
            //

            //
            // MainView
            //
            this.Canvas.Children.Add(buttonRefresh);
            //this.Canvas.Children.Add(buttonStartNotificator);
            //this.Canvas.Children.Add(buttonStopNotificator);
            this.Canvas.Children.Add(buttonUploadPhoto);
            this.Canvas.Children.Add(toolBar);
            this.Canvas.Children.Add(pictureAvatar);
            //this.Canvas.Children.Add(labelFirstName);
            //this.Canvas.Children.Add(labelLastName);
            this.Canvas.Children.Add(labelName);
            this.Canvas.Children.Add(status);

            //this.Canvas.Children.Add(pictureMessages);
            //this.Canvas.Children.Add(pictureComments);
            //this.Canvas.Children.Add(pictureFriends);
            //this.Canvas.Children.Add(pictureFriendsPhotos);
            //this.Canvas.Children.Add(pictureFriendsNews);
            //this.Canvas.Children.Add(pictureWallMessages);
            //this.Canvas.Children.Add(labelFriendsTitle);
            //this.Canvas.Children.Add(labelMessagesTitle);
            //this.Canvas.Children.Add(labelCommentsTitle);
            //this.Canvas.Children.Add(labelFriendsNewsTitle);
            //this.Canvas.Children.Add(labelFriendsPhotosTitle);
            //this.Canvas.Children.Add(labelWallMessagesTitle);
            //this.Canvas.Children.Add(labelFriends);
            //this.Canvas.Children.Add(labelMessages);
            //this.Canvas.Children.Add(labelComments);
            //this.Canvas.Children.Add(labelFriendsNews);
            //this.Canvas.Children.Add(labelFriendsPhotos);
            //this.Canvas.Children.Add(labelWallMessages);

            //this.Canvas.Children.Add(labelBirthday);
            //this.Canvas.Children.Add(labelSex);
            //this.Canvas.Children.Add(labelTown);
            //this.Canvas.Children.Add(labelMobilePhone);

            this.Controls.Add(eventsListViewFriends);

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

            this.FirstRenderComplete += new EventHandler(MainView_FirstRenderComplete);

            buttonRefresh.TransparentButton            = MasterForm.SkinManager.GetImage("ButtonOther");
            buttonRefresh.TransparentButtonPressed     = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            buttonUploadPhoto.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            buttonUploadPhoto.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");

            buttonRefresh.Text     = "Обновить";                                               // del
            buttonRefresh.Size     = new Size(UISettings.CalcPix(46), UISettings.CalcPix(37)); // del
            buttonUploadPhoto.Text = "Загр. фото";                                             // del
            buttonUploadPhoto.Size = new Size(UISettings.CalcPix(46), UISettings.CalcPix(37)); // del
        }
示例#15
0
        protected override void DrawItemOn(Gdi g, NativeItemData nativeitem, Rectangle rItem, int nItem)
        {
            var item = (NativeItemDataMm)nativeitem;

            bool isSelected = ShowSelectedItem ? nItem == _SelectedIndex : false;

            DrawItemBackgroundOn(g, item, rItem, nItem, isSelected);

            if (nItem == 0)
            {
                rItem = new Rectangle(rItem.Left, rItem.Top + UISettings.CalcPix(5), rItem.Width, rItem.Height - UISettings.CalcPix(10));
            }
            else
            {
                rItem = new Rectangle(rItem.Left, rItem.Top, rItem.Width, rItem.Height - UISettings.CalcPix(5));
            }

            int iconMargin = UISettings.CalcPix(15);
            int iconX      = rItem.Left + iconMargin;

            // draw icon

            /*
             * if (item.Icon != null)
             * {
             *  ImageInfo iinfo;
             *  item.Icon.GetImageInfo(out iinfo);
             *  int iconY = rItem.Top + (rItem.Height - (int) iinfo.Height)/2;
             *
             *  if (item.PrimaryImage == null || isSelected)
             *  {
             *      g.DrawImageAlphaChannel(item.Icon, iconX, iconY);
             *
             *      if (item.PrimaryImage == null & iconY > 0)
             *      {
             *          item.PrimaryImage = new Bitmap((int) iinfo.Width, (int) iinfo.Height);
             *          g.CopyImageTo(item.PrimaryImage, 0, 0, Settings.PrimaryIconPixWidth,
             *                        Settings.PrimaryIconPixHeight, iconX, iconY);
             *      }
             *  }
             *  else
             *  {
             *      g.DrawImage(item.PrimaryImage, iconX, iconY);
             *  }
             * }
             */

            if (!String.IsNullOrEmpty(item.PrimaryText))
            {
                g.Font = FontCache.CreateFont("Tahoma", 16, FontStyle.Regular, true);
                if (isSelected)
                {
                    g.TextColor = Color.FromArgb(255, 255, 255);
                }
                else
                {
                    g.TextColor = Color.FromArgb(119, 126, 93);
                }

                g.TextAlign = Win32.TextAlign.TA_LEFT;
                Size textSize = g.GetTextExtent(item.PrimaryText);

                g.ExtTextOut(rItem.Left + (rItem.Width - textSize.Width) / 2, rItem.Top + (rItem.Height - textSize.Height) / 2, item.PrimaryText);
            }
        }
示例#16
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu        = new System.Windows.Forms.MainMenu();
            this.menuItemBack    = new System.Windows.Forms.MenuItem();
            this.menuItemActions = new System.Windows.Forms.MenuItem();
            this.menuItemAdd     = new System.Windows.Forms.MenuItem();
            this.menuItemSupport = new System.Windows.Forms.MenuItem();

            //this.header = new GraphicsImage();
            this.giLogo         = new GraphicsImage();
            this.giGlassoftLogo = new ClickableGraphicsImage();

            //this.lblTitle = new UILabel(Resources.AboutView_lblApplicationTitle_Text);
            this.lblVersion       = new UILabel();
            this.lblVersionShadow = new UILabel();
            //this.lblMadeBy = new UILabel(Resources.AboutView_MadeBy);
            //this.lblButtonSubstitue = new UILabel(Resources.ApplicationUpdate_Message_AlreadyInstall);
            this.lblButtonSubstitue = new UILabel();

            //this.lblVersionDescription = new MLLabel();

            //this.buttonCheckOrUploadUpdate = new UploadPhotoControl();

            this.SuspendLayout();

            //
            // AboutForm
            //
            this.Name = "AboutForm";
            this.Size = new Size(240, 268);
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
            this.Dock      = DockStyle.Fill;
            this.BackColor = Color.White;
            this.Resize   += new EventHandler(FormResize);

            //
            // mainMenu
            //
            this.mainMenu.MenuItems.Add(this.menuItemBack);
            this.mainMenu.MenuItems.Add(this.menuItemAdd);

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

            //
            // giLogo
            //
            this.giLogo.Name     = "giLogo";
            this.giLogo.Location = new Point(98, 45);

            //
            // giGlassoftLogo
            //
            this.giGlassoftLogo.Name     = "giGlassoftLogo";
            this.giGlassoftLogo.Location = new Point(108, 230);
            this.giGlassoftLogo.Click   += new EventHandler(GlassoftLogo_Click);

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

            //
            // menuItemAdd
            //
            this.menuItemAdd.Text = Resources.AboutView_MenuItem_Add;
            this.menuItemAdd.MenuItems.Add(menuItemSupport);
            this.menuItemAdd.MenuItems.Add(menuItemActions);

            //
            // menuItemSupport
            //
            this.menuItemSupport.Text   = Resources.AboutView_MenuItem_Support;
            this.menuItemSupport.Click += new EventHandler(GlassoftLogo_Click);

            //
            // menuItemActions
            //
            this.menuItemActions.Text   = Resources.AboutView_CheckUpdateButton;
            this.menuItemActions.Click += new EventHandler(menuItemActions_Check_Click);
            //this.menuItemActions.Enabled = false;

            ////
            ////upcUploadPhoto
            ////
            //buttonCheckOrUploadUpdate.Location = new System.Drawing.Point(5, 95);
            //buttonCheckOrUploadUpdate.Size = new System.Drawing.Size(225, 32);
            //buttonCheckOrUploadUpdate.Text = Resources.AboutView_CheckUpdateButton;
            //buttonCheckOrUploadUpdate.Name = "buttonCheckUpdate";
            //buttonCheckOrUploadUpdate.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            //buttonCheckOrUploadUpdate.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            //buttonCheckOrUploadUpdate.PressedFont = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            //buttonCheckOrUploadUpdate.FontColor = Color.FromArgb(129, 129, 129);
            //buttonCheckOrUploadUpdate.FontColorShadow = Color.FromArgb(223, 223, 223);
            //buttonCheckOrUploadUpdate.DropShadow = true;
            //buttonCheckOrUploadUpdate.Click += new EventHandler(buttonCheckUpdate_Click);

            //lblTitle.Name = "lblTitle";
            //lblTitle.Location = new Point(15, 50);
            //lblTitle.Size = new Size(215, 15);
            //lblTitle.HorizontalTextAlignment = HorizontalAlignment.Center;
            //lblTitle.VerticalAlignment = VerticalAlignment.Center;
            //lblTitle.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold);
            //lblTitle.ForeColor = Color.FromArgb(50, 50, 50);
            //lblTitle.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

            lblVersion.Name     = "lblVersion";
            lblVersion.Location = new Point(15, 125);
            lblVersion.Size     = new Size(215, 15);
            lblVersion.HorizontalTextAlignment = HorizontalAlignment.Center;
            lblVersion.Font      = FontCache.CreateFont("Tahoma", 20, FontStyle.Bold);
            lblVersion.ForeColor = Color.White;
            lblVersion.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

            lblVersionShadow.Name     = "lblVersionShadow";
            lblVersionShadow.Location = new Point(15, 125);
            lblVersionShadow.Size     = new Size(215, 15);
            lblVersionShadow.HorizontalTextAlignment = HorizontalAlignment.Center;
            lblVersionShadow.Font      = FontCache.CreateFont("Tahoma", 20, FontStyle.Bold);
            lblVersionShadow.ForeColor = Color.Black;
            lblVersionShadow.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

            lblButtonSubstitue.Name     = "lblButtonSubstitue";
            lblButtonSubstitue.Location = new Point(15, 145);
            lblButtonSubstitue.Size     = new Size(215, 30);
            lblButtonSubstitue.HorizontalTextAlignment = HorizontalAlignment.Center;
            lblButtonSubstitue.VerticalAlignment       = VerticalAlignment.Center;
            lblButtonSubstitue.Font      = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            lblButtonSubstitue.ForeColor = Color.White;
            lblButtonSubstitue.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            lblButtonSubstitue.Visible   = false;

            //lblMadeBy.Name = "lblMadeBy";
            //lblMadeBy.Location = new Point(15, 235);
            //lblMadeBy.Size = new Size(105, 18);
            //lblMadeBy.HorizontalTextAlignment = HorizontalAlignment.Right;
            //lblMadeBy.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            //lblMadeBy.ForeColor = Color.FromArgb(69, 68, 68);
            //lblMadeBy.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;

            //lblVersionDescription.Name = "lblVersionDescription";
            //lblVersionDescription.Location = new Point(15, 140);
            //lblVersionDescription.Size = new Size(215, 80);
            //lblVersionDescription.Font = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            //lblVersionDescription.FontColor = Color.FromArgb(69, 68, 68);
            //lblVersionDescription.VerticalTextAlignment = VerticalAlignment.Top;
            //lblVersionDescription.HorizontalTextAlignment = HorizontalAlignment.Left;
            //lblVersionDescription.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;

            //this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(giLogo);
            //this.Canvas.Children.Add(lblTitle);
            this.Canvas.Children.Add(lblVersionShadow);
            this.Canvas.Children.Add(lblVersion);
            this.Canvas.Children.Add(lblButtonSubstitue);
            //this.Canvas.Children.Add(lblMadeBy);
            this.Canvas.Children.Add(giGlassoftLogo);
            //this.Canvas.Children.Add(buttonCheckOrUploadUpdate);
            //this.Canvas.Children.Add(lblVersionDescription);

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

            //this.header.AlphaChannelImage = MasterForm.SkinManager.GetImage("bdTop");
            this.giLogo.AlphaChannelImage         = MasterForm.SkinManager.GetImage("AboutLogo");
            this.giGlassoftLogo.AlphaChannelImage = MasterForm.SkinManager.GetImage("LogoGalsSoft");

            lblVersionShadow.Top += UISettings.CalcPix(1);

            //mainMenu = new System.Windows.Forms.MainMenu();
            //menuItemBack = new System.Windows.Forms.MenuItem();
            //menuItemUpdate = new System.Windows.Forms.MenuItem();

            //this.buttonUpdate = new UIButton(ButtonStyle.AlphaChannel);
            //this.btnBack = new UIButton(ButtonStyle.AlphaChannel);
            //this.btnFotoUpload = new UIButton(ButtonStyle.AlphaChannel);
            //this.lblVersion = new UILabel(Resources.LoginView_Caption_Login);
            ////this.lblNewVersion = new UILabel(Resources.LoginView_Caption_Login);
            ////this.lblNewVersionDescription = new UILabel(Resources.LoginView_Caption_Login);
            ////this.lblNewVersion = new UILabel();
            ////this.lblNewVersionDescription = new UILabel();
            //lblNewVersion = new UILabel();
            //lblNewVerDescription = new UILabel();
            //lblTitle = new UILabel();
            //lblVersionIsMandatory = new UILabel();
            //giLogo = new GraphicsImage();

            ////
            //// AboutForm
            ////
            //this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            //this.Name = "AboutForm";
            ////this.ClientSize = new System.Drawing.Size(240, 268);
            //this.Size = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, 268);

            ////
            //// mainMenu
            ////
            //this.mainMenu.MenuItems.Add(this.menuItemBack);
            //this.mainMenu.MenuItems.Add(this.menuItemUpdate);

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

            ////
            //// menuItemUpdate
            ////
            //this.menuItemUpdate.Text = Resources.StatusUpdatesList_Designer_btnRefresh_Text;
            //this.menuItemUpdate.Click += new System.EventHandler(menuItemUpdate_Click);

            ////
            //// lblPassword
            ////

            //giLogo.Location = new System.Drawing.Point(this.Width / 2 - 100, 40);
            //giLogo.Name = "giLogo";
            //giLogo.Size = new System.Drawing.Size(89, 101);
            //giLogo.Anchor = AnchorStyles.Top;

            //lblTitle.Name = "lbl3";
            //lblTitle.Location = new Point(0, 105);
            //lblTitle.Size = new Size(this.Width, 20);
            //lblTitle.Text = Resources.AboutView_lblApplicationTitle_Text;
            //lblTitle.HorizontalTextAlignment = HorizontalAlignment.Center;
            //lblTitle.Font = FontCache.CreateFont("Comic Sans", 16, FontStyle.Bold, true);
            //lblTitle.Anchor = AnchorStyles.Top;

            //lblVersion.Name = "lblPassword";
            //lblVersion.Location = new Point(10, 120);
            //lblVersion.Size = new Size(this.Width - 20, 20);
            //lblVersion.HorizontalTextAlignment = HorizontalAlignment.Right;
            //lblVersion.Anchor = AnchorStyles.Top;

            //lblNewVersion.Name = "lbl1";
            //lblNewVersion.Location = new Point(10, 135);
            //lblNewVersion.Size = new Size(this.Width - 20, 20);
            //lblNewVersion.Anchor = AnchorStyles.Top;

            //lblNewVerDescription.Name = "lbl2";
            //lblNewVerDescription.Location = new Point(20, 155);
            //lblNewVerDescription.Size = new Size(this.Width - 30, 50);
            //lblNewVerDescription.Multiline = true;
            //lblNewVerDescription.HorizontalTextAlignment = HorizontalAlignment.Stretch;
            //lblNewVerDescription.Anchor = AnchorStyles.Top;

            //lblVersionIsMandatory.Name = "lbl4";
            //lblVersionIsMandatory.Location = new Point(10, 200);
            //lblVersionIsMandatory.Size = new Size(this.Width - 20, 20);
            //lblVersionIsMandatory.Text = Resources.AboutView_lblVersionIsMandatory_Text;
            //lblVersionIsMandatory.Anchor = AnchorStyles.Top;
            //lblVersionIsMandatory.Visible = false;

            //this.Canvas.Children.Add(buttonUpdate);
            //this.Canvas.Children.Add(btnBack);
            //this.Canvas.Children.Add(lblVersion);
            ////this.Canvas.Children.Add(btnFotoUpload);

            //Canvas.Children.Add(lblNewVersion);
            //Canvas.Children.Add(lblNewVerDescription);
            //Canvas.Children.Add(lblTitle);
            //Canvas.Children.Add(lblVersionIsMandatory);
            //Canvas.Children.Add(giLogo);


            ////this.Canvas.Children.Add(lblNewVersion);
            ////this.Canvas.Children.Add(lblNewVersionDescription);

            //this.ResumeLayout(false);
        }
示例#17
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolBar = new BottomToolBar();

            this.btnLoadPhotoFromDisk           = new UIButton(ButtonStyle.AlphaChannel);
            this.btnSnapPhotoWithinCamera       = new UIButton(ButtonStyle.AlphaChannel);
            this.btnRotareImageCounterclockwise = new UIButton(ButtonStyle.AlphaChannel);
            this.btnRotareImageClockwise        = new UIButton(ButtonStyle.AlphaChannel);

            this.upcUploadPhotoMobile = new UploadPhotoControl();
            this.upcUploadPhotoMain   = new UploadPhotoControl();
            this.cmcPhotoDescription  = new CommentControl();

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

            this.giHeader = new GraphicsImage();

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

            this.SuspendLayout();

            //
            // MainForm
            //
            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.Dock    = System.Windows.Forms.DockStyle.Fill;
            this.Resize += new EventHandler(FormResize);

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

            //
            //photoPreview // наша превьюха
            //
            giPhotoPreview.Location = new System.Drawing.Point(47, 50);
            giPhotoPreview.Name     = "giPhotoPreview";
            giPhotoPreview.Size     = new System.Drawing.Size(146, 74);

            //
            //photoBedding // ее фон
            //
            giPhotoBedding.Location = new System.Drawing.Point(42, 45);
            giPhotoBedding.Name     = "giPhotoBedding";
            giPhotoBedding.Size     = new System.Drawing.Size(156, 84);

            //
            // lblVoidPhoto // пустышка-текст
            //
            lblVoidPhoto.Location                = new System.Drawing.Point(42, 45);
            lblVoidPhoto.Size                    = new System.Drawing.Size(156, 84);
            lblVoidPhoto.Font                    = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            lblVoidPhoto.FontColor               = Color.FromArgb(129, 129, 129);
            lblVoidPhoto.FontColorShadow         = Color.FromArgb(223, 223, 223);
            lblVoidPhoto.Text                    = Resources.UploadPhotoView_VoidPhotoLabel;
            lblVoidPhoto.HorizontalTextAlignment = HorizontalAlignment.Center;
            lblVoidPhoto.VerticalTextAlignment   = VerticalAlignment.Center;
            lblVoidPhoto.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            lblVoidPhoto.DropShadow              = true;

            //
            // btnLoadFromDisk
            //
            btnLoadPhotoFromDisk.Location = new System.Drawing.Point(0, 0);
            btnLoadPhotoFromDisk.Size     = new Size(50, 37);
            btnLoadPhotoFromDisk.Name     = "btnLoadPhotoFromDisk";
            btnLoadPhotoFromDisk.Anchor   = AnchorStyles.Top | Components.UI.AnchorStyles.Left;
            btnLoadPhotoFromDisk.Text     = "Диск";
            btnLoadPhotoFromDisk.Click   += new EventHandler(btnLoadPhotoFromDisk_Click);

            //
            // btnSnapPhotoWithinCamera
            //
            btnSnapPhotoWithinCamera.Location = new System.Drawing.Point(190, 0);
            btnSnapPhotoWithinCamera.Size     = new Size(50, 37);
            btnSnapPhotoWithinCamera.Name     = "btnSnapPhotoWithinCamera";
            btnSnapPhotoWithinCamera.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            btnSnapPhotoWithinCamera.Text     = "Камера";
            btnSnapPhotoWithinCamera.Click   += new EventHandler(btnSnapPhotoWithinCamera_Click);

            //
            // btnRotareImageCounterclockwise
            //
            btnRotareImageCounterclockwise.Location = new System.Drawing.Point(5, 45);
            btnRotareImageCounterclockwise.Size     = new Size(32, 32);
            btnRotareImageCounterclockwise.Name     = "btnRotareImageCounterclockwise";
            btnRotareImageCounterclockwise.Anchor   = AnchorStyles.Left;
            btnRotareImageCounterclockwise.Text     = "CCW";
            btnRotareImageCounterclockwise.Click   += new EventHandler(btnRotareImageCounterclockwise_Click);

            //
            // btnRotareImageClockwise
            //
            btnRotareImageClockwise.Location = new System.Drawing.Point(203, 45);
            btnRotareImageClockwise.Size     = new Size(32, 32);
            btnRotareImageClockwise.Name     = "btnRotareImageClockwise";
            btnRotareImageClockwise.Anchor   = AnchorStyles.Right;
            btnRotareImageClockwise.Text     = "CW";
            btnRotareImageClockwise.Click   += new EventHandler(btnRotareImageClockwise_Click);

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

            //
            //HeaderText
            //
            this.headerText.Name                    = "headerText";
            this.headerText.Location                = new Point(50, 0);
            this.headerText.Size                    = new Size(140, 37);
            this.headerText.Font                    = FontCache.CreateFont("Tahoma", 19, FontStyle.Regular);
            this.headerText.ForeColor               = Color.White;
            this.headerText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerText.HorizontalTextAlignment = HorizontalAlignment.Center;
            this.headerText.Text                    = Resources.UploadPhotoView_Header;
            this.headerText.Anchor                  = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            //HeaderShadowText
            //
            this.headerShadowText.Name                    = "headerShadowText";
            this.headerShadowText.Location                = new Point(50, 0);
            this.headerShadowText.Size                    = new Size(140, 37);
            this.headerShadowText.Font                    = FontCache.CreateFont("Tahoma", 19, FontStyle.Regular);
            this.headerShadowText.ForeColor               = Color.Gray;
            this.headerShadowText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = HorizontalAlignment.Center;
            this.headerShadowText.Text                    = Resources.UploadPhotoView_Header;
            this.headerShadowText.Anchor                  = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            //cmcPhotoDescription
            //
            this.cmcPhotoDescription.Location          = new Point(5, 144);
            this.cmcPhotoDescription.Text              = string.Empty;
            this.cmcPhotoDescription.TextSubstitute    = Resources.CommentControl_TextSubstitute;
            this.cmcPhotoDescription.Size              = new Size(230, 32);
            this.cmcPhotoDescription.Font              = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true);
            this.cmcPhotoDescription.FontColor         = Color.FromArgb(119, 126, 93);
            this.cmcPhotoDescription.FontColorUnactive = Color.FromArgb(187, 191, 174);
            this.cmcPhotoDescription.FontColorInvert   = Color.White;
            this.cmcPhotoDescription.Anchor            = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
            this.cmcPhotoDescription.Click            += new EventHandler(cmcPhotoDescription_Click);

            //
            //upcUploadPhoto
            //
            this.upcUploadPhotoMobile.Location        = new System.Drawing.Point(5, 186);
            this.upcUploadPhotoMobile.Size            = new System.Drawing.Size(110, 32);
            this.upcUploadPhotoMobile.Text            = Resources.UploadPhoto_Designer_rbMobileAlbum_Text;
            this.upcUploadPhotoMobile.Font            = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true);
            this.upcUploadPhotoMobile.PressedFont     = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true);
            this.upcUploadPhotoMobile.FontColor       = Color.FromArgb(129, 129, 129);
            this.upcUploadPhotoMobile.FontColorShadow = Color.FromArgb(223, 223, 223);
            this.upcUploadPhotoMobile.DropShadow      = true;
            this.upcUploadPhotoMobile.Name            = "upcUploadPhoto";
            this.upcUploadPhotoMobile.Anchor          = AnchorStyles.Bottom;
            this.upcUploadPhotoMobile.Click          += new EventHandler(upcUploadPhotoMobile_Click);

            //
            //upcUploadPhotoMain
            //
            this.upcUploadPhotoMain.Location        = new System.Drawing.Point(125, 186);
            this.upcUploadPhotoMain.Size            = new System.Drawing.Size(110, 32);
            this.upcUploadPhotoMain.Text            = Resources.UploadPhoto_Designer_rbPrivateAlbum_Text;
            this.upcUploadPhotoMain.Font            = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true);
            this.upcUploadPhotoMain.PressedFont     = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true);
            this.upcUploadPhotoMain.FontColor       = Color.FromArgb(129, 129, 129);
            this.upcUploadPhotoMain.FontColorShadow = Color.FromArgb(223, 223, 223);
            this.upcUploadPhotoMain.DropShadow      = true;
            this.upcUploadPhotoMain.Name            = "upcUploadPhotoMain";
            this.upcUploadPhotoMain.Anchor          = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
            this.upcUploadPhotoMain.Click          += new EventHandler(upcUploadPhotoMain_Click);

            //
            //this
            //
            this.Canvas.Children.Add(giHeader);
            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);
            this.Canvas.Children.Add(giPhotoBedding);
            this.Canvas.Children.Add(giPhotoPreview);
            this.Canvas.Children.Add(btnLoadPhotoFromDisk);
            this.Canvas.Children.Add(btnSnapPhotoWithinCamera);
            this.Canvas.Children.Add(btnRotareImageClockwise);
            this.Canvas.Children.Add(btnRotareImageCounterclockwise);
            this.Canvas.Children.Add(upcUploadPhotoMobile);
            this.Canvas.Children.Add(upcUploadPhotoMain);
            this.Canvas.Children.Add(cmcPhotoDescription);
            this.Canvas.Children.Add(lblVoidPhoto);
            this.Canvas.Children.Add(toolBar);

            this.Canvas.RecalcDPIScaling();

            this.ResumeLayout(false);

            this.headerShadowText.Location = new Point(headerText.Left - UISettings.CalcPix(1), headerText.Top - UISettings.CalcPix(1));

            giHeader.AlphaChannelImage = MasterForm.SkinManager.GetImage("bdTop");

            btnLoadPhotoFromDisk.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            btnLoadPhotoFromDisk.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            btnLoadPhotoFromDisk.Size = new Size(UISettings.CalcPix(50), UISettings.CalcPix(37)); // del

            btnSnapPhotoWithinCamera.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            btnSnapPhotoWithinCamera.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            btnSnapPhotoWithinCamera.Size = new Size(UISettings.CalcPix(50), UISettings.CalcPix(37)); // del

            btnRotareImageCounterclockwise.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            btnRotareImageCounterclockwise.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            btnRotareImageCounterclockwise.Size = new Size(UISettings.CalcPix(32), UISettings.CalcPix(32)); // del

            btnRotareImageClockwise.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            btnRotareImageClockwise.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            btnRotareImageClockwise.Size = new Size(UISettings.CalcPix(32), UISettings.CalcPix(32)); // del
        }
示例#18
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            buttonClearPass  = new UIButton(ButtonStyle.AlphaChannel);
            buttonClearCache = new UIButton(ButtonStyle.AlphaChannel);
            lblName          = new UILabel(Resources.LoginView_Caption_Login);
            mainMenu         = new System.Windows.Forms.MainMenu();
            menuItemBack     = new System.Windows.Forms.MenuItem();
            menuEmpty        = new System.Windows.Forms.MenuItem();

            userDataKineticListView = new UserDataKineticListView();
            this.header             = new GraphicsImage();
            this.logo             = new GraphicsImage();
            this.headerText       = new UILabel();
            this.headerShadowText = new UILabel();

            this.SuspendLayout();
            //
            // mainMenu
            //
            this.mainMenu.MenuItems.Add(this.menuItemBack);
            this.mainMenu.MenuItems.Add(this.menuEmpty);
            //
            // menuItemBack
            //
            this.menuItemBack.Text   = Resources.UploadPhoto_Designer_menuItemBack_Text;
            this.menuItemBack.Click += new System.EventHandler(menuItemBack_Click);

            this.menuEmpty.Text    = "";
            this.menuEmpty.Enabled = false;

            //
            // 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.UserDataView_Text;
            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.UserDataView_Text;
            this.headerShadowText.Anchor                  = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            //
            // userDataKineticListView
            //
            this.userDataKineticListView.Anchor = System.Windows.Forms.AnchorStyles.Left
                                                  | System.Windows.Forms.AnchorStyles.Right
                                                  | System.Windows.Forms.AnchorStyles.Top
                                                  | System.Windows.Forms.AnchorStyles.Bottom;
            this.userDataKineticListView.Location           = new System.Drawing.Point(0, 36);
            this.userDataKineticListView.BackColor          = Color.White;
            this.userDataKineticListView.ScrollAction       = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            this.userDataKineticListView.Name               = "userDataKineticListView";
            this.userDataKineticListView.Size               = new System.Drawing.Size(240, 232);
            this.userDataKineticListView.BackgroundIImage   = MasterForm.SkinManager.GetImage("List-background");
            this.userDataKineticListView.ContentUpShadow    = MasterForm.SkinManager.GetImage("ContentUpShadow");
            this.userDataKineticListView.ContentDownShadow  = MasterForm.SkinManager.GetImage("ContentDownShadow");
            this.userDataKineticListView.ShowContentShadows = true;
            this.userDataKineticListView.OutsideDownShadow  = MasterForm.SkinManager.GetImage("ContentUpShadow");
            this.userDataKineticListView.OutsideUpShadow    = MasterForm.SkinManager.GetImage("ContentDownShadow");
            this.userDataKineticListView.ShowInnerShadows   = true;
            this.userDataKineticListView.TabIndex           = 2;
            //
            // lblName
            //
            lblName.Name     = "lblName";
            lblName.Location = new Point(30, 40);
            lblName.Size     = new Size(150, 10);
            lblName.Font     = FontCache.CreateFont("Calibri", 18, FontStyle.Regular, true);
            //
            // buttonClearPass
            //
            buttonClearPass.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            buttonClearPass.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            buttonClearPass.Location = new Point(80, 100);
            buttonClearPass.Size     = new Size(100, 25);
            buttonClearPass.Text     = Resources.UserDataView_Button_ClearPass;
            buttonClearPass.Name     = "buttonClearPass";
            buttonClearPass.Click   += new EventHandler(buttonClearPass_Click);
            buttonClearPass.Anchor   = AnchorStyles.Left | AnchorStyles.Top;
            //
            // buttonClearCache
            //
            buttonClearCache.TransparentButton        = MasterForm.SkinManager.GetImage("ButtonOther");
            buttonClearCache.TransparentButtonPressed = MasterForm.SkinManager.GetImage("ButtonOtherPressed");
            buttonClearCache.Location = new Point(80, 150);
            buttonClearCache.Size     = new Size(100, 25);
            buttonClearCache.Text     = Resources.UserDataView_Button_ClearCache;
            buttonClearCache.Name     = "buttonClearCache";
            buttonClearCache.Click   += new EventHandler(buttonClearCache_Click);
            buttonClearCache.Anchor   = AnchorStyles.Left | AnchorStyles.Top;
            //
            // UserDataView
            //
            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.Canvas.Children.Add(buttonClearPass);
            //this.Canvas.Children.Add(buttonClearCache);
            //this.Canvas.Children.Add(lblName);

            this.Controls.Add(userDataKineticListView);
            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");
        }
示例#19
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this._filter             = new UITextControl();
            this._clear              = new UIButton(ButtonStyle.AlphaChannel);
            this._leftBorder         = new GraphicsImage(MasterForm.SkinManager.GetImage("LeftFilterBorder"), false);
            this._rightBorder        = new GraphicsImage(MasterForm.SkinManager.GetImage("RightFilterBorder"), false);
            this._centerImage        = new GraphicsImage(MasterForm.SkinManager.GetImage("FilterCenter"), true);
            this._topBorder          = new GraphicsImage();
            this._bottomBorder       = new GraphicsImage();
            this._backgroundGradient = new GraphicsImage();

            inputPanel = new InputPanel();

            this.SuspendLayout();


            inputPanel.Enabled = false;

            //
            // element "FilterControl"
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
            this.Name   = "FilterControl";
            this.Anchor = System.Windows.Forms.AnchorStyles.Left |
                          System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
            this.Resize            += new System.EventHandler(FilterControlResize);
            this.DefaultFilterWidth = this.Width - 33;
            this.WideFilterWidth    = this.Width - 16;

            //
            // element "_backgroundGradient"
            //
            this._backgroundGradient.Location = new Point(0, 0);
            this._backgroundGradient.Size     = this.Size;
            this._backgroundGradient.Stretch  = true;
            this._backgroundGradient.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Right;
            this._backgroundGradient.Name     = "_backgroundGradient";

            //
            // element "_centerImage"
            //
            this._centerImage.Location = new Point(8, 2);
            this._centerImage.Size     = new Size(this.Width - 16, 21);
            this._centerImage.Name     = "_centerImage";
            this._centerImage.Anchor   = AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left;

            //
            // element "_clear"
            //
            this._clear.TransparentButton        = MasterForm.SkinManager.GetImage("FilterClear");
            this._clear.TransparentButtonPressed = MasterForm.SkinManager.GetImage("FilterClear");
            this._clear.Location = new Point(this.Width - 25, 4);
            this._clear.Size     = new Size(17, 17);
            this._clear.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            this._clear.Name     = "_clear";
            this.ClearButtonVisibleChange(false);
            this._clear.Click += new System.EventHandler(ClearClick);

            //
            // element "_filter"
            //
            this._filter.Font                 = FontCache.CreateFont("Calibri", 16, System.Drawing.FontStyle.Regular);
            this._filter.TextColor            = System.Drawing.Color.DarkGray;
            this._filter.Text                 = Resources.FilterText;
            this._filter.Name                 = "_filter";
            this._filter.Location             = new Point(8, 5);
            this._filter.Size                 = new Size(this.WideFilterWidth, 16);
            this._filter.Anchor               = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            this._filter.TextBox.GotFocus    += new System.EventHandler(TextBoxGotFocus);
            this._filter.TextBox.LostFocus   += new System.EventHandler(TextBoxLostFocus);
            this._filter.TextBox.TextChanged += new EventHandler(TextBoxTextChanged);

            //
            // element "_leftBorder"
            //
            this._leftBorder.Location  = new Point(0, 0);
            this._leftBorder.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            this._leftBorder.BackColor = Color.White;
            this._leftBorder.Opacity   = 255;

            //
            // element "_rightBorder"
            //
            this._rightBorder.Location  = new Point(this.Width - 8, 0);
            this._rightBorder.Anchor    = AnchorStyles.Right | AnchorStyles.Top;
            this._rightBorder.BackColor = Color.White;
            this._rightBorder.Opacity   = 255;

            //
            // element "_topBorder"
            //
            this._topBorder.Width     = this.Width - 16;
            this._topBorder.Location  = new Point(8, 0);
            this._topBorder.Stretch   = true;
            this._topBorder.Anchor    = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            this._topBorder.BackColor = Color.White;
            this._topBorder.Opacity   = 255;

            //
            // element "_bottomBorder"
            //
            this._bottomBorder.Width     = this.Width - 16;
            this._bottomBorder.Location  = new Point(8, 23);
            this._bottomBorder.Stretch   = true;
            this._bottomBorder.Anchor    = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            this._bottomBorder.BackColor = Color.White;
            this._bottomBorder.Opacity   = 255;

            // add to canvas
            this.Canvas.Children.Add(_backgroundGradient);
            this.Canvas.Children.Add(_centerImage);
            this.Canvas.Children.Add(_leftBorder);
            this.Canvas.Children.Add(_rightBorder);
            this.Canvas.Children.Add(_topBorder);
            this.Canvas.Children.Add(_bottomBorder);
            this.Canvas.Children.Add(_clear);
            this.Canvas.Children.Add(_filter);


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

            this._topBorder.AlphaChannelImage          = MasterForm.SkinManager.GetImage("TopFilterBorder");
            this._topBorder.Width                      = this.Width - UISettings.CalcPix(16);
            this._bottomBorder.AlphaChannelImage       = MasterForm.SkinManager.GetImage("BottomFilterBorder");
            this._bottomBorder.Width                   = this.Width - UISettings.CalcPix(16);
            this._backgroundGradient.AlphaChannelImage = PrepareBackground();
            this._backgroundGradient.Size              = this.Size;
        }
示例#20
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 System.Windows.Forms.MainMenu();
            menuItemLogin     = new System.Windows.Forms.MenuItem();
            menuItemExit      = new System.Windows.Forms.MenuItem();
            this.textBoxLogin = new UITextControl();
            this.textBoxPass  = new UITextControl();
            this.btnRemember  = new UIButton(ButtonStyle.AlphaChannel);
            this.lblRemember  = new UILabel();
            this.loginLogo    = new GraphicsImage();

            this.SuspendLayout();

            this.Name = "LoginForm";
            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.Dock       = DockStyle.Fill;
            this.Resize    += new EventHandler(FormResize);
            this.AutoScroll = true;
            this.Click     += new EventHandler(LoginViewClick);

            //
            // mainMenu1
            //
            this.mainMenu.MenuItems.Add(this.menuItemExit);
            this.mainMenu.MenuItems.Add(this.menuItemLogin);

            //
            // menuItemLogin
            //
            this.menuItemLogin.Text   = Resources.LoginView_Button_Login;
            this.menuItemLogin.Click += new System.EventHandler(BtnEnterClick);

            //
            // menuItemExit
            //
            this.menuItemExit.Text   = Resources.LoginView_Exit;
            this.menuItemExit.Click += new System.EventHandler(ButtonCancelClick);

            //
            // loginLogo
            //
            this.loginLogo.Location = new Point(48, 23);

            //
            // btnRemember
            //
            btnRemember.TransparentButton        = MasterForm.SkinManager.GetImage("RememberBoxChecked");
            btnRemember.TransparentButtonPressed = MasterForm.SkinManager.GetImage("RememberBoxCheckedPressed");
            btnRemember.Size     = new Size(25, 25);
            btnRemember.Location = new Point(20, 153);
            btnRemember.Name     = "btnRememberChecked";
            btnRemember.Anchor   = AnchorStyles.Left | AnchorStyles.Top;
            btnRemember.Click   += new EventHandler(BtnRememberClick);

            //
            // lblRemember
            //
            lblRemember.Size                    = new Size(200, 14);
            lblRemember.Location                = new Point(53, 157);
            lblRemember.ForeColor               = Color.White;
            lblRemember.Font                    = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular);
            lblRemember.Text                    = Resources.LoginView_Remember;
            lblRemember.Anchor                  = AnchorStyles.Left | AnchorStyles.Top;
            lblRemember.VerticalTextAlignment   = Galssoft.VKontakteWM.Components.UI.VerticalAlignment.Center;
            lblRemember.HorizontalTextAlignment = Galssoft.VKontakteWM.Components.UI.HorizontalAlignment.Left;

            //
            // textBoxLogin
            //
            this.textBoxLogin.Location  = new Point(20, 71);
            this.textBoxLogin.Name      = "textBoxLogin";
            this.textBoxLogin.BackColor = Color.White;
            this.textBoxLogin.Font      = FontCache.CreateFont("Calibri", 14, FontStyle.Regular, true);
            this.textBoxLogin.SetImages(MasterForm.SkinManager.GetImage("UITextBoxLeftBorder"), MasterForm.SkinManager.GetImage("UITextBoxRightBorder"), MasterForm.SkinManager.GetImage("UITextBoxTopBorder"), MasterForm.SkinManager.GetImage("UITextBoxBottomBorder"));
            this.textBoxLogin.Size      = new System.Drawing.Size(200, 31);
            this.textBoxLogin.Anchor    = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            this.textBoxLogin.TextColor = Color.DarkGray;
            this.textBoxLogin.MouseUp  += new MouseEventHandler(TextBoxLoginMouseUp);

            //
            // textBoxPass
            //
            this.textBoxPass.Location  = new Point(20, 110);
            this.textBoxPass.Name      = "textBoxPass";
            this.textBoxPass.BackColor = Color.White;
            this.textBoxPass.Font      = FontCache.CreateFont("Calibri", 14, FontStyle.Regular, true);
            this.textBoxPass.SetImages(MasterForm.SkinManager.GetImage("UITextBoxLeftBorder"), MasterForm.SkinManager.GetImage("UITextBoxRightBorder"), MasterForm.SkinManager.GetImage("UITextBoxTopBorder"), MasterForm.SkinManager.GetImage("UITextBoxBottomBorder"));
            this.textBoxPass.Size         = new System.Drawing.Size(200, 31);
            this.textBoxPass.PasswordChar = '*';
            this.textBoxPass.Anchor       = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            this.textBoxPass.TextColor    = Color.DarkGray;
            this.textBoxPass.MouseUp     += new MouseEventHandler(TextBoxPassMouseUp);

            this.Canvas.Children.Add(this.loginLogo);
            this.Canvas.Children.Add(this.textBoxPass);
            this.Canvas.Children.Add(this.textBoxLogin);
            this.Canvas.Children.Add(this.btnRemember);
            this.Canvas.Children.Add(this.lblRemember);

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

            this.loginLogo.AlphaChannelImage = MasterForm.SkinManager.GetImage("LoginLogo");
        }
示例#21
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>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            mainMenu               = new System.Windows.Forms.MainMenu();
            menuItemBack           = new System.Windows.Forms.MenuItem();
            menuItemSave           = new System.Windows.Forms.MenuItem();
            settingsKineticControl = new MultiValueSettingsKineticControl();
            this.header            = new GraphicsImage();
            this.logo              = new GraphicsImage();
            this.headerText        = new UILabel();
            this.headerShadowText  = new UILabel();
            this.SuspendLayout();

            //
            // mainMenu
            //
            this.mainMenu.MenuItems.Add(this.menuItemBack);
            this.mainMenu.MenuItems.Add(this.menuItemSave);
            //
            // menuItemBack
            //
            this.menuItemBack.Text   = Resources.SettingsView_menuItemBack_Text;
            this.menuItemBack.Click += new System.EventHandler(menuItemBack_Click);
            //
            // menuItemSave
            //
            this.menuItemSave.Text   = Resources.SettingsView_menuItemSave_Text;
            this.menuItemSave.Click += new System.EventHandler(menuItemSave_Click);

            //
            // 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(headerText.Width, headerText.Height);
            this.headerText.Font                    = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold, true);
            this.headerText.ForeColor               = Color.White;
            this.headerText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerText.HorizontalTextAlignment = HorizontalAlignment.Center;
            //FIXME
            this.headerText.Text = Resources.MultiValueView_Text;
            //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(headerText.Width, headerText.Height);
            this.headerShadowText.Font                    = FontCache.CreateFont("Tahoma", 14, FontStyle.Bold, true);
            this.headerShadowText.ForeColor               = Color.FromArgb(0, 0, 0);
            this.headerShadowText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = HorizontalAlignment.Center;
            //FIXME
            this.headerShadowText.Text = Resources.MultiValueView_Text;
            //this.headerShadowText.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
            //
            // settingsKineticControl
            //
            this.settingsKineticControl.Anchor = System.Windows.Forms.AnchorStyles.Left
                                                 | System.Windows.Forms.AnchorStyles.Right
                                                 | System.Windows.Forms.AnchorStyles.Top
                                                 | System.Windows.Forms.AnchorStyles.Bottom;
            this.settingsKineticControl.Location           = new System.Drawing.Point(0, 36);
            this.settingsKineticControl.BackColor          = Color.White;
            this.settingsKineticControl.ScrollAction       = KineticControlBase.KineticControlScrollAction.ScrollingForTime;
            this.settingsKineticControl.Name               = "settingsKineticControl";
            this.settingsKineticControl.Size               = new System.Drawing.Size(240, 232);
            this.settingsKineticControl.BackgroundIImage   = MasterForm.SkinManager.GetImage("List-background");
            this.settingsKineticControl.ContentUpShadow    = MasterForm.SkinManager.GetImage("ContentUpShadow");
            this.settingsKineticControl.ContentDownShadow  = MasterForm.SkinManager.GetImage("ContentDownShadow");
            this.settingsKineticControl.ShowContentShadows = true;
            this.settingsKineticControl.OutsideDownShadow  = MasterForm.SkinManager.GetImage("ContentUpShadow");
            this.settingsKineticControl.OutsideUpShadow    = MasterForm.SkinManager.GetImage("ContentDownShadow");
            this.settingsKineticControl.ShowInnerShadows   = true;
            this.settingsKineticControl.TabIndex           = 2;
            //
            // SettingView
            //
            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.Resize += new EventHandler(MultiValueSettingsViewResize);

            this.Controls.Add(settingsKineticControl);
            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");
        }
示例#23
0
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu         = new MainMenu();
            this.menuItemCancel   = new MenuItem();
            this.menuItemChange   = new MenuItem();
            this.buttonClearText  = new UIButton(ButtonStyle.AlphaChannel);
            this.tbxCommentText   = new TextBox();
            this.header           = new GraphicsImage();
            this.headerText       = new UILabel();
            this.headerShadowText = new UILabel();
            this.SuspendLayout();

            //
            // header
            //
            this.header.Name     = "header";
            this.header.Location = new Point(0, 0);
            this.header.Stretch  = true;
            this.header.Anchor   = AnchorStyles.Left | AnchorStyles.Top | 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", 19, FontStyle.Regular);
            this.headerText.ForeColor               = Color.White;
            this.headerText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerText.HorizontalTextAlignment = 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", 19, FontStyle.Regular);
            this.headerShadowText.ForeColor               = Color.FromArgb(180, 180, 180);
            this.headerShadowText.VerticalTextAlignment   = VerticalAlignment.Center;
            this.headerShadowText.HorizontalTextAlignment = HorizontalAlignment.Center;
            this.headerShadowText.Text                    = Resources.ChangeCommentView_Title;
            this.headerShadowText.Anchor                  = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

            //
            // buttonClearText
            //
            buttonClearText.Location = new Point(194, 0);
            buttonClearText.AutoSize = true;
            buttonClearText.Name     = "buttonClearText";
            buttonClearText.Anchor   = AnchorStyles.Right | AnchorStyles.Top;
            buttonClearText.Click   += new EventHandler(ButtonClearTextClick);

            //
            // tbxCommentText
            //
            tbxCommentText.Name        = "tbxCommentText";
            tbxCommentText.Location    = new Point(5, 40);
            tbxCommentText.Size        = new Size(235, 228);
            tbxCommentText.Multiline   = true;
            tbxCommentText.MaxLength   = 250;
            tbxCommentText.Font        = new System.Drawing.Font("Tahoma", 16, FontStyle.Regular);
            tbxCommentText.BorderStyle = BorderStyle.None;
            tbxCommentText.Anchor      = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top;

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

            //
            // menuItemChange
            //
            menuItemChange.Text   = Resources.ChangeStatusView_SetStatus;
            menuItemChange.Click += new EventHandler(MenuItemChangeClick);

            //
            // menuItemCancel
            //
            menuItemCancel.Text   = Resources.ChangeStatusView_Cancel;
            menuItemCancel.Click += new EventHandler(MenuItemCancelClick);

            //
            // ChangeCommentView
            //
            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(tbxCommentText);
            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);
            this.Canvas.Children.Add(buttonClearText);
            this.Canvas.RecalcDPIScaling();

            this.ResumeLayout(false);

            this.headerShadowText.Location = new Point(this.headerShadowText.Left - UISettings.CalcPix(1), this.headerShadowText.Top - UISettings.CalcPix(1));
            this.header.AlphaChannelImage  = MasterForm.SkinManager.GetImage("bdTop");
        }
示例#24
0
 private void SetFont(Gdi g)
 {
     g.Font      = FontCache.CreateFont("Tahoma", 14, FontStyle.Regular, true);
     g.TextAlign = Win32.TextAlign.TA_LEFT;
     g.TextColor = Color.Black;
 }
示例#25
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;
        }
示例#26
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));
        }
示例#27
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu         = new System.Windows.Forms.MainMenu();
            this.menuItemSend     = new System.Windows.Forms.MenuItem();
            this.menuItemCancel   = new System.Windows.Forms.MenuItem();
            this.contextMenu      = new ContextMenu();
            this.miCut            = new MenuItem();
            this.miCopy           = new MenuItem();
            this.miPaste          = new MenuItem();
            this.tbxMessageData   = new TextBox();
            this.headerText       = new UILabel();
            this.headerShadowText = new UILabel();
            this.header           = new GraphicsImage();
            this.logo             = new GraphicsImage();
            this.friendsLogo      = new UIButton(ButtonStyle.AlphaChannel);

            this.SuspendLayout();

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

            //
            // friendLogo
            //
            this.friendsLogo.Name = "friendLogo";
            //this.friendsLogo.Location = new Point(210, 4);
            this.friendsLogo.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.friendsLogo.Click += new EventHandler(FriendsLogoClick);

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

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

            //
            // mainMenu1
            //
            this.mainMenu.MenuItems.Add(this.menuItemCancel);
            this.mainMenu.MenuItems.Add(this.menuItemSend);

            //
            // menuItemSend
            //
            this.menuItemSend.Text   = Resources.SendCommentSend;
            this.menuItemSend.Click += new System.EventHandler(ButtonSendClick);

            //
            // menuItemCancel
            //
            this.menuItemCancel.Text   = Resources.MessagesList_Designer_menuItemCancel_Text;
            this.menuItemCancel.Click += new System.EventHandler(ButtonCancelClick);

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

            //
            // 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.White;
            this.GotFocus           += new EventHandler(MessageSendViewGotFocus);
            this.AutoScroll          = true;

            this.Canvas.Children.Add(header);
            this.Canvas.Children.Add(logo);
            //this.Canvas.Children.Add(friendsLogo);
            this.Canvas.Children.Add(headerShadowText);
            this.Canvas.Children.Add(headerText);

            this.Controls.Add(tbxMessageData);

            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");
            this.friendsLogo.TransparentButton        = MasterForm.SkinManager.GetImage("FriendsLogo");
            this.friendsLogo.TransparentButtonPressed = MasterForm.SkinManager.GetImage("FriendsLogoPressed");
        }