コード例 #1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem menuItem = sender as ToolStripMenuItem;

            if (menuItem != null && menuItem.Tag != null)
            {
                if (menuItem.Tag is SizeGroup)
                {
                    sizeGroup = menuItem.Tag as SizeGroup;
                    //  menuItem.Owner;
                    CommonGlobalUtil.ChangeSizeGroup(view, sizeGroup, false);
                    SizeGroupChanged?.Invoke(sizeGroup, view);
                    return;
                }
            }
        }
コード例 #2
0
 /// <summary>
 /// 绑定完成的时候,记录哪些列的显示状态,供给工具中使用的状态切换时可以判断显示的
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void View_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
 {
     if (Debug)
     {
         CommonGlobalUtil.Debug("Begin View_DataBindingComplete" + DateTime.Now);
     }
     if (!Disabled)
     {
         CommonGlobalUtil.ChangeSizeGroup(view, sizeGroup, true);
     }
     // CheckCommonSize();
     // CheckAtmSize();
     if (Debug)
     {
         CommonGlobalUtil.Debug("End View_DataBindingComplete" + DateTime.Now);
     }
 }
コード例 #3
0
 internal void ChangeSizeGroup(SizeGroup group)
 {
     sizeGroup = group;
     CommonGlobalUtil.ChangeSizeGroup(view, sizeGroup);
     SizeGroupChanged?.Invoke(sizeGroup, view);
 }
コード例 #4
0
 internal void RefreshSizeGroup()
 {
     CommonGlobalUtil.ChangeSizeGroup(view, sizeGroup, false);
     SizeGroupChanged?.Invoke(sizeGroup, view);
 }
コード例 #5
0
 private void dataGridView2_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
 {
     CommonGlobalUtil.ChangeSizeGroup(dataGridView2, sizeGroup, true);
 }