Esempio n. 1
0
        /// <summary>
        /// 艦娘の装備など詳細情報を表示する
        /// </summary>
        /// <param name="row">表示する艦娘の順位</param>
        void showDetail(MemberData.Ship.Info info)
        {
            if (Properties.Settings.Default.ShipDetailItem.Length == 0)
            {
                return;
            }

            FormShipDetail dlg = new FormShipDetail(_imgSlotItemIcon);

            dlg.StartPosition = FormStartPosition.Manual;
            dlg.Size          = Properties.Settings.Default.ShipDetailSize;

            if (DetailWndOrigin == DetailWindowAlignmentOrigin.Top)
            {
                //ウィンドウトップをあわせる
                dlg.Location = this.PointToScreen(new Point(fleetList1.Location.X
                                                            + fleetList1.Width + 2, fleetList1.Location.Y));
            }
            else
            {
                //ウィンドウボトムを合わせる
                dlg.Location = this.PointToScreen(new Point(fleetList1.Location.X
                                                            + fleetList1.Width + 2, fleetList1.Location.Y
                                                            + (fleetList1.Size.Height + cbDeck.Size.Height - dlg.Size.Height)));
            }
            dlg.Info = info;

            dlg.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// 艦娘の装備など詳細情報を表示する
        /// </summary>
        /// <param name="row">表示する艦娘の順位</param>
        void showDetail(MemberData.Ship.Info info)
        {
            if (Properties.Settings.Default.ShipDetailItem.Length == 0)
                return;

            FormShipDetail dlg = new FormShipDetail(_imgSlotItemIcon);
            dlg.StartPosition = FormStartPosition.Manual;
            dlg.Size = Properties.Settings.Default.ShipDetailSize;

            if (DetailWndOrigin == DetailWindowAlignmentOrigin.Top)
            {
                //ウィンドウトップをあわせる
                dlg.Location = this.PointToScreen(new Point(fleetList1.Location.X
                    + fleetList1.Width + 2, fleetList1.Location.Y));
            }
            else
            {
                //ウィンドウボトムを合わせる
                dlg.Location = this.PointToScreen(new Point(fleetList1.Location.X
                    + fleetList1.Width + 2, fleetList1.Location.Y
                    + (fleetList1.Size.Height + cbDeck.Size.Height - dlg.Size.Height)));
            }
            dlg.Info = info;

            dlg.Show();
        }