internal void ShowForm(ClockM cd) { if (MyForms.ContainsKey(cd)) { return; } MyMainWindow.VM.MultiAudioPlayer.AddClockData(cd); MyMainWindow.VM.MultiAudioPlayer.PlaySound(); var MyTimeOutForm = new TimeOutWindow() { Clock = cd }; MyTimeOutForm.IsVisibleChanged += TimeOutForm_VisibleChanged; MyTimeOutForm.Show(); MyTimeOutForm.Activate(); MyForms[cd] = MyTimeOutForm; }
public void HideForm(ClockM cd) { TimeOutWindow f = MyForms[cd]; if (f != null) { f.Hide(); } }