private void simpleButton5_Click(object sender, EventArgs e) { using (FormSignalSelect formSel = new FormSignalSelect()) { if (formSel.ShowDialog() == DialogResult.OK) { selChannel = formSel.Channel; textEdit1.Text = selChannel.ToString(); trackBarControl1.Properties.Maximum = selChannel.RecordSec; int days = (int)((selChannel.File.EndTime.Date - selChannel.File.BeginTime.Date).TotalDays) + 1; comboBoxEdit1.Properties.Items.Clear(); listTimes.Clear(); for (int i = 0; i < days; i++) { DateTime time = selChannel.File.BeginTime.Date.AddDays(i); comboBoxEdit1.Properties.Items.Add(time.ToString("yyyy/MM/dd")); listTimes.Add(time); } if (days > 0) { comboBoxEdit1.SelectedIndex = 0; } QueryData(); } } }
void Start() { yt.Add(YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytMapLevel.SelectRowEqual("MapID", Application.loadedLevelName.Substring(3, 3))); SC = this; // Dictionary<int, bool> selectchannel = new Dictionary<int, bool>(); // // for(int i=0;i<30;i++) // { // selectchannel.Add(i, i%2==0); // } // ShowSelectChannel(selectchannel); }