Example #1
0
 public void ClosePopup()
 {
     if (popup != null)
     {
         popup.Close();
         popup = null;
     }
 }
Example #2
0
        public void ShowPopup(System.Windows.Forms.Form owner)
        {
            if (popup != null)
            {
                popup.Close();
                popup = null;
            }

            popup              = new views.popup.YosanYobihiKakuninPopup();
            popup.PopupClosed += delegate() {
                popup          = null;
                gridController = null;
            };

            gridController = new grid.DBPanelGridController <views.grid.YosanYobihiKakuninRow>(popup.Grid, false);
            gridController.SetTable(Context.KaikeiDatabase.YosanYobihi);

            popup.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            popup.Location      = new System.Drawing.Point(
                owner.Location.X + (owner.Size.Width - popup.Size.Width) / 2,
                owner.Location.Y + (owner.Size.Height - popup.Size.Height) / 2
                );
            popup.Show(owner);
        }
Example #3
0
 public YosanYobihiKakuninPopupController()
 {
     popup = null;
 }