Ejemplo n.º 1
0
        private void btn_SaveConfig_Click(object sender, EventArgs e)
        {
            if (CurrentGroup != null && CurrentGroup.GroupId != 0)
            {
                Action action = null;
                switch (tabControl1.SelectedTab.Name)
                {
                case "tab_GroupTimers":
                    CurrentGroup.GroupTimers = GroupTimers.ToDictionary(a => a.name, b => b);
                    action = Common.RefreshTimers;
                    break;

                case "tab_BaseConfig":
                    action = SaveBaseConfig();
                    break;

                default:
                    break;
                }
                Config = Common.SaveConfig(Config, action);
                FrmAnchorTips.ShowTips((Control)sender, "保存成功", AnchorTipsLocation.TOP, autoCloseTime: 2000);
            }
            else
            {
                FrmAnchorTips.ShowTips((Control)sender, "什么也没保存", AnchorTipsLocation.TOP, autoCloseTime: 2000);
            }
        }
Ejemplo n.º 2
0
 private void LogsReserve_MouseEnter(object sender, EventArgs e)
 {
     FrmAnchorTips.ShowTips(LogsReserve, LogsReserve.Value + "天", AnchorTipsLocation.LEFT, Color.FromArgb(0, 155, 144), null, null, 10, 1000, true);
 }
Ejemplo n.º 3
0
 private void picVideo_MouseHover(object sender, EventArgs e)
 {
     FrmAnchorTips.ShowTips(picVideo, "点击播放预览", AnchorTipsLocation.TOP, Color.FromArgb(0, 150, 136));
 }