private void dgwDbList_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { var connectionInfo = ConnectionInfo; if (connectionInfo == null) { return; } var exploreForm = new ExploreForm(connectionInfo); exploreForm.Show(); }
private void btnExplore_Click(object sender, EventArgs e) { var connectionInfo = ConnectionInfo; if (connectionInfo == null) { return; } var exploreForm = new ExploreForm(connectionInfo); exploreForm.Show(); }
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; }
public MetaForm(ExploreForm owner) { exploreForm = owner; InitializeComponent(); }
public YtdForm(ExploreForm exploreForm = null, ModelForm modelForm = null) { ExploreForm = exploreForm; ModelForm = modelForm; InitializeComponent(); }
private void RPFExplorerButton_Click(object sender, EventArgs e) { ExploreForm f = new ExploreForm(); f.Show(this); }
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(); } }
public GenericForm(ExploreForm exploreForm) { ExploreForm = exploreForm; InitializeComponent(); }