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); }
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); }
public void ShowTimeSendFriendCircle(EnumSendType type) { TimerSendFriendCircle form = new TimerSendFriendCircle(); form.Tag = type; form.Text = "发朋友圈"; ShowForm(form); }
public void ShowTimeAddFriend(EnumSendType type) { TimerAddFriend form = new TimerAddFriend(); form.Text = "添加好友"; form.Tag = type; ShowForm(form); }
/// <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; } }
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); }