Exemplo n.º 1
0
        private void SendIdleFishPost_Load(object sender, EventArgs e)
        {
            this.startdate.CustomFormat = "yyyy/MM/dd";
            this.startdate.Format       = DateTimePickerFormat.Custom;
            _startDate = DateTime.Now;

            this.starttime.CustomFormat = "HH:mm";
            this.starttime.Format       = DateTimePickerFormat.Custom;
            this.starttime.ShowUpDown   = true;
            _startTime = DateTime.Now;

            _currentSendType = ((EnumSendType)Convert.ToInt32(this.Tag));

            _currentSelectContentType = EnumPublishContentType.PictureAndWord;

            this.Send.Text = _currentSendType == EnumSendType.AutoSend ? "提交" : "发送";

            var isShow = _currentSendType == EnumSendType.AutoSend;

            if (!isShow)
            {
                this.SetStartDate.Hide();
            }

            AddBtnWithAddContent();

            idleFishHepler = SingleHepler <IdleFishHelper> .Instance;

            CheckSomeEquipmentToDO(this.flowLayoutPanelWithEquipment);

            InitGroup(this.flowLayoutPanelWithGroup);
        }
        private void SendGroupMessageForm_Load(object sender, EventArgs e)
        {
            this.startdate.CustomFormat = "yyyy/MM/dd";
            this.startdate.Format       = DateTimePickerFormat.Custom;
            _startDate = DateTime.Now;

            this.starttime.CustomFormat = "HH:mm";
            this.starttime.Format       = DateTimePickerFormat.Custom;
            this.starttime.ShowUpDown   = true;
            _startTime = DateTime.Now;

            _currentSendType = ((EnumSendType)Convert.ToInt32(this.Tag));

            this.Send.Text = _currentSendType == EnumSendType.AutoSend ? "提交" : "发送";

            var isShow = _currentSendType == EnumSendType.AutoSend;

            if (!isShow)
            {
                this.SetStartDate.Hide();
            }

            wxHelper = SingleHepler <WXHelper> .Instance;

            CheckSomeEquipmentToDO(this.flowLayoutPanelWithEquipment);

            InitGroup(this.flowLayoutPanelWithGroup);
        }
Exemplo n.º 3
0
        private void KSActionForm_Load(object sender, EventArgs e)
        {
            this.startdate.CustomFormat = "yyyy/MM/dd";
            this.startdate.Format       = DateTimePickerFormat.Custom;
            _startDate = DateTime.Now;

            this.starttime.CustomFormat = "HH:mm";
            this.starttime.Format       = DateTimePickerFormat.Custom;
            this.starttime.ShowUpDown   = true;
            _startTime = DateTime.Now;

            baseAction = SingleHepler <BaseAction> .Instance;

            _currentSendType = (EnumSendType)Convert.ToInt32(this.Tag);

            this.KSAction.Text = _currentSendType == EnumSendType.AutoSend ? "提交任务" : "开始";

            if (_currentSendType == EnumSendType.HandSend)
            {
                SetStartDate.Hide();
            }

            ///初始化设备
            CheckSomeEquipmentToDO(this.flowLayoutPanelWithEquipment);

            InitGroup(this.flowLayoutPanelWithGroup);
        }
Exemplo n.º 4
0
        public void ShowTimeSendFriendCircle(EnumSendType type)
        {
            TimerSendFriendCircle form = new TimerSendFriendCircle();

            form.Tag = type;

            form.Text = "发朋友圈";

            ShowForm(form);
        }
Exemplo n.º 5
0
        public void ShowTimeAddFriend(EnumSendType type)
        {
            TimerAddFriend form = new TimerAddFriend();

            form.Text = "添加好友";

            form.Tag = type;

            ShowForm(form);
        }
Exemplo n.º 6
0
        /// <summary>
        /// 获取本地保存文件路径
        /// </summary>
        /// <param name="currentSendType"></param>
        public void GetNativeRootPath(EnumSendType currentSendType)
        {
            switch (currentSendType)
            {
            case EnumSendType.AutoSend:

                _rootPath = SingleHepler <ConfigInfo> .Instance.AutoSendFriendFileUrl;

                break;

            case EnumSendType.HandSend:

                _rootPath = SingleHepler <ConfigInfo> .Instance.HandSendFriendFileUrl;

                break;

            default:
                break;
            }
        }
Exemplo n.º 7
0
        private void TimerAddFriend_Load(object sender, EventArgs e)
        {
            this.startdate.CustomFormat = "yyyy/MM/dd";
            this.startdate.Format       = DateTimePickerFormat.Custom;
            _startDate = DateTime.Now;

            this.starttime.CustomFormat = "HH:mm";
            this.starttime.Format       = DateTimePickerFormat.Custom;
            this.starttime.ShowUpDown   = true;
            _startTime = DateTime.Now;

            baseAction = SingleHepler <BaseAction> .Instance;

            _currentSendType = (EnumSendType)Convert.ToInt32(this.Tag);

            this.AddFriend.Text = _currentSendType == EnumSendType.AutoSend ? "提交任务" : "开始";

            if (_currentSendType == EnumSendType.HandSend)
            {
                SetStartDate.Hide();
            }


            CustomNumericUpDown(this.addFriendCount, _addFriendCount, 10, 1, (o, s) =>
            {
                var control = (NumericUpDown)o;

                _addFriendCount = (int)control.Value;
            });

            this.txtSayHello.Text = "你好!很高兴认识你";

            ///初始化设备
            CheckSomeEquipmentToDO(this.flowLayoutPanelWithEquipment);

            InitGroup(this.flowLayoutPanelWithGroup);
        }