예제 #1
0
        public static DialogResult EditTimesModal(Timer t, System.Windows.Forms.IWin32Window owner)
        {
            if (t == null)
            {
                return(DialogResult.Cancel);
            }
            EditTimes f = new EditTimes();

            f.setTimer(t);
            return(f.ShowDialog(owner));
        }
예제 #2
0
 private void setTimer(Timer timer)
 {
     this.timer = timer;
     fluentBindingSource.DataSource = timer.GetLaps();
 }