Example #1
0
        private void dgwDbList_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var connectionInfo = ConnectionInfo;

            if (connectionInfo == null)
            {
                return;
            }

            var exploreForm = new ExploreForm(connectionInfo);

            exploreForm.Show();
        }
Example #2
0
        private void btnExplore_Click(object sender, EventArgs e)
        {
            var connectionInfo = ConnectionInfo;

            if (connectionInfo == null)
            {
                return;
            }

            var exploreForm = new ExploreForm(connectionInfo);

            exploreForm.Show();
        }
Example #3
0
        public ModelForm(ExploreForm ExpForm = null)
        {
            InitializeComponent();


            gameFileCache = ExpForm?.GetFileCache();

            Renderer  = new Renderer(this, gameFileCache);
            camera    = Renderer.camera;
            timecycle = Renderer.timecycle;
            weather   = Renderer.weather;
            clouds    = Renderer.clouds;

            initedOk = Renderer.Init();

            Renderer.controllightdir       = !Settings.Default.Skydome;
            Renderer.rendercollisionmeshes = false;
            Renderer.renderclouds          = false;
            Renderer.rendermoon            = false;
            Renderer.renderskeletons       = true;
            Renderer.SelectionFlagsTestAll = true;
        }
Example #4
0
        public MetaForm(ExploreForm owner)
        {
            exploreForm = owner;

            InitializeComponent();
        }
Example #5
0
 public YtdForm(ExploreForm exploreForm = null, ModelForm modelForm = null)
 {
     ExploreForm = exploreForm;
     ModelForm   = modelForm;
     InitializeComponent();
 }
Example #6
0
 private void RPFExplorerButton_Click(object sender, EventArgs e)
 {
     ExploreForm f = new ExploreForm();
     f.Show(this);
 }
Example #7
0
        void CommandButtonClick(object sender, EventArgs e)
        {
            int fleetid = EditorCell.RowIndex + 1;
                int exploerid = 0;

                if (z.instance.isFleetInBattle(fleetid))
                {
                    MessageBox.Show("舰队正在战斗中");
                    return;
                }

                //判定舰队状态
                long eta = 0;
                bool hasexplorer = false;
                foreach (UserPVEExplore explore in GameData.instance.GetUserPVEExplores())
                {
                    if (explore.fleetId == fleetid)
                    {
                        eta = ServerTimer.GetTimeLeftTo(explore.startTime, explore.endTime);
                        hasexplorer = true;
                        exploerid = explore.exploreId;
                    }
                }
                if(hasexplorer)
                {
                    if(eta > 0 )
                    {
                        DialogResult result = MessageBox.Show("确定要取消远征么?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
                        if (result == DialogResult.Yes)
                        {
                            ServerRequestManager.instance.CancelPVEExplore(exploerid);
                            tools.configmng.instance.setval(z.instance.get_username() + "_explore_" + fleetid,  "no");
                        }
                    }
                    else
                    {
                        ServerRequestManager.instance.FinishPVEExplore(exploerid);
                    }
                }
                else
                {
                    ExploreForm form = new ExploreForm(fleetid);

                    form.setfleet_id(fleetid);
                    form.ShowDialog();
                }
        }
Example #8
0
 public GenericForm(ExploreForm exploreForm)
 {
     ExploreForm = exploreForm;
     InitializeComponent();
 }