예제 #1
0
        // Token: 0x060004E1 RID: 1249 RVA: 0x00023240 File Offset: 0x00021440
        protected override object GetStyleFromForm()
        {
            var cpicasaUploaderStyleItem = new CPicasaUploaderStyleItem();

            if (comboBox1.SelectedIndex == 1)
            {
                txtPass.Text = "";
            }
            if (comboBox1.SelectedIndex == 2)
            {
                txtID.Text   = "";
                txtPass.Text = "";
            }
            cpicasaUploaderStyleItem.ID     = PicasaBar.Encrypto(txtID.Text);
            cpicasaUploaderStyleItem.Pass   = PicasaBar.Encrypto(txtPass.Text);
            cpicasaUploaderStyleItem.Manage = (byte)comboBox1.SelectedIndex;
            return(cpicasaUploaderStyleItem);
        }
예제 #2
0
        public override void Apply(ref ScrapBase scrap, Point clickpoint)
        {
            ScrapBase base2 = scrap;
            PicasaBar bar   = new PicasaBar {
                SendImage     = base2.Image,
                ID            = this.ID,
                Pass          = this.Pass,
                AlbumName     = this.AlbumName,
                AlbumComment  = this.AlbumComment,
                AlbumPublic   = this.IsPublic,
                StartPosition = FormStartPosition.Manual,
                TopMost       = true
            };

            bar.Left = (scrap.Left + (scrap.Width / 2)) - (bar.Width / 2);
            bar.Top  = (scrap.Top + (scrap.Height / 2)) - (bar.Height / 2);
            bar.Show();
        }
예제 #3
0
        // Token: 0x060004DF RID: 1247 RVA: 0x00023144 File Offset: 0x00021344
        protected override void SetStyleToForm(object style)
        {
            var cpicasaUploaderStyleItem = (CPicasaUploaderStyleItem)style;

            InitializeComponent();
            Text = cpicasaUploaderStyleItem.GetDisplayName();
            string text2;
            var    text = text2 = "";

            if (cpicasaUploaderStyleItem.ID.Length > 0)
            {
                text2 = PicasaBar.Decrypto(cpicasaUploaderStyleItem.ID);
            }
            if (cpicasaUploaderStyleItem.Pass.Length > 0)
            {
                text = PicasaBar.Decrypto(cpicasaUploaderStyleItem.Pass);
            }
            txtID.Text              = text2;
            txtPass.Text            = text;
            comboBox1.SelectedIndex = cpicasaUploaderStyleItem.Manage;
        }
예제 #4
0
        protected override void SetStyleToForm(object style)
        {
            string str2;
            CPicasaUploaderStyleItem item = (CPicasaUploaderStyleItem)style;

            this.InitializeComponent();
            this.Text = item.GetDisplayName();
            string str = str2 = "";

            if (item.ID.Length > 0)
            {
                str = PicasaBar.Decrypto(item.ID);
            }
            if (item.Pass.Length > 0)
            {
                str2 = PicasaBar.Decrypto(item.Pass);
            }
            this.txtID.Text              = str;
            this.txtPass.Text            = str2;
            this.comboBox1.SelectedIndex = item.Manage;
        }