public void Load(MOG_PropertiesIni ini, string section, string property, string key) { if (ini.PropertyExist(section, property, key + "_OpenWidth")) { mOpenWidth = Convert.ToInt32(ini.GetPropertyString(section, property, key + "_OpenWidth")); } if (ini.PropertyExist(section, property, key + "_CLoseWidth")) { mCloseWidth = Convert.ToInt32(ini.GetPropertyString(section, property, key + "_CLoseWidth")); } if (ini.PropertyExist(section, property, key + "_Open")) { Opened = Convert.ToBoolean(ini.GetPropertyString(section, property, key + "_Open")); } }
static private bool LoadDynamic_LayoutListView(ListView view, string section, string key) { try { if (Settings != null) { foreach (ColumnHeader column in view.Columns) { if (Settings.PropertyExist(section, key, column.Text + "_width")) { column.Width = Convert.ToInt32(Settings.GetPropertyString(section, key, column.Text + "_width")); } } } } catch { } return(true); }