public void LoadConfig(SettingCommon settingCommon, SettingLocal settingLocal)
{
this.GetPeriodPanel.LoadConfig(settingCommon);
+ this.StartupPanel.LoadConfig(settingCommon);
}
public void SaveConfig(SettingCommon settingCommon, SettingLocal settingLocal)
{
this.GetPeriodPanel.SaveConfig(settingCommon);
+ this.StartupPanel.SaveConfig(settingCommon);
}
private void TreeViewSetting_BeforeSelect(object sender, TreeViewCancelEventArgs e)
#endif
try
{
- Readed = this.StartupPanel.StartupReaded.Checked;
switch (this.TweetPrvPanel.IconSize.SelectedIndex)
{
case 0:
ProxyPort = int.Parse(this.ProxyPanel.TextProxyPort.Text.Trim());
ProxyUser = this.ProxyPanel.TextProxyUser.Text.Trim();
ProxyPassword = this.ProxyPanel.TextProxyPassword.Text.Trim();
- StartupVersion = this.StartupPanel.CheckStartupVersion.Checked;
- StartupFollowers = this.StartupPanel.CheckStartupFollowers.Checked;
RestrictFavCheck = this.ActionPanel.CheckFavRestrict.Checked;
AlwaysTop = this.PreviewPanel.CheckAlwaysTop.Checked;
UrlConvertAuto = this.ShortUrlPanel.CheckAutoConvertUrl.Checked;
AutoShortUrlFirst = (MyCommon.UrlConverter)this.ShortUrlPanel.ComboBoxAutoShortUrlFirst.SelectedIndex;
TabIconDisp = this.PreviewPanel.chkTabIconDisp.Checked;
ReadOwnPost = this.ActionPanel.chkReadOwnPost.Checked;
- GetFav = this.StartupPanel.chkGetFav.Checked;
IsMonospace = this.PreviewPanel.CheckMonospace.Checked;
ReadOldPosts = this.ActionPanel.CheckReadOldPosts.Checked;
BitlyUser = this.ShortUrlPanel.TextBitlyId.Text;
}
}
- this.StartupPanel.StartupReaded.Checked = Readed;
switch (IconSz)
{
case MyCommon.IconSizes.IconNone:
}
this.TweetActPanel.StatusText.Text = Status;
this.ActionPanel.UReadMng.Checked = UnreadManage;
- if (UnreadManage == false)
- {
- this.StartupPanel.StartupReaded.Enabled = false;
- }
- else
- {
- this.StartupPanel.StartupReaded.Enabled = true;
- }
this.ActionPanel.PlaySnd.Checked = PlaySound;
this.TweetPrvPanel.OneWayLv.Checked = OneWayLove;
this.ProxyPanel.TextProxyUser.Text = ProxyUser;
this.ProxyPanel.TextProxyPassword.Text = ProxyPassword;
- this.StartupPanel.CheckStartupVersion.Checked = StartupVersion;
- if (ApplicationSettings.VersionInfoUrl == null)
- this.StartupPanel.CheckStartupVersion.Enabled = false; // 更新チェック無効化
- this.StartupPanel.CheckStartupFollowers.Checked = StartupFollowers;
this.ActionPanel.CheckFavRestrict.Checked = RestrictFavCheck;
this.PreviewPanel.CheckAlwaysTop.Checked = AlwaysTop;
this.ShortUrlPanel.CheckAutoConvertUrl.Checked = UrlConvertAuto;
this.ShortUrlPanel.ComboBoxAutoShortUrlFirst.SelectedIndex = (int)AutoShortUrlFirst;
this.PreviewPanel.chkTabIconDisp.Checked = TabIconDisp;
this.ActionPanel.chkReadOwnPost.Checked = ReadOwnPost;
- this.StartupPanel.chkGetFav.Checked = GetFav;
this.PreviewPanel.CheckMonospace.Checked = IsMonospace;
this.ActionPanel.CheckReadOldPosts.Checked = ReadOldPosts;
this.ShortUrlPanel.TextBitlyId.Text = BitlyUser;
}
}
- public bool Readed { get; set; }
public MyCommon.IconSizes IconSz { get; set; }
public string Status { get; set; }
public bool UnreadManage { get; set; }
public int ProxyPort { get; set; }
public string ProxyUser { get; set; }
public string ProxyPassword { get; set; }
- public bool StartupVersion { get; set; }
- public bool StartupFollowers { get; set; }
public bool RestrictFavCheck { get; set; }
public bool AlwaysTop { get; set; }
public bool UrlConvertAuto { get; set; }
public bool TabIconDisp { get; set; }
public MyCommon.REPLY_ICONSTATE ReplyIconState { get; set; }
public bool ReadOwnPost { get; set; }
- public bool GetFav { get; set; }
public bool IsMonospace { get; set; }
public bool ReadOldPosts { get; set; }
public string BitlyUser { get; set; }
{
InitializeComponent();
}
+
+ public void LoadConfig(SettingCommon settingCommon)
+ {
+ this.StartupReaded.Checked = settingCommon.Read;
+ this.StartupReaded.Enabled = settingCommon.UnreadManage;
+
+ this.CheckStartupVersion.Checked = settingCommon.StartupVersion;
+ if (ApplicationSettings.VersionInfoUrl == null)
+ this.CheckStartupVersion.Enabled = false; // 更新チェック無効化
+
+ this.CheckStartupFollowers.Checked = settingCommon.StartupFollowers;
+ this.chkGetFav.Checked = settingCommon.GetFav;
+ }
+
+ public void SaveConfig(SettingCommon settingCommon)
+ {
+ settingCommon.Read = this.StartupReaded.Checked;
+ settingCommon.StartupVersion = this.CheckStartupVersion.Checked;
+ settingCommon.StartupFollowers = this.CheckStartupFollowers.Checked;
+ settingCommon.GetFav = this.chkGetFav.Checked;
+ }
}
}
public int DMPeriod = 600;
public int PubSearchPeriod = 180;
public int ListsPeriod = 180;
+
+ /// <summary>
+ /// 起動時読み込み分を既読にするか。trueなら既読として処理
+ /// </summary>
public bool Read = true;
+
public bool ListLock = false;
public MyCommon.IconSizes IconSize = MyCommon.IconSizes.Icon16;
public bool NewAllPop = true;
SettingDialog.UserAccounts = _cfgCommon.UserAccounts;
- //起動時読み込み分を既読にするか。trueなら既読として処理
- SettingDialog.Readed = _cfgCommon.Read;
//新着取得時のリストスクロールをするか。trueならスクロールしない
ListLockMenuItem.Checked = _cfgCommon.ListLock;
this.LockListFileMenuItem.Checked = _cfgCommon.ListLock;
SettingDialog.ProxyUser = _cfgLocal.ProxyUser;
SettingDialog.ProxyPassword = _cfgLocal.ProxyPassword;
- SettingDialog.StartupVersion = _cfgCommon.StartupVersion;
- SettingDialog.StartupFollowers = _cfgCommon.StartupFollowers;
SettingDialog.RestrictFavCheck = _cfgCommon.RestrictFavCheck;
SettingDialog.AlwaysTop = _cfgCommon.AlwaysTop;
SettingDialog.UrlConvertAuto = false;
SettingDialog.TabIconDisp = _cfgCommon.TabIconDisp;
SettingDialog.ReplyIconState = _cfgCommon.ReplyIconState;
SettingDialog.ReadOwnPost = _cfgCommon.ReadOwnPost;
- SettingDialog.GetFav = _cfgCommon.GetFav;
SettingDialog.ReadOldPosts = _cfgCommon.ReadOldPosts;
SettingDialog.BitlyUser = _cfgCommon.BilyUser;
SettingDialog.BitlyPwd = _cfgCommon.BitlyPwd;
GetWorkerResult rslt = new GetWorkerResult();
bool read = !SettingDialog.UnreadManage;
- if (_initial && SettingDialog.UnreadManage) read = SettingDialog.Readed;
+ if (_initial && SettingDialog.UnreadManage) read = this._cfgCommon.Read;
GetWorkerArg args = (GetWorkerArg)e.Argument;
_cfgCommon.Token = tw.AccessToken;
_cfgCommon.TokenSecret = tw.AccessTokenSecret;
_cfgCommon.UserAccounts = SettingDialog.UserAccounts;
- _cfgCommon.Read = SettingDialog.Readed;
_cfgCommon.IconSize = SettingDialog.IconSz;
_cfgCommon.UnreadManage = SettingDialog.UnreadManage;
_cfgCommon.PlaySound = SettingDialog.PlaySound;
_cfgCommon.SortOrderLock = SettingDialog.SortOrderLock;
_cfgCommon.ViewTabBottom = SettingDialog.ViewTabBottom;
_cfgCommon.TinyUrlResolve = SettingDialog.TinyUrlResolve;
- _cfgCommon.StartupVersion = SettingDialog.StartupVersion;
- _cfgCommon.StartupFollowers = SettingDialog.StartupFollowers;
_cfgCommon.RestrictFavCheck = SettingDialog.RestrictFavCheck;
_cfgCommon.AlwaysTop = SettingDialog.AlwaysTop;
_cfgCommon.UrlConvertAuto = SettingDialog.UrlConvertAuto;
_cfgCommon.TabIconDisp = SettingDialog.TabIconDisp;
_cfgCommon.ReplyIconState = SettingDialog.ReplyIconState;
_cfgCommon.ReadOwnPost = SettingDialog.ReadOwnPost;
- _cfgCommon.GetFav = SettingDialog.GetFav;
_cfgCommon.IsMonospace = SettingDialog.IsMonospace;
if (IdeographicSpaceToSpaceToolStripMenuItem != null &&
IdeographicSpaceToSpaceToolStripMenuItem.IsDisposed == false)
this.RefreshMuteUserIdsAsync();
GetTimeline(MyCommon.WORKERTYPE.BlockIds, 0, "");
GetTimeline(MyCommon.WORKERTYPE.NoRetweetIds, 0, "");
- if (SettingDialog.StartupFollowers)
+ if (this._cfgCommon.StartupFollowers)
{
GetTimeline(MyCommon.WORKERTYPE.Follower, 0, "");
}
GetTimeline(MyCommon.WORKERTYPE.Reply, 1, "");
_waitDm = true;
GetTimeline(MyCommon.WORKERTYPE.DirectMessegeRcv, 1, "");
- if (SettingDialog.GetFav)
+ if (this._cfgCommon.GetFav)
{
_waitFav = true;
GetTimeline(MyCommon.WORKERTYPE.Favorites, 1, "");
if (ApplicationSettings.VersionInfoUrl != null)
{
//バージョンチェック(引数:起動時チェックの場合はtrue・・・チェック結果のメッセージを表示しない)
- if (SettingDialog.StartupVersion)
+ if (this._cfgCommon.StartupVersion)
await this.CheckNewVersion(true);
}
else
}
// 取得失敗の場合は再試行する
- if (!tw.GetFollowersSuccess && SettingDialog.StartupFollowers)
+ if (!tw.GetFollowersSuccess && this._cfgCommon.StartupFollowers)
GetTimeline(MyCommon.WORKERTYPE.Follower, 0, "");
// 取得失敗の場合は再試行する