Exemple #1
0
        public UploadFile(YiChe yc, string ImageUpload)
        {
            StartPosition = FormStartPosition.CenterScreen;
            InitializeComponent();
            this.yc          = yc;
            this.ImageUpload = ImageUpload;

            doc = yc.InforManagerNews(ImageUpload);

            var currentargsjs = doc.DocumentNode.SelectNodes("//script")[6].OuterHtml.Trim().Split('\r');

            foreach (string str in currentargsjs)
            {
                if (str.Contains("CurrentArgs"))
                {
                    currentargs = str.Replace("\n        var CurrentArgs = '", "").Replace("'", "");
                    break;
                }
            }

            var piclink = doc.DocumentNode.SelectSingleNode("//a[contains(@href, 'SelectExsitPic')]");

            if (piclink != null)
            {
                SelectExsitPic = url + piclink.GetAttributeValue("href", "");
            }

            InitImg(0);
        }
Exemple #2
0
 public PhotoSelectNew(YiChe yc, string csid)
 {
     StartPosition = FormStartPosition.CenterScreen;
     InitializeComponent();
     this.yc     = yc;
     this.csid   = csid;
     currentPage = PreviousPage = lbtn1;
     doc         = yc.InforManagerNews(photoUrl + csid);
     InitDll(0);
     InitImg();
     InitPage();
 }
Exemple #3
0
 private void InitUser()
 {
     if (Tool.site == Aide.Site.Qiche)
     {
         if (Tool.userInfo_qc == null)
         {
             var form = new FormLogin(Tool.site);
             if (form.ShowDialog() != DialogResult.OK)
             {
                 if (Tool.userInfo_yc != null)
                 {
                     tabControl1.SelectedTab = tabPage2;
                 }
                 else
                 {
                     Close();
                 }
                 return;
             }
             else
             {
                 qiche = form.qiche;
             }
         }
         LoadUser(Tool.userInfo_qc);
     }
     else
     {
         if (Tool.userInfo_yc == null)
         {
             var form = new FormLogin(Tool.site);
             if (form.ShowDialog() != DialogResult.OK)
             {
                 if (Tool.userInfo_qc != null)
                 {
                     tabControl1.SelectedTab = tabPage1;
                 }
                 else
                 {
                     Close();
                 }
                 return;
             }
             else
             {
                 yiche = form.yiche;
             }
         }
         LoadUser(Tool.userInfo_yc);
     }
 }
Exemple #4
0
        /*
         * 登录后,判断用户类型,如果是试用,抢单判断试用时间,新闻、报价判断已经报价过的次数
         * 如果是付费,判断付费模式(抢单、新闻、报价),在有效期内,购买的服务都可以使用
         */

        public FormMain(QiCheZhiJia qiche, YiChe yiche)
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterScreen;
            this.qiche    = qiche;
            this.yiche    = yiche;
            th            = new Thread(Tool.aideTimer.Run);
            th.Start();
            if (Tool.site == Aide.Site.Qiche)
            {
                tabControl1.SelectedTab = tabPage1;
            }
            else
            {
                tabControl1.SelectedTab = tabPage2;
            }
            dgvOrder.AutoGenerateColumns      = false;
            rowMergeView1.AutoGenerateColumns = false;
            tabControl2.TabPages.Remove(tabPage8);
        }
Exemple #5
0
        private void LoadLogin()
        {
            if (Tool.site == Aide.Site.Qiche)
            {
                rbtQC.Checked = true;
                string path = AppDomain.CurrentDomain.BaseDirectory + "js.lyt";
                if (!File.Exists(path))
                {
                    MessageBox.Show("js.lyt文件缺失,建议重新解压软件解决!");
                    base.Close();
                }
                qiche = new QiCheZhiJia(File.ReadAllText(path));
            }
            else
            {
                rbtYC.Checked = true;
                yiche         = new YiChe();
            }

            ClearText();
            LoadPw();
            LoadValidateCode();
        }