示例#1
0
文件: GUI.cs 项目: AutoProt/AutoProt
        private void WatchToggle(Button button, int watchIndex)
        {
            bool watchSuccess = viewmodel.StartWatching(watchIndex);

            if (watchSuccess)
            {
                button.Text = "Stop watch";
            }
            else
            {
                button.Text = "Start watch";
            }
        }