/// <summary> /// 添加游戏 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnAddGame_Click(object sender, RoutedEventArgs e) { SelectProcess sp = new SelectProcess(); sp.Owner = this; sp.ShowDialog(); }
private void NewToolStripMenuItem_Click(object sender, EventArgs e) { var selectProcessForm = new SelectProcess(); selectProcessForm.ShowDialog(); var selectedProcess = selectProcessForm.SelectedProcess; if (selectedProcess <= 0) { return; } _selectedProcessId = selectedProcess; InspectProcess(selectedProcess); }
private void Execute() { if (_commandIndex >= ProcessContext.Request.Commands.Length) { FinishExecute(); return; } var command = ProcessContext.Request.Commands[_commandIndex]; try { switch (command.Type) { case CommandType.ReleaseConnection: ReleaseConnectionProcess.Execute(this, command as ReleaseConnectionCommand); break; case CommandType.OpenTransaction: OpenTransactionProcess.Execute(this, command as OpenTransactionCommand); break; case CommandType.CommitTransaction: CommitTransactionProcess.Execute(this, command as CommitTransactionCommand); break; case CommandType.RollbackTransaction: RollbackTransactionProcess.Execute(this, command as RollbackTransactionCommand); break; case CommandType.WithDatabase: WithDatabaseProcess.Execute(this, command as WithDatabaseCommand); break; case CommandType.WithTable: WithTableProcess.Execute(this, command as WithTableCommand); break; case CommandType.Set: SetProcess.Execute(this, command as SetCommand); break; case CommandType.Select: SelectProcess.Execute(this, command as SelectCommand); break; } } catch (Exception err) { HandleExecuteError(err); } }