示例#1
0
 private void EnsureToolTipShown(object sender, EventArgs args)
 {
     if (SafeGetToolTipForm() == null)
     {
         _toolTipForm = new StatusToolTipForm();
         _toolTipForm.Show(_toolTipMousePosition, _serverStatus, _activeRecordings, _liveStreams, _upcomingRecording);
     }
 }
示例#2
0
 private void CloseToolTip(object sender, EventArgs args)
 {
     if (SafeGetToolTipForm() != null)
     {
         if (!_toolTipForm.IsDisposed &&
             _toolTipForm.Visible)
         {
             _toolTipForm.Close();
             _toolTipForm.Dispose();
             _toolTipForm = null;
         }
     }
 }
示例#3
0
 private StatusToolTipForm SafeGetToolTipForm()
 {
     if (_toolTipForm != null)
     {
         if (_toolTipForm.IsDisposed)
         {
             _toolTipForm = null;
         }
         else if (!_toolTipForm.Visible)
         {
             _toolTipForm.Dispose();
             _toolTipForm = null;
         }
     }
     return(_toolTipForm);
 }
示例#4
0
 private void CloseToolTip(object sender, EventArgs args)
 {
     if (SafeGetToolTipForm() != null)
     {
         if (!_toolTipForm.IsDisposed
             && _toolTipForm.Visible)
         {
             _toolTipForm.Close();
             _toolTipForm.Dispose();
             _toolTipForm = null;
         }
     }
 }
示例#5
0
 private void EnsureToolTipShown(object sender, EventArgs args)
 {
     if (SafeGetToolTipForm() == null)
     {
         _toolTipForm = new StatusToolTipForm();
         _toolTipForm.Show(_toolTipMousePosition, _serverStatus, _activeRecordings, _liveStreams, _upcomingRecording);
     }
 }
示例#6
0
 private StatusToolTipForm SafeGetToolTipForm()
 {
     if (_toolTipForm != null)
     {
         if (_toolTipForm.IsDisposed)
         {
             _toolTipForm = null;
         }
         else if (!_toolTipForm.Visible)
         {
             _toolTipForm.Dispose();
             _toolTipForm = null;
         }
     }
     return _toolTipForm;
 }