Exemplo n.º 1
0
 public SettingsPlayerHistoryModel()
 {
     this.SortColName    = string.Empty;
     this.SortOrder      = System.Windows.Forms.SortOrder.None;
     this.ColEarthTime   = new SettingsPlayerHistoryColModel("EarthTime", 0, true, 63);
     this.ColVanaTime    = new SettingsPlayerHistoryColModel("VanaTime", 1, true, 130);
     this.ColVanaWeekDay = new SettingsPlayerHistoryColModel("VanaWeekDay", 2, true, 20);
     this.ColMoonPhase   = new SettingsPlayerHistoryColModel("MoonPhase", 3, true, 20);
     this.ColResult      = new SettingsPlayerHistoryColModel("Result", 4, true, 60);
     this.ColZoneName    = new SettingsPlayerHistoryColModel("ZoneName", 5, false, 100);
     this.ColRodName     = new SettingsPlayerHistoryColModel("RodName", 6, false, 100);
     this.ColBaitName    = new SettingsPlayerHistoryColModel("BaitName", 7, false, 100);
     this.ColID          = new SettingsPlayerHistoryColModel("ID", 8, false, 100);
     this.ColFishName    = new SettingsPlayerHistoryColModel("FishName", 9, true, 160);
     this.ColFishCount   = new SettingsPlayerHistoryColModel("FishCount", 10, false, 23);
 }
Exemplo n.º 2
0
 /// <summary>
 /// グリッドの列設定を設定ファイルから設定する
 /// </summary>
 /// <param name="iDataGridView">グリッド</param>
 /// <param name="iColSetting">設定</param>
 private void setGridColFromSettings(DataGridView iDataGridView, SettingsPlayerHistoryColModel iColSetting)
 {
     iDataGridView.Columns[iColSetting.Name].Width = iColSetting.Width;
     iDataGridView.Columns[iColSetting.Name].DisplayIndex = iColSetting.DisplayIndex;
     iDataGridView.Columns[iColSetting.Name].Visible = iColSetting.Visible;
 }