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