Exemplo n.º 1
0
        public void ShowNotifier(ElectronicObserver.Window.Dialog.DialogNotifier form)
        {
            if (form.DialogData.Alignment == NotifierDialogAlignment.CustomRelative)                            //cloneしているから書き換えても問題ないはず
            {
                Point p = _parentForm.fBrowser.PointToScreen(new Point(_parentForm.fBrowser.ClientSize.Width / 2, _parentForm.fBrowser.ClientSize.Height / 2));
                p.Offset(new Point(-form.Width / 2, -form.Height / 2));
                p.Offset(form.DialogData.Location);

                form.DialogData.Location = p;
            }

            form.Show();
        }
Exemplo n.º 2
0
 public void ShowNotifier(ElectronicObserver.Window.Dialog.DialogNotifier form)
 {
     form.Show();
 }