Exemplo n.º 1
0
 private void btEReceivers_Click(object sender, EventArgs e)
 {
     ENotifyReceivers notifyReceivers=new ENotifyReceivers(_dataContexts) {FormBorderStyle = FormBorderStyle.FixedDialog, StartPosition = FormStartPosition.CenterParent};
     notifyReceivers.ShowDialog(this);
 }
Exemplo n.º 2
0
 private void btENotifyReceivers_Click(object sender, EventArgs e)
 {
     var selectedReceiversList = cbReceiversLists.SelectedItem as NotifyReceiversList;
     if (selectedReceiversList == null)
         return;
     if (_notifyReceivers == null || _notifyReceivers.IsDisposed)
     {
         _notifyReceivers = new ENotifyReceivers(_dataContexts, true,_receiversLists);
     }
     else
     {
         if (_notifyReceivers.Visible)
         {
             _notifyReceivers.Hide();
             return;
         }
     }
     var point = PointToScreen(Point.Empty);
     point.X = point.X + Size.Width;
     point.Y = point.Y + Size.Height - _notifyReceivers.Height - 20;
     _notifyReceivers.Location = point;
     _notifyReceivers.SetFixedList(selectedReceiversList.Id);
     _notifyReceivers.Show(this);
 }