Пример #1
0
        private void TheNotifyIcon_MouseClick(object sender, MouseEventArgs e)
        {
            MouseEventArgs _e = e as MouseEventArgs;

            if (_e.Button == MouseButtons.Left)
            {
                ActionManager.ShowWindow();
                LogClerk.Debug("NotifyIcon MouseClick");
            }
        }
Пример #2
0
        private static void DealWithLog(string sdu)
        {
            bool success = JsonUtil.ParseStruct <LogSettingStruct>(sdu, out LogSettingStruct lss);

            if (success)
            {
                switch (lss.type)
                {
                case LogSettingType.LogLevel:
                    LogClerk.LogLevel = lss.logLevel;
                    LogClerk.Debug($"Set log level {LogClerk.LogLevel}");
                    break;

                case LogSettingType.StdLevel:
                    StdClerk.StdLevel = lss.stdLevel;
                    LogClerk.Debug($"Set std level {StdClerk.StdLevel}");
                    break;
                }
            }
        }