Esempio n. 1
0
        public void DoAction(object sender, EventArgs e)
        {
            switch (ActionComboBox.SelectedValue.ToString())
            {
            case CANCEL_TOPMOST:
                Console.WriteLine("正在执行:" + CANCEL_TOPMOST);
                ACTION_LOCK = true;
                TournamentModifyUtil.CancelGameWindowsTopMost();
                ACTION_LOCK = false;
                Console.WriteLine("执行完毕");
                break;

            case MERGE_LIVE_WINDOWS:
                Console.WriteLine("正在执行:" + MERGE_LIVE_WINDOWS);
                ACTION_LOCK = true;
                TournamentModifyUtil.MergeLiveWindows();
                ACTION_LOCK = false;
                Console.WriteLine("执行完毕");
                break;

            case MORE_ACTIONS:
                Console.WriteLine("请提交 Issue 或 PR 请求来添加更多功能 :)");
                break;

            default:
                Console.WriteLine("无效操作");
                break;
            }
        }
        public void OptimizeWindow(object sender, EventArgs e)
        {
            //取消osu!小窗口置顶,并且将小窗口绑定到管理器大窗口

            TournamentModifyUtil.CancelOsuTopMost();
        }