示例#1
0
        public void ResiteSites(int col)
        {
            if (ssfs.Count <= 0)
            {
                return;
            }
            colCount = col;
            UiChange.Set(GetKey(), colCount.ToString());
            int sWidth  = (flowLayouSites.Width / colCount) - 10;
            int sHeight = (flowLayouSites.Height / (ssfs.Count / colCount + ssfs.Count % colCount)) - 10;

            foreach (KeyValuePair <uint, SiteStateForm> smf in ssfs)
            {
                smf.Value.Size = new Size(sWidth, sHeight);
            }
        }
示例#2
0
 private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     colCount = toolStripComboBox1.SelectedIndex + 1;
     UiChange.Set(GetKey(), colCount.ToString());
     ResizeSensors(colCount);
 }