Exemplo n.º 1
0
        private void saving(object sender, RegistrySaveLoadEventArgs e)
        {
            RegistryKey key = e.OpenKey;

            foreach (CustomListColumn cc in columns)
            {
                key.SetValue("strLen" + name + cc.Index, cc.Width);
            }
        }
Exemplo n.º 2
0
        private void loading(object sender, RegistrySaveLoadEventArgs e)
        {
            RegistryKey key = e.OpenKey;
            Graphics    g   = Graphics.FromHwnd(this.Handle);

            foreach (CustomListColumn cc in columns)
            {
                try
                {
                    cc.Width = (int)key.GetValue("strLen" + name + cc.Index, cc.Width);
                }
                catch
                {
                    cc.Width = (int)g.MeasureString(cc.Title, Font).Width + 2;
                }
            }
        }
Exemplo n.º 3
0
 protected virtual void OnRISettingsLoad(RegistrySaveLoadEventArgs e)
 {
 }